diff --git a/.devops/aws/.env.example b/.devops/aws/.env.example deleted file mode 100644 index 0ca9ce2..0000000 --- a/.devops/aws/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -COOP_HOSTED_ZONE_ID=HOSTED_ZONE_ID -COOP_DOMAIN_NAME=getcoop.com diff --git a/.devops/aws/.gitignore b/.devops/aws/.gitignore deleted file mode 100644 index 9c774ea..0000000 --- a/.devops/aws/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -*.js -!jest.config.js -node_modules -transpiled/ -dist/ - -# CDK asset staging directory -.cdk.staging -cdk.out diff --git a/.devops/aws/.npmignore b/.devops/aws/.npmignore deleted file mode 100644 index c1d6d45..0000000 --- a/.devops/aws/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -*.ts -!*.d.ts - -# CDK asset staging directory -.cdk.staging -cdk.out diff --git a/.devops/aws/README.md b/.devops/aws/README.md deleted file mode 100644 index 60375da..0000000 --- a/.devops/aws/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# AWS Infrastructure (Reference Only) - -> **Note:** This directory contains the AWS CDK infrastructure code that was used for production deployments. It is kept here as **reference documentation** to help contributors understand the infrastructure architecture, but is **no longer actively deployed**. -> -> All cloud deployment workflows have been removed as this project is now open source and does not maintain production or staging environments. - -## About This Infrastructure - -This CDK application defined the complete AWS infrastructure for the application, including: - -- **VPC and Networking**: Multi-AZ VPC setup with public/private subnets -- **Kubernetes (EKS)**: Managed Kubernetes clusters for running the API and workers -- **Databases**: RDS PostgreSQL, Redis, and ScyllaDB -- **API Gateway**: REST API with rate limiting and usage plans -- **CloudFront**: CDN for static assets and API caching -- **Monitoring**: Datadog integration and CloudWatch alarms -- **CI/CD**: GitHub Actions runner infrastructure - -The `cdk.json` file tells the CDK Toolkit how to execute the app. - -## Architecture Overview - -The infrastructure was organized into three environments: -- **Production** (`PipelineStack/Prod/*`): Full production environment on the `main` branch -- **Staging** (`StagingPipelineStack/Staging/*`): Testing environment on the `staging` branch -- **Demo** (`Demo`): Demo/development environment - -## Reference Commands - -These commands are for reference only and will not work without AWS credentials and infrastructure: - -- `npm run build` - compile typescript to js -- `npm run watch` - watch for changes and compile -- `npm run test` - perform the jest unit tests -- `npx cdk deploy` - deploy this stack to your default AWS account/region -- `npx cdk diff` - compare deployed stack with current state -- `npx cdk synth` - emits the synthesized CloudFormation template - -## Local Development - -For local development, see the Docker Compose setup in the repository root. diff --git a/.devops/aws/bootstrap-template.yaml b/.devops/aws/bootstrap-template.yaml deleted file mode 100644 index 7255d83..0000000 --- a/.devops/aws/bootstrap-template.yaml +++ /dev/null @@ -1,649 +0,0 @@ -Description: This stack includes resources needed to deploy AWS CDK apps into this environment -Parameters: - TrustedAccounts: - Description: List of AWS accounts that are trusted to publish assets and deploy stacks to this environment - Default: '' - Type: CommaDelimitedList - TrustedAccountsForLookup: - Description: List of AWS accounts that are trusted to look up values in this environment - Default: '' - Type: CommaDelimitedList - CloudFormationExecutionPolicies: - Description: List of the ManagedPolicy ARN(s) to attach to the CloudFormation deployment role - Default: '' - Type: CommaDelimitedList - FileAssetsBucketName: - Description: The name of the S3 bucket used for file assets - Default: '' - Type: String - FileAssetsBucketKmsKeyId: - Description: Empty to create a new key (default), 'AWS_MANAGED_KEY' to use a managed S3 key, or the ID/ARN of an existing key. - Default: '' - Type: String - ContainerAssetsRepositoryName: - Description: A user-provided custom name to use for the container assets ECR repository - Default: '' - Type: String - Qualifier: - Description: An identifier to distinguish multiple bootstrap stacks in the same environment - Default: hnb659fds - Type: String - AllowedPattern: '[A-Za-z0-9_-]{1,10}' - ConstraintDescription: Qualifier must be an alphanumeric identifier of at most 10 characters - PublicAccessBlockConfiguration: - Description: Whether or not to enable S3 Staging Bucket Public Access Block Configuration - Default: 'true' - Type: String - AllowedValues: - - 'true' - - 'false' - InputPermissionsBoundary: - Description: Whether or not to use either the CDK supplied or custom permissions boundary - Default: '' - Type: String - UseExamplePermissionsBoundary: - Default: 'false' - AllowedValues: - - 'true' - - 'false' - Type: String - BootstrapVariant: - Type: String - Default: 'AWS CDK: Default Resources' - Description: Describe the provenance of the resources in this bootstrap stack. Change this when you customize the template. To prevent accidents, the CDK CLI will not overwrite bootstrap stacks with a different variant. -Conditions: - HasTrustedAccounts: - Fn::Not: - - Fn::Equals: - - '' - - Fn::Join: - - '' - - Ref: TrustedAccounts - HasTrustedAccountsForLookup: - Fn::Not: - - Fn::Equals: - - '' - - Fn::Join: - - '' - - Ref: TrustedAccountsForLookup - HasCloudFormationExecutionPolicies: - Fn::Not: - - Fn::Equals: - - '' - - Fn::Join: - - '' - - Ref: CloudFormationExecutionPolicies - HasCustomFileAssetsBucketName: - Fn::Not: - - Fn::Equals: - - '' - - Ref: FileAssetsBucketName - CreateNewKey: - Fn::Equals: - - '' - - Ref: FileAssetsBucketKmsKeyId - UseAwsManagedKey: - Fn::Equals: - - AWS_MANAGED_KEY - - Ref: FileAssetsBucketKmsKeyId - ShouldCreatePermissionsBoundary: - Fn::Equals: - - 'true' - - Ref: UseExamplePermissionsBoundary - PermissionsBoundarySet: - Fn::Not: - - Fn::Equals: - - '' - - Ref: InputPermissionsBoundary - HasCustomContainerAssetsRepositoryName: - Fn::Not: - - Fn::Equals: - - '' - - Ref: ContainerAssetsRepositoryName - UsePublicAccessBlockConfiguration: - Fn::Equals: - - 'true' - - Ref: PublicAccessBlockConfiguration -Resources: - FileAssetsBucketEncryptionKey: - Type: AWS::KMS::Key - Properties: - KeyPolicy: - Statement: - - Action: - - kms:Create* - - kms:Describe* - - kms:Enable* - - kms:List* - - kms:Put* - - kms:Update* - - kms:Revoke* - - kms:Disable* - - kms:Get* - - kms:Delete* - - kms:ScheduleKeyDeletion - - kms:CancelKeyDeletion - - kms:GenerateDataKey - - kms:TagResource - - kms:UntagResource - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - Resource: '*' - - Action: - - kms:Decrypt - - kms:DescribeKey - - kms:Encrypt - - kms:ReEncrypt* - - kms:GenerateDataKey* - Effect: Allow - Principal: - AWS: '*' - Resource: '*' - Condition: - StringEquals: - kms:CallerAccount: - Ref: AWS::AccountId - kms:ViaService: - - Fn::Sub: s3.${AWS::Region}.amazonaws.com - - Action: - - kms:Decrypt - - kms:DescribeKey - - kms:Encrypt - - kms:ReEncrypt* - - kms:GenerateDataKey* - Effect: Allow - Principal: - AWS: - Fn::Sub: ${FilePublishingRole.Arn} - Resource: '*' - Condition: CreateNewKey - FileAssetsBucketEncryptionKeyAlias: - Condition: CreateNewKey - Type: AWS::KMS::Alias - Properties: - AliasName: - Fn::Sub: alias/cdk-${Qualifier}-assets-key - TargetKeyId: - Ref: FileAssetsBucketEncryptionKey - StagingBucket: - Type: AWS::S3::Bucket - Properties: - BucketName: - Fn::If: - - HasCustomFileAssetsBucketName - - Fn::Sub: ${FileAssetsBucketName} - - Fn::Sub: cdk-${Qualifier}-assets-${AWS::AccountId}-${AWS::Region} - AccessControl: Private - BucketEncryption: - ServerSideEncryptionConfiguration: - - ServerSideEncryptionByDefault: - SSEAlgorithm: aws:kms - KMSMasterKeyID: - Fn::If: - - CreateNewKey - - Fn::Sub: ${FileAssetsBucketEncryptionKey.Arn} - - Fn::If: - - UseAwsManagedKey - - Ref: AWS::NoValue - - Fn::Sub: ${FileAssetsBucketKmsKeyId} - PublicAccessBlockConfiguration: - Fn::If: - - UsePublicAccessBlockConfiguration - - BlockPublicAcls: true - BlockPublicPolicy: true - IgnorePublicAcls: true - RestrictPublicBuckets: true - - Ref: AWS::NoValue - VersioningConfiguration: - Status: Enabled - LifecycleConfiguration: - Rules: - - Id: CleanupOldVersions - Status: Enabled - NoncurrentVersionExpiration: - NoncurrentDays: 30 - - Id: AbortIncompleteMultipartUploads - Status: Enabled - AbortIncompleteMultipartUpload: - DaysAfterInitiation: 1 - UpdateReplacePolicy: Retain - DeletionPolicy: Retain - StagingBucketPolicy: - Type: AWS::S3::BucketPolicy - Properties: - Bucket: - Ref: StagingBucket - PolicyDocument: - Id: AccessControl - Version: '2012-10-17' - Statement: - - Sid: AllowSSLRequestsOnly - Action: s3:* - Effect: Deny - Resource: - - Fn::Sub: ${StagingBucket.Arn} - - Fn::Sub: ${StagingBucket.Arn}/* - Condition: - Bool: - aws:SecureTransport: 'false' - Principal: '*' - ContainerAssetsRepository: - Type: AWS::ECR::Repository - Properties: - ImageTagMutability: IMMUTABLE - LifecyclePolicy: - LifecyclePolicyText: | - { - "rules": [ - { - "rulePriority": 1, - "description": "Untagged images should not exist, but expire any older than one year", - "selection": { - "tagStatus": "untagged", - "countType": "sinceImagePushed", - "countUnit": "days", - "countNumber": 365 - }, - "action": { "type": "expire" } - } - ] - } - RepositoryName: - Fn::If: - - HasCustomContainerAssetsRepositoryName - - Fn::Sub: ${ContainerAssetsRepositoryName} - - Fn::Sub: cdk-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region} - RepositoryPolicyText: - Version: '2012-10-17' - Statement: - - Sid: LambdaECRImageRetrievalPolicy - Effect: Allow - Principal: - Service: lambda.amazonaws.com - Action: - - ecr:BatchGetImage - - ecr:GetDownloadUrlForLayer - Condition: - StringLike: - aws:sourceArn: - Fn::Sub: arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:* - FilePublishingRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Action: sts:TagSession - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Fn::If: - - HasTrustedAccounts - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: TrustedAccounts - - Ref: AWS::NoValue - RoleName: - Fn::Sub: cdk-${Qualifier}-file-publishing-role-${AWS::AccountId}-${AWS::Region} - Tags: - - Key: aws-cdk:bootstrap-role - Value: file-publishing - ImagePublishingRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Action: sts:TagSession - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Fn::If: - - HasTrustedAccounts - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: TrustedAccounts - - Ref: AWS::NoValue - RoleName: - Fn::Sub: cdk-${Qualifier}-image-publishing-role-${AWS::AccountId}-${AWS::Region} - Tags: - - Key: aws-cdk:bootstrap-role - Value: image-publishing - LookupRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Action: sts:TagSession - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Fn::If: - - HasTrustedAccountsForLookup - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: TrustedAccountsForLookup - - Ref: AWS::NoValue - - Fn::If: - - HasTrustedAccounts - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: TrustedAccounts - - Ref: AWS::NoValue - RoleName: - Fn::Sub: cdk-${Qualifier}-lookup-role-${AWS::AccountId}-${AWS::Region} - ManagedPolicyArns: - - Fn::Sub: arn:${AWS::Partition}:iam::aws:policy/ReadOnlyAccess - Policies: - - PolicyDocument: - Statement: - - Sid: DontReadSecrets - Effect: Deny - Action: - - kms:Decrypt - Resource: '*' - Version: '2012-10-17' - PolicyName: LookupRolePolicy - Tags: - - Key: aws-cdk:bootstrap-role - Value: lookup - FilePublishingRoleDefaultPolicy: - Type: AWS::IAM::Policy - Properties: - PolicyDocument: - Statement: - - Action: - - s3:GetObject* - - s3:GetBucket* - - s3:GetEncryptionConfiguration - - s3:List* - - s3:DeleteObject* - - s3:PutObject* - - s3:Abort* - Resource: - - Fn::Sub: ${StagingBucket.Arn} - - Fn::Sub: ${StagingBucket.Arn}/* - Condition: - StringEquals: - aws:ResourceAccount: - - Fn::Sub: ${AWS::AccountId} - Effect: Allow - - Action: - - kms:Decrypt - - kms:DescribeKey - - kms:Encrypt - - kms:ReEncrypt* - - kms:GenerateDataKey* - Effect: Allow - Resource: - Fn::If: - - CreateNewKey - - Fn::Sub: ${FileAssetsBucketEncryptionKey.Arn} - - Fn::Sub: arn:${AWS::Partition}:kms:${AWS::Region}:${AWS::AccountId}:key/${FileAssetsBucketKmsKeyId} - Version: '2012-10-17' - Roles: - - Ref: FilePublishingRole - PolicyName: - Fn::Sub: cdk-${Qualifier}-file-publishing-role-default-policy-${AWS::AccountId}-${AWS::Region} - ImagePublishingRoleDefaultPolicy: - Type: AWS::IAM::Policy - Properties: - PolicyDocument: - Statement: - - Action: - - ecr:PutImage - - ecr:InitiateLayerUpload - - ecr:UploadLayerPart - - ecr:CompleteLayerUpload - - ecr:BatchCheckLayerAvailability - - ecr:DescribeRepositories - - ecr:DescribeImages - - ecr:BatchGetImage - - ecr:GetDownloadUrlForLayer - Resource: - Fn::Sub: ${ContainerAssetsRepository.Arn} - Effect: Allow - - Action: - - ecr:GetAuthorizationToken - - ecr:GetDownloadUrlForLayer - - ecr:BatchGetImage - Resource: '*' - Effect: Allow - Version: '2012-10-17' - Roles: - - Ref: ImagePublishingRole - PolicyName: - Fn::Sub: cdk-${Qualifier}-image-publishing-role-default-policy-${AWS::AccountId}-${AWS::Region} - DeploymentActionRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Action: sts:TagSession - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: AWS::AccountId - - Fn::If: - - HasTrustedAccounts - - Action: sts:AssumeRole - Effect: Allow - Principal: - AWS: - Ref: TrustedAccounts - - Ref: AWS::NoValue - Policies: - - PolicyDocument: - Statement: - - Sid: CloudFormationPermissions - Effect: Allow - Action: - - cloudformation:CreateChangeSet - - cloudformation:DeleteChangeSet - - cloudformation:DescribeChangeSet - - cloudformation:DescribeStacks - - cloudformation:ExecuteChangeSet - - cloudformation:CreateStack - - cloudformation:UpdateStack - - cloudformation:RollbackStack - - cloudformation:ContinueUpdateRollback - Resource: '*' - - Sid: PipelineCrossAccountArtifactsBucket - Effect: Allow - Action: - - s3:GetObject* - - s3:GetBucket* - - s3:List* - - s3:Abort* - - s3:DeleteObject* - - s3:PutObject* - Resource: '*' - Condition: - StringNotEquals: - s3:ResourceAccount: - Ref: AWS::AccountId - - Sid: PipelineCrossAccountArtifactsKey - Effect: Allow - Action: - - kms:Decrypt - - kms:DescribeKey - - kms:Encrypt - - kms:ReEncrypt* - - kms:GenerateDataKey* - Resource: '*' - Condition: - StringEquals: - kms:ViaService: - Fn::Sub: s3.${AWS::Region}.amazonaws.com - - Action: iam:PassRole - Resource: - Fn::Sub: ${CloudFormationExecutionRole.Arn} - Effect: Allow - - Sid: CliPermissions - Action: - - cloudformation:DescribeStackEvents - - cloudformation:GetTemplate - - cloudformation:DeleteStack - - cloudformation:UpdateTerminationProtection - - sts:GetCallerIdentity - - cloudformation:GetTemplateSummary - Resource: '*' - Effect: Allow - - Sid: CliStagingBucket - Effect: Allow - Action: - - s3:GetObject* - - s3:GetBucket* - - s3:List* - Resource: - - Fn::Sub: ${StagingBucket.Arn} - - Fn::Sub: ${StagingBucket.Arn}/* - - Sid: ReadVersion - Effect: Allow - Action: - - ssm:GetParameter - - ssm:GetParameters - Resource: - - Fn::Sub: arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:parameter${CdkBootstrapVersion} - Version: '2012-10-17' - PolicyName: default - RoleName: - Fn::Sub: cdk-${Qualifier}-deploy-role-${AWS::AccountId}-${AWS::Region} - Tags: - - Key: aws-cdk:bootstrap-role - Value: deploy - CloudFormationExecutionRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Action: sts:AssumeRole - Effect: Allow - Principal: - Service: cloudformation.amazonaws.com - Version: '2012-10-17' - ManagedPolicyArns: - Fn::If: - - HasCloudFormationExecutionPolicies - - Ref: CloudFormationExecutionPolicies - - Fn::If: - - HasTrustedAccounts - - Ref: AWS::NoValue - - - Fn::Sub: arn:${AWS::Partition}:iam::aws:policy/AdministratorAccess - RoleName: - Fn::Sub: cdk-${Qualifier}-cfn-exec-role-${AWS::AccountId}-${AWS::Region} - PermissionsBoundary: - Fn::If: - - PermissionsBoundarySet - - Fn::Sub: arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/${InputPermissionsBoundary} - - Ref: AWS::NoValue - CdkBoostrapPermissionsBoundaryPolicy: - Condition: ShouldCreatePermissionsBoundary - Type: AWS::IAM::ManagedPolicy - Properties: - PolicyDocument: - Statement: - - Sid: ExplicitAllowAll - Action: - - '*' - Effect: Allow - Resource: '*' - - Sid: DenyAccessIfRequiredPermBoundaryIsNotBeingApplied - Action: - - iam:CreateUser - - iam:CreateRole - - iam:PutRolePermissionsBoundary - - iam:PutUserPermissionsBoundary - Condition: - StringNotEquals: - iam:PermissionsBoundary: - Fn::Sub: arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/cdk-${Qualifier}-permissions-boundary-${AWS::AccountId}-${AWS::Region} - Effect: Deny - Resource: '*' - - Sid: DenyPermBoundaryIAMPolicyAlteration - Action: - - iam:CreatePolicyVersion - - iam:DeletePolicy - - iam:DeletePolicyVersion - - iam:SetDefaultPolicyVersion - Effect: Deny - Resource: - Fn::Sub: arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/cdk-${Qualifier}-permissions-boundary-${AWS::AccountId}-${AWS::Region} - - Sid: DenyRemovalOfPermBoundaryFromAnyUserOrRole - Action: - - iam:DeleteUserPermissionsBoundary - - iam:DeleteRolePermissionsBoundary - Effect: Deny - Resource: '*' - Version: '2012-10-17' - Description: Bootstrap Permission Boundary - ManagedPolicyName: - Fn::Sub: cdk-${Qualifier}-permissions-boundary-${AWS::AccountId}-${AWS::Region} - Path: / - CdkBootstrapVersion: - Type: AWS::SSM::Parameter - Properties: - Type: String - Name: - Fn::Sub: /cdk-bootstrap/${Qualifier}/version - Value: '26' -Outputs: - BucketName: - Description: The name of the S3 bucket owned by the CDK toolkit stack - Value: - Fn::Sub: ${StagingBucket} - BucketDomainName: - Description: The domain name of the S3 bucket owned by the CDK toolkit stack - Value: - Fn::Sub: ${StagingBucket.RegionalDomainName} - FileAssetKeyArn: - Description: The ARN of the KMS key used to encrypt the asset bucket (deprecated) - Value: - Fn::If: - - CreateNewKey - - Fn::Sub: ${FileAssetsBucketEncryptionKey.Arn} - - Fn::Sub: ${FileAssetsBucketKmsKeyId} - Export: - Name: - Fn::Sub: CdkBootstrap-${Qualifier}-FileAssetKeyArn - ImageRepositoryName: - Description: The name of the ECR repository which hosts docker image assets - Value: - Fn::Sub: ${ContainerAssetsRepository} - BootstrapVersion: - Description: The version of the bootstrap resources that are currently mastered in this stack - Value: - Fn::GetAtt: - - CdkBootstrapVersion - - Value diff --git a/.devops/aws/cdk.context.json b/.devops/aws/cdk.context.json deleted file mode 100644 index 8ae59dc..0000000 --- a/.devops/aws/cdk.context.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "availability-zones:account=361188080279:region=us-east-2": [ - "us-east-2a", - "us-east-2b", - "us-east-2c" - ], - "availability-zones:account=361188080279:region=us-east-1": [ - "us-east-1a", - "us-east-1b", - "us-east-1c", - "us-east-1d", - "us-east-1e", - "us-east-1f" - ], - "ami:account=361188080279:filters.image-id.0=ami-073b5635996bead97:filters.image-type.0=machine:filters.name.0=ubuntu-eks/k8s_1.29/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20241113:filters.state.0=available:owners.0=099720109477:region=us-east-2": "ami-073b5635996bead97" -} diff --git a/.devops/aws/cdk.json b/.devops/aws/cdk.json deleted file mode 100644 index 2a37ae1..0000000 --- a/.devops/aws/cdk.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "//": "Do npm install in the server dir b/c our CDK package imports server code, and we need to make sure all the types are available.", - "app": "cd ../../server; npm i --no-audit; cd ../.devops/aws; node --loader ts-node/esm --experimental-specifier-resolution=node src/app.ts", - "watch": { - "include": ["**"], - "exclude": [ - "README.md", - "cdk*.json", - "**/*.d.ts", - "**/*.js", - "tsconfig.json", - "package*.json", - "yarn.lock", - "node_modules", - "test" - ] - }, - "context": { - "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true - } -} diff --git a/.devops/aws/crds/crd-podmonitors.yaml b/.devops/aws/crds/crd-podmonitors.yaml deleted file mode 100644 index 3aace5d..0000000 --- a/.devops/aws/crds/crd-podmonitors.yaml +++ /dev/null @@ -1,1175 +0,0 @@ -# https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.78.1/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.16.4 - operator.prometheus.io/version: 0.78.1 - name: podmonitors.monitoring.coreos.com -spec: - group: monitoring.coreos.com - names: - categories: - - prometheus-operator - kind: PodMonitor - listKind: PodMonitorList - plural: podmonitors - shortNames: - - pmon - singular: podmonitor - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: |- - The `PodMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of pods. - Among other things, it allows to specify: - * The pods to scrape via label selectors. - * The container ports to scrape. - * Authentication credentials to use. - * Target and metric relabeling. - - `Prometheus` and `PrometheusAgent` objects select `PodMonitor` objects using label and namespace selectors. - 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: Specification of desired Pod selection for target discovery - by Prometheus. - properties: - attachMetadata: - description: |- - `attachMetadata` defines additional metadata which is added to the - discovered targets. - - It requires Prometheus >= v2.35.0. - properties: - node: - description: |- - When set to true, Prometheus attaches node metadata to the discovered - targets. - - The Prometheus service account must have the `list` and `watch` - permissions on the `Nodes` objects. - type: boolean - type: object - bodySizeLimit: - description: |- - When defined, bodySizeLimit specifies a job level limit on the size - of uncompressed response body that will be accepted by Prometheus. - - It requires Prometheus >= v2.28.0. - pattern: (^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$ - type: string - jobLabel: - description: |- - The label to use to retrieve the job name from. - `jobLabel` selects the label from the associated Kubernetes `Pod` - object which will be used as the `job` label for all metrics. - - For example if `jobLabel` is set to `foo` and the Kubernetes `Pod` - object is labeled with `foo: bar`, then Prometheus adds the `job="bar"` - label to all ingested metrics. - - If the value of this field is empty, the `job` label of the metrics - defaults to the namespace and name of the PodMonitor object (e.g. `/`). - type: string - keepDroppedTargets: - description: |- - Per-scrape limit on the number of targets dropped by relabeling - that will be kept in memory. 0 means no limit. - - It requires Prometheus >= v2.47.0. - format: int64 - type: integer - labelLimit: - description: |- - Per-scrape limit on number of labels that will be accepted for a sample. - - It requires Prometheus >= v2.27.0. - format: int64 - type: integer - labelNameLengthLimit: - description: |- - Per-scrape limit on length of labels name that will be accepted for a sample. - - It requires Prometheus >= v2.27.0. - format: int64 - type: integer - labelValueLengthLimit: - description: |- - Per-scrape limit on length of labels value that will be accepted for a sample. - - It requires Prometheus >= v2.27.0. - format: int64 - type: integer - namespaceSelector: - description: |- - `namespaceSelector` defines in which namespace(s) Prometheus should discover the pods. - By default, the pods are discovered in the same namespace as the `PodMonitor` object but it is possible to select pods across different/all namespaces. - properties: - any: - description: |- - Boolean describing whether all namespaces are selected in contrast to a - list restricting them. - type: boolean - matchNames: - description: List of namespace names to select from. - items: - type: string - type: array - type: object - nativeHistogramBucketLimit: - description: |- - If there are more than this many buckets in a native histogram, - buckets will be merged to stay within the limit. - It requires Prometheus >= v2.45.0. - format: int64 - type: integer - nativeHistogramMinBucketFactor: - anyOf: - - type: integer - - type: string - description: |- - If the growth factor of one bucket to the next is smaller than this, - buckets will be merged to increase the factor sufficiently. - It requires Prometheus >= v2.50.0. - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - podMetricsEndpoints: - description: Defines how to scrape metrics from the selected pods. - items: - description: |- - PodMetricsEndpoint defines an endpoint serving Prometheus metrics to be scraped by - Prometheus. - properties: - authorization: - description: |- - `authorization` configures the Authorization header credentials to use when - scraping the target. - - Cannot be set at the same time as `basicAuth`, or `oauth2`. - properties: - credentials: - description: Selects a key of a Secret in the namespace - that contains the credentials for authentication. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: - description: |- - Defines the authentication type. The value is case-insensitive. - - "Basic" is not a supported value. - - Default: "Bearer" - type: string - type: object - basicAuth: - description: |- - `basicAuth` configures the Basic Authentication credentials to use when - scraping the target. - - Cannot be set at the same time as `authorization`, or `oauth2`. - properties: - password: - description: |- - `password` specifies a key of a Secret containing the password for - authentication. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - username: - description: |- - `username` specifies a key of a Secret containing the username for - authentication. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - bearerTokenSecret: - description: |- - `bearerTokenSecret` specifies a key of a Secret containing the bearer - token for scraping targets. The secret needs to be in the same namespace - as the PodMonitor object and readable by the Prometheus Operator. - - Deprecated: use `authorization` instead. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - enableHttp2: - description: '`enableHttp2` can be used to disable HTTP2 when - scraping the target.' - type: boolean - filterRunning: - description: |- - When true, the pods which are not running (e.g. either in Failed or - Succeeded state) are dropped during the target discovery. - - If unset, the filtering is enabled. - - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase - type: boolean - followRedirects: - description: |- - `followRedirects` defines whether the scrape requests should follow HTTP - 3xx redirects. - type: boolean - honorLabels: - description: |- - When true, `honorLabels` preserves the metric's labels when they collide - with the target's labels. - type: boolean - honorTimestamps: - description: |- - `honorTimestamps` controls whether Prometheus preserves the timestamps - when exposed by the target. - type: boolean - interval: - description: |- - Interval at which Prometheus scrapes the metrics from the target. - - If empty, Prometheus uses the global scrape interval. - pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$ - type: string - metricRelabelings: - description: |- - `metricRelabelings` configures the relabeling rules to apply to the - samples before ingestion. - items: - description: |- - RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - scraped samples and remote write samples. - - More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - properties: - action: - default: replace - description: |- - Action to perform based on the regex matching. - - `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - - Default: "Replace" - enum: - - replace - - Replace - - keep - - Keep - - drop - - Drop - - hashmod - - HashMod - - labelmap - - LabelMap - - labeldrop - - LabelDrop - - labelkeep - - LabelKeep - - lowercase - - Lowercase - - uppercase - - Uppercase - - keepequal - - KeepEqual - - dropequal - - DropEqual - type: string - modulus: - description: |- - Modulus to take of the hash of the source label values. - - Only applicable when the action is `HashMod`. - format: int64 - type: integer - regex: - description: Regular expression against which the extracted - value is matched. - type: string - replacement: - description: |- - Replacement value against which a Replace action is performed if the - regular expression matches. - - Regex capture groups are available. - type: string - separator: - description: Separator is the string between concatenated - SourceLabels. - type: string - sourceLabels: - description: |- - The source labels select values from existing labels. Their content is - concatenated using the configured Separator and matched against the - configured regular expression. - items: - description: |- - LabelName is a valid Prometheus label name which may only contain ASCII - letters, numbers, as well as underscores. - pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ - type: string - type: array - targetLabel: - description: |- - Label to which the resulting string is written in a replacement. - - It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - `KeepEqual` and `DropEqual` actions. - - Regex capture groups are available. - type: string - type: object - type: array - oauth2: - description: |- - `oauth2` configures the OAuth2 settings to use when scraping the target. - - It requires Prometheus >= 2.27.0. - - Cannot be set at the same time as `authorization`, or `basicAuth`. - properties: - clientId: - description: |- - `clientId` specifies a key of a Secret or ConfigMap containing the - OAuth2 client's ID. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - clientSecret: - description: |- - `clientSecret` specifies a key of a Secret containing the OAuth2 - client's secret. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - endpointParams: - additionalProperties: - type: string - description: |- - `endpointParams` configures the HTTP parameters to append to the token - URL. - type: object - noProxy: - description: |- - `noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names - that should be excluded from proxying. IP and domain names can - contain port numbers. - - It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - type: string - proxyConnectHeader: - additionalProperties: - items: - description: SecretKeySelector selects a key of a Secret. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: array - description: |- - ProxyConnectHeader optionally specifies headers to send to - proxies during CONNECT requests. - - It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - type: object - x-kubernetes-map-type: atomic - proxyFromEnvironment: - description: |- - Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). - - It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - type: boolean - proxyUrl: - description: '`proxyURL` defines the HTTP proxy server to - use.' - pattern: ^http(s)?://.+$ - type: string - scopes: - description: '`scopes` defines the OAuth2 scopes used for - the token request.' - items: - type: string - type: array - tlsConfig: - description: |- - TLS configuration to use when connecting to the OAuth2 server. - It requires Prometheus >= v2.43.0. - properties: - ca: - description: Certificate authority used when verifying - server certificates. - properties: - configMap: - description: ConfigMap containing data to use for - the targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or - its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the - targets. - properties: - key: - description: The key of the secret to select - from. Must be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - cert: - description: Client certificate to present when doing - client-authentication. - properties: - configMap: - description: ConfigMap containing data to use for - the targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or - its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the - targets. - properties: - key: - description: The key of the secret to select - from. Must be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - insecureSkipVerify: - description: Disable target certificate validation. - type: boolean - keySecret: - description: Secret containing the client key file for - the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - maxVersion: - description: |- - Maximum acceptable TLS version. - - It requires Prometheus >= v2.41.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - minVersion: - description: |- - Minimum acceptable TLS version. - - It requires Prometheus >= v2.35.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - serverName: - description: Used to verify the hostname for the targets. - type: string - type: object - tokenUrl: - description: '`tokenURL` configures the URL to fetch the - token from.' - minLength: 1 - type: string - required: - - clientId - - clientSecret - - tokenUrl - type: object - params: - additionalProperties: - items: - type: string - type: array - description: '`params` define optional HTTP URL parameters.' - type: object - path: - description: |- - HTTP path from which to scrape for metrics. - - If empty, Prometheus uses the default value (e.g. `/metrics`). - type: string - port: - description: |- - Name of the Pod port which this endpoint refers to. - - It takes precedence over `targetPort`. - type: string - proxyUrl: - description: |- - `proxyURL` configures the HTTP Proxy URL (e.g. - "http://proxyserver:2195") to go through when scraping the target. - type: string - relabelings: - description: |- - `relabelings` configures the relabeling rules to apply the target's - metadata labels. - - The Operator automatically adds relabelings for a few standard Kubernetes fields. - - The original scrape job's name is available via the `__tmp_prometheus_job_name` label. - - More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - items: - description: |- - RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - scraped samples and remote write samples. - - More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - properties: - action: - default: replace - description: |- - Action to perform based on the regex matching. - - `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - - Default: "Replace" - enum: - - replace - - Replace - - keep - - Keep - - drop - - Drop - - hashmod - - HashMod - - labelmap - - LabelMap - - labeldrop - - LabelDrop - - labelkeep - - LabelKeep - - lowercase - - Lowercase - - uppercase - - Uppercase - - keepequal - - KeepEqual - - dropequal - - DropEqual - type: string - modulus: - description: |- - Modulus to take of the hash of the source label values. - - Only applicable when the action is `HashMod`. - format: int64 - type: integer - regex: - description: Regular expression against which the extracted - value is matched. - type: string - replacement: - description: |- - Replacement value against which a Replace action is performed if the - regular expression matches. - - Regex capture groups are available. - type: string - separator: - description: Separator is the string between concatenated - SourceLabels. - type: string - sourceLabels: - description: |- - The source labels select values from existing labels. Their content is - concatenated using the configured Separator and matched against the - configured regular expression. - items: - description: |- - LabelName is a valid Prometheus label name which may only contain ASCII - letters, numbers, as well as underscores. - pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ - type: string - type: array - targetLabel: - description: |- - Label to which the resulting string is written in a replacement. - - It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - `KeepEqual` and `DropEqual` actions. - - Regex capture groups are available. - type: string - type: object - type: array - scheme: - description: |- - HTTP scheme to use for scraping. - - `http` and `https` are the expected values unless you rewrite the - `__scheme__` label via relabeling. - - If empty, Prometheus uses the default value `http`. - enum: - - http - - https - type: string - scrapeTimeout: - description: |- - Timeout after which Prometheus considers the scrape to be failed. - - If empty, Prometheus uses the global scrape timeout unless it is less - than the target's scrape interval value in which the latter is used. - pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$ - type: string - targetPort: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the target port of the `Pod` object behind the Service, the - port must be specified with container port property. - - Deprecated: use 'port' instead. - x-kubernetes-int-or-string: true - tlsConfig: - description: TLS configuration to use when scraping the target. - properties: - ca: - description: Certificate authority used when verifying server - certificates. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - cert: - description: Client certificate to present when doing client-authentication. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - insecureSkipVerify: - description: Disable target certificate validation. - type: boolean - keySecret: - description: Secret containing the client key file for the - targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - maxVersion: - description: |- - Maximum acceptable TLS version. - - It requires Prometheus >= v2.41.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - minVersion: - description: |- - Minimum acceptable TLS version. - - It requires Prometheus >= v2.35.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - serverName: - description: Used to verify the hostname for the targets. - type: string - type: object - trackTimestampsStaleness: - description: |- - `trackTimestampsStaleness` defines whether Prometheus tracks staleness of - the metrics that have an explicit timestamp present in scraped data. - Has no effect if `honorTimestamps` is false. - - It requires Prometheus >= v2.48.0. - type: boolean - type: object - type: array - podTargetLabels: - description: |- - `podTargetLabels` defines the labels which are transferred from the - associated Kubernetes `Pod` object onto the ingested metrics. - items: - type: string - type: array - sampleLimit: - description: |- - `sampleLimit` defines a per-scrape limit on the number of scraped samples - that will be accepted. - format: int64 - type: integer - scrapeClass: - description: The scrape class to apply. - minLength: 1 - type: string - scrapeClassicHistograms: - description: |- - Whether to scrape a classic histogram that is also exposed as a native histogram. - It requires Prometheus >= v2.45.0. - type: boolean - scrapeProtocols: - description: |- - `scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the - protocols supported by Prometheus in order of preference (from most to least preferred). - - If unset, Prometheus uses its default value. - - It requires Prometheus >= v2.49.0. - items: - description: |- - ScrapeProtocol represents a protocol used by Prometheus for scraping metrics. - Supported values are: - * `OpenMetricsText0.0.1` - * `OpenMetricsText1.0.0` - * `PrometheusProto` - * `PrometheusText0.0.4` - enum: - - PrometheusProto - - OpenMetricsText0.0.1 - - OpenMetricsText1.0.0 - - PrometheusText0.0.4 - type: string - type: array - x-kubernetes-list-type: set - selector: - description: Label selector to select the Kubernetes `Pod` objects - to scrape metrics from. - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - targetLimit: - description: |- - `targetLimit` defines a limit on the number of scraped targets that will - be accepted. - format: int64 - type: integer - required: - - selector - type: object - required: - - spec - type: object - served: true - storage: true diff --git a/.devops/aws/crds/crd-servicemonitors.yaml b/.devops/aws/crds/crd-servicemonitors.yaml deleted file mode 100644 index 1641171..0000000 --- a/.devops/aws/crds/crd-servicemonitors.yaml +++ /dev/null @@ -1,1203 +0,0 @@ -# https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.78.1/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.16.4 - operator.prometheus.io/version: 0.78.1 - name: servicemonitors.monitoring.coreos.com -spec: - group: monitoring.coreos.com - names: - categories: - - prometheus-operator - kind: ServiceMonitor - listKind: ServiceMonitorList - plural: servicemonitors - shortNames: - - smon - singular: servicemonitor - scope: Namespaced - versions: - - name: v1 - schema: - openAPIV3Schema: - description: |- - The `ServiceMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of services. - Among other things, it allows to specify: - * The services to scrape via label selectors. - * The container ports to scrape. - * Authentication credentials to use. - * Target and metric relabeling. - - `Prometheus` and `PrometheusAgent` objects select `ServiceMonitor` objects using label and namespace selectors. - 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: |- - Specification of desired Service selection for target discovery by - Prometheus. - properties: - attachMetadata: - description: |- - `attachMetadata` defines additional metadata which is added to the - discovered targets. - - It requires Prometheus >= v2.37.0. - properties: - node: - description: |- - When set to true, Prometheus attaches node metadata to the discovered - targets. - - The Prometheus service account must have the `list` and `watch` - permissions on the `Nodes` objects. - type: boolean - type: object - bodySizeLimit: - description: |- - When defined, bodySizeLimit specifies a job level limit on the size - of uncompressed response body that will be accepted by Prometheus. - - It requires Prometheus >= v2.28.0. - pattern: (^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$ - type: string - endpoints: - description: |- - List of endpoints part of this ServiceMonitor. - Defines how to scrape metrics from Kubernetes [Endpoints](https://kubernetes.io/docs/concepts/services-networking/service/#endpoints) objects. - In most cases, an Endpoints object is backed by a Kubernetes [Service](https://kubernetes.io/docs/concepts/services-networking/service/) object with the same name and labels. - items: - description: |- - Endpoint defines an endpoint serving Prometheus metrics to be scraped by - Prometheus. - properties: - authorization: - description: |- - `authorization` configures the Authorization header credentials to use when - scraping the target. - - Cannot be set at the same time as `basicAuth`, or `oauth2`. - properties: - credentials: - description: Selects a key of a Secret in the namespace - that contains the credentials for authentication. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: - description: |- - Defines the authentication type. The value is case-insensitive. - - "Basic" is not a supported value. - - Default: "Bearer" - type: string - type: object - basicAuth: - description: |- - `basicAuth` configures the Basic Authentication credentials to use when - scraping the target. - - Cannot be set at the same time as `authorization`, or `oauth2`. - properties: - password: - description: |- - `password` specifies a key of a Secret containing the password for - authentication. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - username: - description: |- - `username` specifies a key of a Secret containing the username for - authentication. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - bearerTokenFile: - description: |- - File to read bearer token for scraping the target. - - Deprecated: use `authorization` instead. - type: string - bearerTokenSecret: - description: |- - `bearerTokenSecret` specifies a key of a Secret containing the bearer - token for scraping targets. The secret needs to be in the same namespace - as the ServiceMonitor object and readable by the Prometheus Operator. - - Deprecated: use `authorization` instead. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - enableHttp2: - description: '`enableHttp2` can be used to disable HTTP2 when - scraping the target.' - type: boolean - filterRunning: - description: |- - When true, the pods which are not running (e.g. either in Failed or - Succeeded state) are dropped during the target discovery. - - If unset, the filtering is enabled. - - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase - type: boolean - followRedirects: - description: |- - `followRedirects` defines whether the scrape requests should follow HTTP - 3xx redirects. - type: boolean - honorLabels: - description: |- - When true, `honorLabels` preserves the metric's labels when they collide - with the target's labels. - type: boolean - honorTimestamps: - description: |- - `honorTimestamps` controls whether Prometheus preserves the timestamps - when exposed by the target. - type: boolean - interval: - description: |- - Interval at which Prometheus scrapes the metrics from the target. - - If empty, Prometheus uses the global scrape interval. - pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$ - type: string - metricRelabelings: - description: |- - `metricRelabelings` configures the relabeling rules to apply to the - samples before ingestion. - items: - description: |- - RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - scraped samples and remote write samples. - - More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - properties: - action: - default: replace - description: |- - Action to perform based on the regex matching. - - `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - - Default: "Replace" - enum: - - replace - - Replace - - keep - - Keep - - drop - - Drop - - hashmod - - HashMod - - labelmap - - LabelMap - - labeldrop - - LabelDrop - - labelkeep - - LabelKeep - - lowercase - - Lowercase - - uppercase - - Uppercase - - keepequal - - KeepEqual - - dropequal - - DropEqual - type: string - modulus: - description: |- - Modulus to take of the hash of the source label values. - - Only applicable when the action is `HashMod`. - format: int64 - type: integer - regex: - description: Regular expression against which the extracted - value is matched. - type: string - replacement: - description: |- - Replacement value against which a Replace action is performed if the - regular expression matches. - - Regex capture groups are available. - type: string - separator: - description: Separator is the string between concatenated - SourceLabels. - type: string - sourceLabels: - description: |- - The source labels select values from existing labels. Their content is - concatenated using the configured Separator and matched against the - configured regular expression. - items: - description: |- - LabelName is a valid Prometheus label name which may only contain ASCII - letters, numbers, as well as underscores. - pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ - type: string - type: array - targetLabel: - description: |- - Label to which the resulting string is written in a replacement. - - It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - `KeepEqual` and `DropEqual` actions. - - Regex capture groups are available. - type: string - type: object - type: array - oauth2: - description: |- - `oauth2` configures the OAuth2 settings to use when scraping the target. - - It requires Prometheus >= 2.27.0. - - Cannot be set at the same time as `authorization`, or `basicAuth`. - properties: - clientId: - description: |- - `clientId` specifies a key of a Secret or ConfigMap containing the - OAuth2 client's ID. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - clientSecret: - description: |- - `clientSecret` specifies a key of a Secret containing the OAuth2 - client's secret. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - endpointParams: - additionalProperties: - type: string - description: |- - `endpointParams` configures the HTTP parameters to append to the token - URL. - type: object - noProxy: - description: |- - `noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names - that should be excluded from proxying. IP and domain names can - contain port numbers. - - It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - type: string - proxyConnectHeader: - additionalProperties: - items: - description: SecretKeySelector selects a key of a Secret. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: array - description: |- - ProxyConnectHeader optionally specifies headers to send to - proxies during CONNECT requests. - - It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - type: object - x-kubernetes-map-type: atomic - proxyFromEnvironment: - description: |- - Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). - - It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - type: boolean - proxyUrl: - description: '`proxyURL` defines the HTTP proxy server to - use.' - pattern: ^http(s)?://.+$ - type: string - scopes: - description: '`scopes` defines the OAuth2 scopes used for - the token request.' - items: - type: string - type: array - tlsConfig: - description: |- - TLS configuration to use when connecting to the OAuth2 server. - It requires Prometheus >= v2.43.0. - properties: - ca: - description: Certificate authority used when verifying - server certificates. - properties: - configMap: - description: ConfigMap containing data to use for - the targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or - its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the - targets. - properties: - key: - description: The key of the secret to select - from. Must be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - cert: - description: Client certificate to present when doing - client-authentication. - properties: - configMap: - description: ConfigMap containing data to use for - the targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or - its key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the - targets. - properties: - key: - description: The key of the secret to select - from. Must be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - insecureSkipVerify: - description: Disable target certificate validation. - type: boolean - keySecret: - description: Secret containing the client key file for - the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - maxVersion: - description: |- - Maximum acceptable TLS version. - - It requires Prometheus >= v2.41.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - minVersion: - description: |- - Minimum acceptable TLS version. - - It requires Prometheus >= v2.35.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - serverName: - description: Used to verify the hostname for the targets. - type: string - type: object - tokenUrl: - description: '`tokenURL` configures the URL to fetch the - token from.' - minLength: 1 - type: string - required: - - clientId - - clientSecret - - tokenUrl - type: object - params: - additionalProperties: - items: - type: string - type: array - description: params define optional HTTP URL parameters. - type: object - path: - description: |- - HTTP path from which to scrape for metrics. - - If empty, Prometheus uses the default value (e.g. `/metrics`). - type: string - port: - description: |- - Name of the Service port which this endpoint refers to. - - It takes precedence over `targetPort`. - type: string - proxyUrl: - description: |- - `proxyURL` configures the HTTP Proxy URL (e.g. - "http://proxyserver:2195") to go through when scraping the target. - type: string - relabelings: - description: |- - `relabelings` configures the relabeling rules to apply the target's - metadata labels. - - The Operator automatically adds relabelings for a few standard Kubernetes fields. - - The original scrape job's name is available via the `__tmp_prometheus_job_name` label. - - More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - items: - description: |- - RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - scraped samples and remote write samples. - - More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - properties: - action: - default: replace - description: |- - Action to perform based on the regex matching. - - `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - - Default: "Replace" - enum: - - replace - - Replace - - keep - - Keep - - drop - - Drop - - hashmod - - HashMod - - labelmap - - LabelMap - - labeldrop - - LabelDrop - - labelkeep - - LabelKeep - - lowercase - - Lowercase - - uppercase - - Uppercase - - keepequal - - KeepEqual - - dropequal - - DropEqual - type: string - modulus: - description: |- - Modulus to take of the hash of the source label values. - - Only applicable when the action is `HashMod`. - format: int64 - type: integer - regex: - description: Regular expression against which the extracted - value is matched. - type: string - replacement: - description: |- - Replacement value against which a Replace action is performed if the - regular expression matches. - - Regex capture groups are available. - type: string - separator: - description: Separator is the string between concatenated - SourceLabels. - type: string - sourceLabels: - description: |- - The source labels select values from existing labels. Their content is - concatenated using the configured Separator and matched against the - configured regular expression. - items: - description: |- - LabelName is a valid Prometheus label name which may only contain ASCII - letters, numbers, as well as underscores. - pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ - type: string - type: array - targetLabel: - description: |- - Label to which the resulting string is written in a replacement. - - It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - `KeepEqual` and `DropEqual` actions. - - Regex capture groups are available. - type: string - type: object - type: array - scheme: - description: |- - HTTP scheme to use for scraping. - - `http` and `https` are the expected values unless you rewrite the - `__scheme__` label via relabeling. - - If empty, Prometheus uses the default value `http`. - enum: - - http - - https - type: string - scrapeTimeout: - description: |- - Timeout after which Prometheus considers the scrape to be failed. - - If empty, Prometheus uses the global scrape timeout unless it is less - than the target's scrape interval value in which the latter is used. - pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$ - type: string - targetPort: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the target port of the `Pod` object behind the - Service. The port must be specified with the container's port property. - x-kubernetes-int-or-string: true - tlsConfig: - description: TLS configuration to use when scraping the target. - properties: - ca: - description: Certificate authority used when verifying server - certificates. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - caFile: - description: Path to the CA cert in the Prometheus container - to use for the targets. - type: string - cert: - description: Client certificate to present when doing client-authentication. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - type: object - certFile: - description: Path to the client cert file in the Prometheus - container for the targets. - type: string - insecureSkipVerify: - description: Disable target certificate validation. - type: boolean - keyFile: - description: Path to the client key file in the Prometheus - container for the targets. - type: string - keySecret: - description: Secret containing the client key file for the - targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - maxVersion: - description: |- - Maximum acceptable TLS version. - - It requires Prometheus >= v2.41.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - minVersion: - description: |- - Minimum acceptable TLS version. - - It requires Prometheus >= v2.35.0. - enum: - - TLS10 - - TLS11 - - TLS12 - - TLS13 - type: string - serverName: - description: Used to verify the hostname for the targets. - type: string - type: object - trackTimestampsStaleness: - description: |- - `trackTimestampsStaleness` defines whether Prometheus tracks staleness of - the metrics that have an explicit timestamp present in scraped data. - Has no effect if `honorTimestamps` is false. - - It requires Prometheus >= v2.48.0. - type: boolean - type: object - type: array - jobLabel: - description: |- - `jobLabel` selects the label from the associated Kubernetes `Service` - object which will be used as the `job` label for all metrics. - - For example if `jobLabel` is set to `foo` and the Kubernetes `Service` - object is labeled with `foo: bar`, then Prometheus adds the `job="bar"` - label to all ingested metrics. - - If the value of this field is empty or if the label doesn't exist for - the given Service, the `job` label of the metrics defaults to the name - of the associated Kubernetes `Service`. - type: string - keepDroppedTargets: - description: |- - Per-scrape limit on the number of targets dropped by relabeling - that will be kept in memory. 0 means no limit. - - It requires Prometheus >= v2.47.0. - format: int64 - type: integer - labelLimit: - description: |- - Per-scrape limit on number of labels that will be accepted for a sample. - - It requires Prometheus >= v2.27.0. - format: int64 - type: integer - labelNameLengthLimit: - description: |- - Per-scrape limit on length of labels name that will be accepted for a sample. - - It requires Prometheus >= v2.27.0. - format: int64 - type: integer - labelValueLengthLimit: - description: |- - Per-scrape limit on length of labels value that will be accepted for a sample. - - It requires Prometheus >= v2.27.0. - format: int64 - type: integer - namespaceSelector: - description: |- - `namespaceSelector` defines in which namespace(s) Prometheus should discover the services. - By default, the services are discovered in the same namespace as the `ServiceMonitor` object but it is possible to select pods across different/all namespaces. - properties: - any: - description: |- - Boolean describing whether all namespaces are selected in contrast to a - list restricting them. - type: boolean - matchNames: - description: List of namespace names to select from. - items: - type: string - type: array - type: object - nativeHistogramBucketLimit: - description: |- - If there are more than this many buckets in a native histogram, - buckets will be merged to stay within the limit. - It requires Prometheus >= v2.45.0. - format: int64 - type: integer - nativeHistogramMinBucketFactor: - anyOf: - - type: integer - - type: string - description: |- - If the growth factor of one bucket to the next is smaller than this, - buckets will be merged to increase the factor sufficiently. - It requires Prometheus >= v2.50.0. - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - podTargetLabels: - description: |- - `podTargetLabels` defines the labels which are transferred from the - associated Kubernetes `Pod` object onto the ingested metrics. - items: - type: string - type: array - sampleLimit: - description: |- - `sampleLimit` defines a per-scrape limit on the number of scraped samples - that will be accepted. - format: int64 - type: integer - scrapeClass: - description: The scrape class to apply. - minLength: 1 - type: string - scrapeClassicHistograms: - description: |- - Whether to scrape a classic histogram that is also exposed as a native histogram. - It requires Prometheus >= v2.45.0. - type: boolean - scrapeProtocols: - description: |- - `scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the - protocols supported by Prometheus in order of preference (from most to least preferred). - - If unset, Prometheus uses its default value. - - It requires Prometheus >= v2.49.0. - items: - description: |- - ScrapeProtocol represents a protocol used by Prometheus for scraping metrics. - Supported values are: - * `OpenMetricsText0.0.1` - * `OpenMetricsText1.0.0` - * `PrometheusProto` - * `PrometheusText0.0.4` - enum: - - PrometheusProto - - OpenMetricsText0.0.1 - - OpenMetricsText1.0.0 - - PrometheusText0.0.4 - type: string - type: array - x-kubernetes-list-type: set - selector: - description: Label selector to select the Kubernetes `Endpoints` objects - to scrape metrics from. - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - targetLabels: - description: |- - `targetLabels` defines the labels which are transferred from the - associated Kubernetes `Service` object onto the ingested metrics. - items: - type: string - type: array - targetLimit: - description: |- - `targetLimit` defines a limit on the number of scraped targets that will - be accepted. - format: int64 - type: integer - required: - - endpoints - - selector - type: object - required: - - spec - type: object - served: true - storage: true diff --git a/.devops/aws/imports/monitoring.coreos.com.ts b/.devops/aws/imports/monitoring.coreos.com.ts deleted file mode 100644 index a555d8e..0000000 --- a/.devops/aws/imports/monitoring.coreos.com.ts +++ /dev/null @@ -1,5179 +0,0 @@ -// generated by cdk8s -import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - - -/** - * The `PodMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of pods. -Among other things, it allows to specify: -* The pods to scrape via label selectors. -* The container ports to scrape. -* Authentication credentials to use. -* Target and metric relabeling. - -`Prometheus` and `PrometheusAgent` objects select `PodMonitor` objects using label and namespace selectors. - * - * @schema PodMonitor - */ -export class PodMonitor extends ApiObject { - /** - * Returns the apiVersion and kind for "PodMonitor" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PodMonitor', - } - - /** - * Renders a Kubernetes manifest for "PodMonitor". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: PodMonitorProps): any { - return { - ...PodMonitor.GVK, - ...toJson_PodMonitorProps(props), - }; - } - - /** - * Defines a "PodMonitor" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: PodMonitorProps) { - super(scope, id, { - ...PodMonitor.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...PodMonitor.GVK, - ...toJson_PodMonitorProps(resolved), - }; - } -} - -/** - * The `PodMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of pods. - * Among other things, it allows to specify: - * * The pods to scrape via label selectors. - * * The container ports to scrape. - * * Authentication credentials to use. - * * Target and metric relabeling. - * - * `Prometheus` and `PrometheusAgent` objects select `PodMonitor` objects using label and namespace selectors. - * - * @schema PodMonitor - */ -export interface PodMonitorProps { - /** - * @schema PodMonitor#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * Specification of desired Pod selection for target discovery by Prometheus. - * - * @schema PodMonitor#spec - */ - readonly spec: PodMonitorSpec; - -} - -/** - * Converts an object of type 'PodMonitorProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorProps(obj: PodMonitorProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_PodMonitorSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Specification of desired Pod selection for target discovery by Prometheus. - * - * @schema PodMonitorSpec - */ -export interface PodMonitorSpec { - /** - * `attachMetadata` defines additional metadata which is added to the - * discovered targets. - * - * It requires Prometheus >= v2.35.0. - * - * @schema PodMonitorSpec#attachMetadata - */ - readonly attachMetadata?: PodMonitorSpecAttachMetadata; - - /** - * When defined, bodySizeLimit specifies a job level limit on the size - * of uncompressed response body that will be accepted by Prometheus. - * - * It requires Prometheus >= v2.28.0. - * - * @schema PodMonitorSpec#bodySizeLimit - */ - readonly bodySizeLimit?: string; - - /** - * The label to use to retrieve the job name from. - * `jobLabel` selects the label from the associated Kubernetes `Pod` - * object which will be used as the `job` label for all metrics. - * - * For example if `jobLabel` is set to `foo` and the Kubernetes `Pod` - * object is labeled with `foo: bar`, then Prometheus adds the `job="bar"` - * label to all ingested metrics. - * - * If the value of this field is empty, the `job` label of the metrics - * defaults to the namespace and name of the PodMonitor object (e.g. `/`). - * - * @schema PodMonitorSpec#jobLabel - */ - readonly jobLabel?: string; - - /** - * Per-scrape limit on the number of targets dropped by relabeling - * that will be kept in memory. 0 means no limit. - * - * It requires Prometheus >= v2.47.0. - * - * @schema PodMonitorSpec#keepDroppedTargets - */ - readonly keepDroppedTargets?: number; - - /** - * Per-scrape limit on number of labels that will be accepted for a sample. - * - * It requires Prometheus >= v2.27.0. - * - * @schema PodMonitorSpec#labelLimit - */ - readonly labelLimit?: number; - - /** - * Per-scrape limit on length of labels name that will be accepted for a sample. - * - * It requires Prometheus >= v2.27.0. - * - * @schema PodMonitorSpec#labelNameLengthLimit - */ - readonly labelNameLengthLimit?: number; - - /** - * Per-scrape limit on length of labels value that will be accepted for a sample. - * - * It requires Prometheus >= v2.27.0. - * - * @schema PodMonitorSpec#labelValueLengthLimit - */ - readonly labelValueLengthLimit?: number; - - /** - * `namespaceSelector` defines in which namespace(s) Prometheus should discover the pods. - * By default, the pods are discovered in the same namespace as the `PodMonitor` object but it is possible to select pods across different/all namespaces. - * - * @schema PodMonitorSpec#namespaceSelector - */ - readonly namespaceSelector?: PodMonitorSpecNamespaceSelector; - - /** - * If there are more than this many buckets in a native histogram, - * buckets will be merged to stay within the limit. - * It requires Prometheus >= v2.45.0. - * - * @schema PodMonitorSpec#nativeHistogramBucketLimit - */ - readonly nativeHistogramBucketLimit?: number; - - /** - * If the growth factor of one bucket to the next is smaller than this, - * buckets will be merged to increase the factor sufficiently. - * It requires Prometheus >= v2.50.0. - * - * @schema PodMonitorSpec#nativeHistogramMinBucketFactor - */ - readonly nativeHistogramMinBucketFactor?: PodMonitorSpecNativeHistogramMinBucketFactor; - - /** - * Defines how to scrape metrics from the selected pods. - * - * @schema PodMonitorSpec#podMetricsEndpoints - */ - readonly podMetricsEndpoints?: PodMonitorSpecPodMetricsEndpoints[]; - - /** - * `podTargetLabels` defines the labels which are transferred from the - * associated Kubernetes `Pod` object onto the ingested metrics. - * - * @schema PodMonitorSpec#podTargetLabels - */ - readonly podTargetLabels?: string[]; - - /** - * `sampleLimit` defines a per-scrape limit on the number of scraped samples - * that will be accepted. - * - * @schema PodMonitorSpec#sampleLimit - */ - readonly sampleLimit?: number; - - /** - * The scrape class to apply. - * - * @schema PodMonitorSpec#scrapeClass - */ - readonly scrapeClass?: string; - - /** - * Whether to scrape a classic histogram that is also exposed as a native histogram. - * It requires Prometheus >= v2.45.0. - * - * @schema PodMonitorSpec#scrapeClassicHistograms - */ - readonly scrapeClassicHistograms?: boolean; - - /** - * `scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the - * protocols supported by Prometheus in order of preference (from most to least preferred). - * - * If unset, Prometheus uses its default value. - * - * It requires Prometheus >= v2.49.0. - * - * @schema PodMonitorSpec#scrapeProtocols - */ - readonly scrapeProtocols?: PodMonitorSpecScrapeProtocols[]; - - /** - * Label selector to select the Kubernetes `Pod` objects to scrape metrics from. - * - * @schema PodMonitorSpec#selector - */ - readonly selector: PodMonitorSpecSelector; - - /** - * `targetLimit` defines a limit on the number of scraped targets that will - * be accepted. - * - * @schema PodMonitorSpec#targetLimit - */ - readonly targetLimit?: number; - -} - -/** - * Converts an object of type 'PodMonitorSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpec(obj: PodMonitorSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'attachMetadata': toJson_PodMonitorSpecAttachMetadata(obj.attachMetadata), - 'bodySizeLimit': obj.bodySizeLimit, - 'jobLabel': obj.jobLabel, - 'keepDroppedTargets': obj.keepDroppedTargets, - 'labelLimit': obj.labelLimit, - 'labelNameLengthLimit': obj.labelNameLengthLimit, - 'labelValueLengthLimit': obj.labelValueLengthLimit, - 'namespaceSelector': toJson_PodMonitorSpecNamespaceSelector(obj.namespaceSelector), - 'nativeHistogramBucketLimit': obj.nativeHistogramBucketLimit, - 'nativeHistogramMinBucketFactor': obj.nativeHistogramMinBucketFactor?.value, - 'podMetricsEndpoints': obj.podMetricsEndpoints?.map(y => toJson_PodMonitorSpecPodMetricsEndpoints(y)), - 'podTargetLabels': obj.podTargetLabels?.map(y => y), - 'sampleLimit': obj.sampleLimit, - 'scrapeClass': obj.scrapeClass, - 'scrapeClassicHistograms': obj.scrapeClassicHistograms, - 'scrapeProtocols': obj.scrapeProtocols?.map(y => y), - 'selector': toJson_PodMonitorSpecSelector(obj.selector), - 'targetLimit': obj.targetLimit, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `attachMetadata` defines additional metadata which is added to the - * discovered targets. - * - * It requires Prometheus >= v2.35.0. - * - * @schema PodMonitorSpecAttachMetadata - */ -export interface PodMonitorSpecAttachMetadata { - /** - * When set to true, Prometheus attaches node metadata to the discovered - * targets. - * - * The Prometheus service account must have the `list` and `watch` - * permissions on the `Nodes` objects. - * - * @schema PodMonitorSpecAttachMetadata#node - */ - readonly node?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecAttachMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecAttachMetadata(obj: PodMonitorSpecAttachMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'node': obj.node, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `namespaceSelector` defines in which namespace(s) Prometheus should discover the pods. - * By default, the pods are discovered in the same namespace as the `PodMonitor` object but it is possible to select pods across different/all namespaces. - * - * @schema PodMonitorSpecNamespaceSelector - */ -export interface PodMonitorSpecNamespaceSelector { - /** - * Boolean describing whether all namespaces are selected in contrast to a - * list restricting them. - * - * @schema PodMonitorSpecNamespaceSelector#any - */ - readonly any?: boolean; - - /** - * List of namespace names to select from. - * - * @schema PodMonitorSpecNamespaceSelector#matchNames - */ - readonly matchNames?: string[]; - -} - -/** - * Converts an object of type 'PodMonitorSpecNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecNamespaceSelector(obj: PodMonitorSpecNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'any': obj.any, - 'matchNames': obj.matchNames?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * If the growth factor of one bucket to the next is smaller than this, - * buckets will be merged to increase the factor sufficiently. - * It requires Prometheus >= v2.50.0. - * - * @schema PodMonitorSpecNativeHistogramMinBucketFactor - */ -export class PodMonitorSpecNativeHistogramMinBucketFactor { - public static fromNumber(value: number): PodMonitorSpecNativeHistogramMinBucketFactor { - return new PodMonitorSpecNativeHistogramMinBucketFactor(value); - } - public static fromString(value: string): PodMonitorSpecNativeHistogramMinBucketFactor { - return new PodMonitorSpecNativeHistogramMinBucketFactor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * PodMetricsEndpoint defines an endpoint serving Prometheus metrics to be scraped by - * Prometheus. - * - * @schema PodMonitorSpecPodMetricsEndpoints - */ -export interface PodMonitorSpecPodMetricsEndpoints { - /** - * `authorization` configures the Authorization header credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `basicAuth`, or `oauth2`. - * - * @schema PodMonitorSpecPodMetricsEndpoints#authorization - */ - readonly authorization?: PodMonitorSpecPodMetricsEndpointsAuthorization; - - /** - * `basicAuth` configures the Basic Authentication credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `authorization`, or `oauth2`. - * - * @schema PodMonitorSpecPodMetricsEndpoints#basicAuth - */ - readonly basicAuth?: PodMonitorSpecPodMetricsEndpointsBasicAuth; - - /** - * `bearerTokenSecret` specifies a key of a Secret containing the bearer - * token for scraping targets. The secret needs to be in the same namespace - * as the PodMonitor object and readable by the Prometheus Operator. - * - * Deprecated: use `authorization` instead. - * - * @schema PodMonitorSpecPodMetricsEndpoints#bearerTokenSecret - */ - readonly bearerTokenSecret?: PodMonitorSpecPodMetricsEndpointsBearerTokenSecret; - - /** - * `enableHttp2` can be used to disable HTTP2 when scraping the target. - * - * @schema PodMonitorSpecPodMetricsEndpoints#enableHttp2 - */ - readonly enableHttp2?: boolean; - - /** - * When true, the pods which are not running (e.g. either in Failed or - * Succeeded state) are dropped during the target discovery. - * - * If unset, the filtering is enabled. - * - * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase - * - * @schema PodMonitorSpecPodMetricsEndpoints#filterRunning - */ - readonly filterRunning?: boolean; - - /** - * `followRedirects` defines whether the scrape requests should follow HTTP - * 3xx redirects. - * - * @schema PodMonitorSpecPodMetricsEndpoints#followRedirects - */ - readonly followRedirects?: boolean; - - /** - * When true, `honorLabels` preserves the metric's labels when they collide - * with the target's labels. - * - * @schema PodMonitorSpecPodMetricsEndpoints#honorLabels - */ - readonly honorLabels?: boolean; - - /** - * `honorTimestamps` controls whether Prometheus preserves the timestamps - * when exposed by the target. - * - * @schema PodMonitorSpecPodMetricsEndpoints#honorTimestamps - */ - readonly honorTimestamps?: boolean; - - /** - * Interval at which Prometheus scrapes the metrics from the target. - * - * If empty, Prometheus uses the global scrape interval. - * - * @schema PodMonitorSpecPodMetricsEndpoints#interval - */ - readonly interval?: string; - - /** - * `metricRelabelings` configures the relabeling rules to apply to the - * samples before ingestion. - * - * @schema PodMonitorSpecPodMetricsEndpoints#metricRelabelings - */ - readonly metricRelabelings?: PodMonitorSpecPodMetricsEndpointsMetricRelabelings[]; - - /** - * `oauth2` configures the OAuth2 settings to use when scraping the target. - * - * It requires Prometheus >= 2.27.0. - * - * Cannot be set at the same time as `authorization`, or `basicAuth`. - * - * @schema PodMonitorSpecPodMetricsEndpoints#oauth2 - */ - readonly oauth2?: PodMonitorSpecPodMetricsEndpointsOauth2; - - /** - * `params` define optional HTTP URL parameters. - * - * @schema PodMonitorSpecPodMetricsEndpoints#params - */ - readonly params?: { [key: string]: string[] }; - - /** - * HTTP path from which to scrape for metrics. - * - * If empty, Prometheus uses the default value (e.g. `/metrics`). - * - * @schema PodMonitorSpecPodMetricsEndpoints#path - */ - readonly path?: string; - - /** - * Name of the Pod port which this endpoint refers to. - * - * It takes precedence over `targetPort`. - * - * @schema PodMonitorSpecPodMetricsEndpoints#port - */ - readonly port?: string; - - /** - * `proxyURL` configures the HTTP Proxy URL (e.g. - * "http://proxyserver:2195") to go through when scraping the target. - * - * @schema PodMonitorSpecPodMetricsEndpoints#proxyUrl - */ - readonly proxyUrl?: string; - - /** - * `relabelings` configures the relabeling rules to apply the target's - * metadata labels. - * - * The Operator automatically adds relabelings for a few standard Kubernetes fields. - * - * The original scrape job's name is available via the `__tmp_prometheus_job_name` label. - * - * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - * - * @schema PodMonitorSpecPodMetricsEndpoints#relabelings - */ - readonly relabelings?: PodMonitorSpecPodMetricsEndpointsRelabelings[]; - - /** - * HTTP scheme to use for scraping. - * - * `http` and `https` are the expected values unless you rewrite the - * `__scheme__` label via relabeling. - * - * If empty, Prometheus uses the default value `http`. - * - * @schema PodMonitorSpecPodMetricsEndpoints#scheme - */ - readonly scheme?: PodMonitorSpecPodMetricsEndpointsScheme; - - /** - * Timeout after which Prometheus considers the scrape to be failed. - * - * If empty, Prometheus uses the global scrape timeout unless it is less - * than the target's scrape interval value in which the latter is used. - * - * @schema PodMonitorSpecPodMetricsEndpoints#scrapeTimeout - */ - readonly scrapeTimeout?: string; - - /** - * Name or number of the target port of the `Pod` object behind the Service, the - * port must be specified with container port property. - * - * Deprecated: use 'port' instead. - * - * @schema PodMonitorSpecPodMetricsEndpoints#targetPort - */ - readonly targetPort?: PodMonitorSpecPodMetricsEndpointsTargetPort; - - /** - * TLS configuration to use when scraping the target. - * - * @schema PodMonitorSpecPodMetricsEndpoints#tlsConfig - */ - readonly tlsConfig?: PodMonitorSpecPodMetricsEndpointsTlsConfig; - - /** - * `trackTimestampsStaleness` defines whether Prometheus tracks staleness of - * the metrics that have an explicit timestamp present in scraped data. - * Has no effect if `honorTimestamps` is false. - * - * It requires Prometheus >= v2.48.0. - * - * @schema PodMonitorSpecPodMetricsEndpoints#trackTimestampsStaleness - */ - readonly trackTimestampsStaleness?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpoints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpoints(obj: PodMonitorSpecPodMetricsEndpoints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'authorization': toJson_PodMonitorSpecPodMetricsEndpointsAuthorization(obj.authorization), - 'basicAuth': toJson_PodMonitorSpecPodMetricsEndpointsBasicAuth(obj.basicAuth), - 'bearerTokenSecret': toJson_PodMonitorSpecPodMetricsEndpointsBearerTokenSecret(obj.bearerTokenSecret), - 'enableHttp2': obj.enableHttp2, - 'filterRunning': obj.filterRunning, - 'followRedirects': obj.followRedirects, - 'honorLabels': obj.honorLabels, - 'honorTimestamps': obj.honorTimestamps, - 'interval': obj.interval, - 'metricRelabelings': obj.metricRelabelings?.map(y => toJson_PodMonitorSpecPodMetricsEndpointsMetricRelabelings(y)), - 'oauth2': toJson_PodMonitorSpecPodMetricsEndpointsOauth2(obj.oauth2), - 'params': ((obj.params) === undefined) ? undefined : (Object.entries(obj.params).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), - 'path': obj.path, - 'port': obj.port, - 'proxyUrl': obj.proxyUrl, - 'relabelings': obj.relabelings?.map(y => toJson_PodMonitorSpecPodMetricsEndpointsRelabelings(y)), - 'scheme': obj.scheme, - 'scrapeTimeout': obj.scrapeTimeout, - 'targetPort': obj.targetPort?.value, - 'tlsConfig': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfig(obj.tlsConfig), - 'trackTimestampsStaleness': obj.trackTimestampsStaleness, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ScrapeProtocol represents a protocol used by Prometheus for scraping metrics. - * Supported values are: - * * `OpenMetricsText0.0.1` - * * `OpenMetricsText1.0.0` - * * `PrometheusProto` - * * `PrometheusText0.0.4` - * - * @schema PodMonitorSpecScrapeProtocols - */ -export enum PodMonitorSpecScrapeProtocols { - /** PrometheusProto */ - PROMETHEUS_PROTO = "PrometheusProto", - /** OpenMetricsText0.0.1 */ - OPEN_METRICS_TEXT0_0_1 = "OpenMetricsText0.0.1", - /** OpenMetricsText1.0.0 */ - OPEN_METRICS_TEXT1_0_0 = "OpenMetricsText1.0.0", - /** PrometheusText0.0.4 */ - PROMETHEUS_TEXT0_0_4 = "PrometheusText0.0.4", -} - -/** - * Label selector to select the Kubernetes `Pod` objects to scrape metrics from. - * - * @schema PodMonitorSpecSelector - */ -export interface PodMonitorSpecSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema PodMonitorSpecSelector#matchExpressions - */ - readonly matchExpressions?: PodMonitorSpecSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - * map is equivalent to an element of matchExpressions, whose key field is "key", the - * operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema PodMonitorSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'PodMonitorSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecSelector(obj: PodMonitorSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_PodMonitorSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `authorization` configures the Authorization header credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `basicAuth`, or `oauth2`. - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorization - */ -export interface PodMonitorSpecPodMetricsEndpointsAuthorization { - /** - * Selects a key of a Secret in the namespace that contains the credentials for authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorization#credentials - */ - readonly credentials?: PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials; - - /** - * Defines the authentication type. The value is case-insensitive. - * - * "Basic" is not a supported value. - * - * Default: "Bearer" - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorization#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsAuthorization' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsAuthorization(obj: PodMonitorSpecPodMetricsEndpointsAuthorization | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'credentials': toJson_PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials(obj.credentials), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `basicAuth` configures the Basic Authentication credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `authorization`, or `oauth2`. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuth - */ -export interface PodMonitorSpecPodMetricsEndpointsBasicAuth { - /** - * `password` specifies a key of a Secret containing the password for - * authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuth#password - */ - readonly password?: PodMonitorSpecPodMetricsEndpointsBasicAuthPassword; - - /** - * `username` specifies a key of a Secret containing the username for - * authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuth#username - */ - readonly username?: PodMonitorSpecPodMetricsEndpointsBasicAuthUsername; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsBasicAuth' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsBasicAuth(obj: PodMonitorSpecPodMetricsEndpointsBasicAuth | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'password': toJson_PodMonitorSpecPodMetricsEndpointsBasicAuthPassword(obj.password), - 'username': toJson_PodMonitorSpecPodMetricsEndpointsBasicAuthUsername(obj.username), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `bearerTokenSecret` specifies a key of a Secret containing the bearer - * token for scraping targets. The secret needs to be in the same namespace - * as the PodMonitor object and readable by the Prometheus Operator. - * - * Deprecated: use `authorization` instead. - * - * @schema PodMonitorSpecPodMetricsEndpointsBearerTokenSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsBearerTokenSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsBearerTokenSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsBearerTokenSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsBearerTokenSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsBearerTokenSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsBearerTokenSecret(obj: PodMonitorSpecPodMetricsEndpointsBearerTokenSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - * scraped samples and remote write samples. - * - * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings - */ -export interface PodMonitorSpecPodMetricsEndpointsMetricRelabelings { - /** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#action - */ - readonly action?: PodMonitorSpecPodMetricsEndpointsMetricRelabelingsAction; - - /** - * Modulus to take of the hash of the source label values. - * - * Only applicable when the action is `HashMod`. - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#modulus - */ - readonly modulus?: number; - - /** - * Regular expression against which the extracted value is matched. - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#regex - */ - readonly regex?: string; - - /** - * Replacement value against which a Replace action is performed if the - * regular expression matches. - * - * Regex capture groups are available. - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#replacement - */ - readonly replacement?: string; - - /** - * Separator is the string between concatenated SourceLabels. - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#separator - */ - readonly separator?: string; - - /** - * The source labels select values from existing labels. Their content is - * concatenated using the configured Separator and matched against the - * configured regular expression. - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#sourceLabels - */ - readonly sourceLabels?: string[]; - - /** - * Label to which the resulting string is written in a replacement. - * - * It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - * `KeepEqual` and `DropEqual` actions. - * - * Regex capture groups are available. - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelings#targetLabel - */ - readonly targetLabel?: string; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsMetricRelabelings' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsMetricRelabelings(obj: PodMonitorSpecPodMetricsEndpointsMetricRelabelings | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'action': obj.action, - 'modulus': obj.modulus, - 'regex': obj.regex, - 'replacement': obj.replacement, - 'separator': obj.separator, - 'sourceLabels': obj.sourceLabels?.map(y => y), - 'targetLabel': obj.targetLabel, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `oauth2` configures the OAuth2 settings to use when scraping the target. - * - * It requires Prometheus >= 2.27.0. - * - * Cannot be set at the same time as `authorization`, or `basicAuth`. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2 - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2 { - /** - * `clientId` specifies a key of a Secret or ConfigMap containing the - * OAuth2 client's ID. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#clientId - */ - readonly clientId: PodMonitorSpecPodMetricsEndpointsOauth2ClientId; - - /** - * `clientSecret` specifies a key of a Secret containing the OAuth2 - * client's secret. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#clientSecret - */ - readonly clientSecret: PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret; - - /** - * `endpointParams` configures the HTTP parameters to append to the token - * URL. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#endpointParams - */ - readonly endpointParams?: { [key: string]: string }; - - /** - * `noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names - * that should be excluded from proxying. IP and domain names can - * contain port numbers. - * - * It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#noProxy - */ - readonly noProxy?: string; - - /** - * ProxyConnectHeader optionally specifies headers to send to - * proxies during CONNECT requests. - * - * It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#proxyConnectHeader - */ - readonly proxyConnectHeader?: { [key: string]: PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader[] }; - - /** - * Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). - * - * It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#proxyFromEnvironment - */ - readonly proxyFromEnvironment?: boolean; - - /** - * `proxyURL` defines the HTTP proxy server to use. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#proxyUrl - */ - readonly proxyUrl?: string; - - /** - * `scopes` defines the OAuth2 scopes used for the token request. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#scopes - */ - readonly scopes?: string[]; - - /** - * TLS configuration to use when connecting to the OAuth2 server. - * It requires Prometheus >= v2.43.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#tlsConfig - */ - readonly tlsConfig?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig; - - /** - * `tokenURL` configures the URL to fetch the token from. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2#tokenUrl - */ - readonly tokenUrl: string; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2(obj: PodMonitorSpecPodMetricsEndpointsOauth2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientId': toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientId(obj.clientId), - 'clientSecret': toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret(obj.clientSecret), - 'endpointParams': ((obj.endpointParams) === undefined) ? undefined : (Object.entries(obj.endpointParams).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'noProxy': obj.noProxy, - 'proxyConnectHeader': ((obj.proxyConnectHeader) === undefined) ? undefined : (Object.entries(obj.proxyConnectHeader).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => toJson_PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader(y)) }), {})), - 'proxyFromEnvironment': obj.proxyFromEnvironment, - 'proxyUrl': obj.proxyUrl, - 'scopes': obj.scopes?.map(y => y), - 'tlsConfig': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig(obj.tlsConfig), - 'tokenUrl': obj.tokenUrl, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - * scraped samples and remote write samples. - * - * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings - */ -export interface PodMonitorSpecPodMetricsEndpointsRelabelings { - /** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#action - */ - readonly action?: PodMonitorSpecPodMetricsEndpointsRelabelingsAction; - - /** - * Modulus to take of the hash of the source label values. - * - * Only applicable when the action is `HashMod`. - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#modulus - */ - readonly modulus?: number; - - /** - * Regular expression against which the extracted value is matched. - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#regex - */ - readonly regex?: string; - - /** - * Replacement value against which a Replace action is performed if the - * regular expression matches. - * - * Regex capture groups are available. - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#replacement - */ - readonly replacement?: string; - - /** - * Separator is the string between concatenated SourceLabels. - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#separator - */ - readonly separator?: string; - - /** - * The source labels select values from existing labels. Their content is - * concatenated using the configured Separator and matched against the - * configured regular expression. - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#sourceLabels - */ - readonly sourceLabels?: string[]; - - /** - * Label to which the resulting string is written in a replacement. - * - * It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - * `KeepEqual` and `DropEqual` actions. - * - * Regex capture groups are available. - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelings#targetLabel - */ - readonly targetLabel?: string; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsRelabelings' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsRelabelings(obj: PodMonitorSpecPodMetricsEndpointsRelabelings | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'action': obj.action, - 'modulus': obj.modulus, - 'regex': obj.regex, - 'replacement': obj.replacement, - 'separator': obj.separator, - 'sourceLabels': obj.sourceLabels?.map(y => y), - 'targetLabel': obj.targetLabel, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HTTP scheme to use for scraping. - * - * `http` and `https` are the expected values unless you rewrite the - * `__scheme__` label via relabeling. - * - * If empty, Prometheus uses the default value `http`. - * - * @schema PodMonitorSpecPodMetricsEndpointsScheme - */ -export enum PodMonitorSpecPodMetricsEndpointsScheme { - /** http */ - HTTP = "http", - /** https */ - HTTPS = "https", -} - -/** - * Name or number of the target port of the `Pod` object behind the Service, the - * port must be specified with container port property. - * - * Deprecated: use 'port' instead. - * - * @schema PodMonitorSpecPodMetricsEndpointsTargetPort - */ -export class PodMonitorSpecPodMetricsEndpointsTargetPort { - public static fromNumber(value: number): PodMonitorSpecPodMetricsEndpointsTargetPort { - return new PodMonitorSpecPodMetricsEndpointsTargetPort(value); - } - public static fromString(value: string): PodMonitorSpecPodMetricsEndpointsTargetPort { - return new PodMonitorSpecPodMetricsEndpointsTargetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * TLS configuration to use when scraping the target. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfig { - /** - * Certificate authority used when verifying server certificates. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#ca - */ - readonly ca?: PodMonitorSpecPodMetricsEndpointsTlsConfigCa; - - /** - * Client certificate to present when doing client-authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#cert - */ - readonly cert?: PodMonitorSpecPodMetricsEndpointsTlsConfigCert; - - /** - * Disable target certificate validation. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#insecureSkipVerify - */ - readonly insecureSkipVerify?: boolean; - - /** - * Secret containing the client key file for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#keySecret - */ - readonly keySecret?: PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret; - - /** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#maxVersion - */ - readonly maxVersion?: PodMonitorSpecPodMetricsEndpointsTlsConfigMaxVersion; - - /** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#minVersion - */ - readonly minVersion?: PodMonitorSpecPodMetricsEndpointsTlsConfigMinVersion; - - /** - * Used to verify the hostname for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfig#serverName - */ - readonly serverName?: string; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfig(obj: PodMonitorSpecPodMetricsEndpointsTlsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ca': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCa(obj.ca), - 'cert': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCert(obj.cert), - 'insecureSkipVerify': obj.insecureSkipVerify, - 'keySecret': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret(obj.keySecret), - 'maxVersion': obj.maxVersion, - 'minVersion': obj.minVersion, - 'serverName': obj.serverName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that - * relates the key and values. - * - * @schema PodMonitorSpecSelectorMatchExpressions - */ -export interface PodMonitorSpecSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema PodMonitorSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. - * Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema PodMonitorSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, - * the values array must be non-empty. If the operator is Exists or DoesNotExist, - * the values array must be empty. This array is replaced during a strategic - * merge patch. - * - * @schema PodMonitorSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'PodMonitorSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecSelectorMatchExpressions(obj: PodMonitorSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Selects a key of a Secret in the namespace that contains the credentials for authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials - */ -export interface PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials(obj: PodMonitorSpecPodMetricsEndpointsAuthorizationCredentials | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `password` specifies a key of a Secret containing the password for - * authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthPassword - */ -export interface PodMonitorSpecPodMetricsEndpointsBasicAuthPassword { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthPassword#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthPassword#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthPassword#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsBasicAuthPassword' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsBasicAuthPassword(obj: PodMonitorSpecPodMetricsEndpointsBasicAuthPassword | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `username` specifies a key of a Secret containing the username for - * authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthUsername - */ -export interface PodMonitorSpecPodMetricsEndpointsBasicAuthUsername { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthUsername#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthUsername#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsBasicAuthUsername#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsBasicAuthUsername' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsBasicAuthUsername(obj: PodMonitorSpecPodMetricsEndpointsBasicAuthUsername | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema PodMonitorSpecPodMetricsEndpointsMetricRelabelingsAction - */ -export enum PodMonitorSpecPodMetricsEndpointsMetricRelabelingsAction { - /** replace */ - REPLACE = "replace", - /** keep */ - KEEP = "keep", - /** drop */ - DROP = "drop", - /** hashmod */ - HASHMOD = "hashmod", - /** labelmap */ - LABELMAP = "labelmap", - /** labeldrop */ - LABELDROP = "labeldrop", - /** labelkeep */ - LABELKEEP = "labelkeep", - /** lowercase */ - LOWERCASE = "lowercase", - /** uppercase */ - UPPERCASE = "uppercase", - /** keepequal */ - KEEPEQUAL = "keepequal", - /** dropequal */ - DROPEQUAL = "dropequal", -} - -/** - * `clientId` specifies a key of a Secret or ConfigMap containing the - * OAuth2 client's ID. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientId - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2ClientId { - /** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientId#configMap - */ - readonly configMap?: PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientId#secret - */ - readonly secret?: PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2ClientId' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientId(obj: PodMonitorSpecPodMetricsEndpointsOauth2ClientId | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap(obj.configMap), - 'secret': toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `clientSecret` specifies a key of a Secret containing the OAuth2 - * client's secret. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret(obj: PodMonitorSpecPodMetricsEndpointsOauth2ClientSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecretKeySelector selects a key of a Secret. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader(obj: PodMonitorSpecPodMetricsEndpointsOauth2ProxyConnectHeader | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TLS configuration to use when connecting to the OAuth2 server. - * It requires Prometheus >= v2.43.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig { - /** - * Certificate authority used when verifying server certificates. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#ca - */ - readonly ca?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa; - - /** - * Client certificate to present when doing client-authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#cert - */ - readonly cert?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert; - - /** - * Disable target certificate validation. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#insecureSkipVerify - */ - readonly insecureSkipVerify?: boolean; - - /** - * Secret containing the client key file for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#keySecret - */ - readonly keySecret?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret; - - /** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#maxVersion - */ - readonly maxVersion?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigMaxVersion; - - /** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#minVersion - */ - readonly minVersion?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigMinVersion; - - /** - * Used to verify the hostname for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig#serverName - */ - readonly serverName?: string; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ca': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa(obj.ca), - 'cert': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert(obj.cert), - 'insecureSkipVerify': obj.insecureSkipVerify, - 'keySecret': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret(obj.keySecret), - 'maxVersion': obj.maxVersion, - 'minVersion': obj.minVersion, - 'serverName': obj.serverName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema PodMonitorSpecPodMetricsEndpointsRelabelingsAction - */ -export enum PodMonitorSpecPodMetricsEndpointsRelabelingsAction { - /** replace */ - REPLACE = "replace", - /** keep */ - KEEP = "keep", - /** drop */ - DROP = "drop", - /** hashmod */ - HASHMOD = "hashmod", - /** labelmap */ - LABELMAP = "labelmap", - /** labeldrop */ - LABELDROP = "labeldrop", - /** labelkeep */ - LABELKEEP = "labelkeep", - /** lowercase */ - LOWERCASE = "lowercase", - /** uppercase */ - UPPERCASE = "uppercase", - /** keepequal */ - KEEPEQUAL = "keepequal", - /** dropequal */ - DROPEQUAL = "dropequal", -} - -/** - * Certificate authority used when verifying server certificates. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCa - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigCa { - /** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCa#configMap - */ - readonly configMap?: PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCa#secret - */ - readonly secret?: PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigCa' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCa(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigCa | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap(obj.configMap), - 'secret': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Client certificate to present when doing client-authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCert - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigCert { - /** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCert#configMap - */ - readonly configMap?: PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCert#secret - */ - readonly secret?: PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigCert' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCert(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigCert | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap(obj.configMap), - 'secret': toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing the client key file for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigKeySecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigMaxVersion - */ -export enum PodMonitorSpecPodMetricsEndpointsTlsConfigMaxVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigMinVersion - */ -export enum PodMonitorSpecPodMetricsEndpointsTlsConfigMinVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap { - /** - * The key to select. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap(obj: PodMonitorSpecPodMetricsEndpointsOauth2ClientIdConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret(obj: PodMonitorSpecPodMetricsEndpointsOauth2ClientIdSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Certificate authority used when verifying server certificates. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa { - /** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa#configMap - */ - readonly configMap?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa#secret - */ - readonly secret?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCa | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap(obj.configMap), - 'secret': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Client certificate to present when doing client-authentication. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert { - /** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert#configMap - */ - readonly configMap?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert#secret - */ - readonly secret?: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCert | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap(obj.configMap), - 'secret': toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing the client key file for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigKeySecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigMaxVersion - */ -export enum PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigMaxVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigMinVersion - */ -export enum PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigMinVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap { - /** - * The key to select. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigCaConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigCaSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap { - /** - * The key to select. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigCertConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret(obj: PodMonitorSpecPodMetricsEndpointsTlsConfigCertSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap { - /** - * The key to select. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCaSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap { - /** - * The key to select. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret - */ -export interface PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret(obj: PodMonitorSpecPodMetricsEndpointsOauth2TlsConfigCertSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - - -/** - * The `ServiceMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of services. -Among other things, it allows to specify: -* The services to scrape via label selectors. -* The container ports to scrape. -* Authentication credentials to use. -* Target and metric relabeling. - -`Prometheus` and `PrometheusAgent` objects select `ServiceMonitor` objects using label and namespace selectors. - * - * @schema ServiceMonitor - */ -export class ServiceMonitor extends ApiObject { - /** - * Returns the apiVersion and kind for "ServiceMonitor" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - } - - /** - * Renders a Kubernetes manifest for "ServiceMonitor". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: ServiceMonitorProps): any { - return { - ...ServiceMonitor.GVK, - ...toJson_ServiceMonitorProps(props), - }; - } - - /** - * Defines a "ServiceMonitor" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: ServiceMonitorProps) { - super(scope, id, { - ...ServiceMonitor.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...ServiceMonitor.GVK, - ...toJson_ServiceMonitorProps(resolved), - }; - } -} - -/** - * The `ServiceMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of services. - * Among other things, it allows to specify: - * * The services to scrape via label selectors. - * * The container ports to scrape. - * * Authentication credentials to use. - * * Target and metric relabeling. - * - * `Prometheus` and `PrometheusAgent` objects select `ServiceMonitor` objects using label and namespace selectors. - * - * @schema ServiceMonitor - */ -export interface ServiceMonitorProps { - /** - * @schema ServiceMonitor#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * Specification of desired Service selection for target discovery by - * Prometheus. - * - * @schema ServiceMonitor#spec - */ - readonly spec: ServiceMonitorSpec; - -} - -/** - * Converts an object of type 'ServiceMonitorProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorProps(obj: ServiceMonitorProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_ServiceMonitorSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Specification of desired Service selection for target discovery by - * Prometheus. - * - * @schema ServiceMonitorSpec - */ -export interface ServiceMonitorSpec { - /** - * `attachMetadata` defines additional metadata which is added to the - * discovered targets. - * - * It requires Prometheus >= v2.37.0. - * - * @schema ServiceMonitorSpec#attachMetadata - */ - readonly attachMetadata?: ServiceMonitorSpecAttachMetadata; - - /** - * When defined, bodySizeLimit specifies a job level limit on the size - * of uncompressed response body that will be accepted by Prometheus. - * - * It requires Prometheus >= v2.28.0. - * - * @schema ServiceMonitorSpec#bodySizeLimit - */ - readonly bodySizeLimit?: string; - - /** - * List of endpoints part of this ServiceMonitor. - * Defines how to scrape metrics from Kubernetes [Endpoints](https://kubernetes.io/docs/concepts/services-networking/service/#endpoints) objects. - * In most cases, an Endpoints object is backed by a Kubernetes [Service](https://kubernetes.io/docs/concepts/services-networking/service/) object with the same name and labels. - * - * @schema ServiceMonitorSpec#endpoints - */ - readonly endpoints: ServiceMonitorSpecEndpoints[]; - - /** - * `jobLabel` selects the label from the associated Kubernetes `Service` - * object which will be used as the `job` label for all metrics. - * - * For example if `jobLabel` is set to `foo` and the Kubernetes `Service` - * object is labeled with `foo: bar`, then Prometheus adds the `job="bar"` - * label to all ingested metrics. - * - * If the value of this field is empty or if the label doesn't exist for - * the given Service, the `job` label of the metrics defaults to the name - * of the associated Kubernetes `Service`. - * - * @schema ServiceMonitorSpec#jobLabel - */ - readonly jobLabel?: string; - - /** - * Per-scrape limit on the number of targets dropped by relabeling - * that will be kept in memory. 0 means no limit. - * - * It requires Prometheus >= v2.47.0. - * - * @schema ServiceMonitorSpec#keepDroppedTargets - */ - readonly keepDroppedTargets?: number; - - /** - * Per-scrape limit on number of labels that will be accepted for a sample. - * - * It requires Prometheus >= v2.27.0. - * - * @schema ServiceMonitorSpec#labelLimit - */ - readonly labelLimit?: number; - - /** - * Per-scrape limit on length of labels name that will be accepted for a sample. - * - * It requires Prometheus >= v2.27.0. - * - * @schema ServiceMonitorSpec#labelNameLengthLimit - */ - readonly labelNameLengthLimit?: number; - - /** - * Per-scrape limit on length of labels value that will be accepted for a sample. - * - * It requires Prometheus >= v2.27.0. - * - * @schema ServiceMonitorSpec#labelValueLengthLimit - */ - readonly labelValueLengthLimit?: number; - - /** - * `namespaceSelector` defines in which namespace(s) Prometheus should discover the services. - * By default, the services are discovered in the same namespace as the `ServiceMonitor` object but it is possible to select pods across different/all namespaces. - * - * @schema ServiceMonitorSpec#namespaceSelector - */ - readonly namespaceSelector?: ServiceMonitorSpecNamespaceSelector; - - /** - * If there are more than this many buckets in a native histogram, - * buckets will be merged to stay within the limit. - * It requires Prometheus >= v2.45.0. - * - * @schema ServiceMonitorSpec#nativeHistogramBucketLimit - */ - readonly nativeHistogramBucketLimit?: number; - - /** - * If the growth factor of one bucket to the next is smaller than this, - * buckets will be merged to increase the factor sufficiently. - * It requires Prometheus >= v2.50.0. - * - * @schema ServiceMonitorSpec#nativeHistogramMinBucketFactor - */ - readonly nativeHistogramMinBucketFactor?: ServiceMonitorSpecNativeHistogramMinBucketFactor; - - /** - * `podTargetLabels` defines the labels which are transferred from the - * associated Kubernetes `Pod` object onto the ingested metrics. - * - * @schema ServiceMonitorSpec#podTargetLabels - */ - readonly podTargetLabels?: string[]; - - /** - * `sampleLimit` defines a per-scrape limit on the number of scraped samples - * that will be accepted. - * - * @schema ServiceMonitorSpec#sampleLimit - */ - readonly sampleLimit?: number; - - /** - * The scrape class to apply. - * - * @schema ServiceMonitorSpec#scrapeClass - */ - readonly scrapeClass?: string; - - /** - * Whether to scrape a classic histogram that is also exposed as a native histogram. - * It requires Prometheus >= v2.45.0. - * - * @schema ServiceMonitorSpec#scrapeClassicHistograms - */ - readonly scrapeClassicHistograms?: boolean; - - /** - * `scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the - * protocols supported by Prometheus in order of preference (from most to least preferred). - * - * If unset, Prometheus uses its default value. - * - * It requires Prometheus >= v2.49.0. - * - * @schema ServiceMonitorSpec#scrapeProtocols - */ - readonly scrapeProtocols?: ServiceMonitorSpecScrapeProtocols[]; - - /** - * Label selector to select the Kubernetes `Endpoints` objects to scrape metrics from. - * - * @schema ServiceMonitorSpec#selector - */ - readonly selector: ServiceMonitorSpecSelector; - - /** - * `targetLabels` defines the labels which are transferred from the - * associated Kubernetes `Service` object onto the ingested metrics. - * - * @schema ServiceMonitorSpec#targetLabels - */ - readonly targetLabels?: string[]; - - /** - * `targetLimit` defines a limit on the number of scraped targets that will - * be accepted. - * - * @schema ServiceMonitorSpec#targetLimit - */ - readonly targetLimit?: number; - -} - -/** - * Converts an object of type 'ServiceMonitorSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpec(obj: ServiceMonitorSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'attachMetadata': toJson_ServiceMonitorSpecAttachMetadata(obj.attachMetadata), - 'bodySizeLimit': obj.bodySizeLimit, - 'endpoints': obj.endpoints?.map(y => toJson_ServiceMonitorSpecEndpoints(y)), - 'jobLabel': obj.jobLabel, - 'keepDroppedTargets': obj.keepDroppedTargets, - 'labelLimit': obj.labelLimit, - 'labelNameLengthLimit': obj.labelNameLengthLimit, - 'labelValueLengthLimit': obj.labelValueLengthLimit, - 'namespaceSelector': toJson_ServiceMonitorSpecNamespaceSelector(obj.namespaceSelector), - 'nativeHistogramBucketLimit': obj.nativeHistogramBucketLimit, - 'nativeHistogramMinBucketFactor': obj.nativeHistogramMinBucketFactor?.value, - 'podTargetLabels': obj.podTargetLabels?.map(y => y), - 'sampleLimit': obj.sampleLimit, - 'scrapeClass': obj.scrapeClass, - 'scrapeClassicHistograms': obj.scrapeClassicHistograms, - 'scrapeProtocols': obj.scrapeProtocols?.map(y => y), - 'selector': toJson_ServiceMonitorSpecSelector(obj.selector), - 'targetLabels': obj.targetLabels?.map(y => y), - 'targetLimit': obj.targetLimit, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `attachMetadata` defines additional metadata which is added to the - * discovered targets. - * - * It requires Prometheus >= v2.37.0. - * - * @schema ServiceMonitorSpecAttachMetadata - */ -export interface ServiceMonitorSpecAttachMetadata { - /** - * When set to true, Prometheus attaches node metadata to the discovered - * targets. - * - * The Prometheus service account must have the `list` and `watch` - * permissions on the `Nodes` objects. - * - * @schema ServiceMonitorSpecAttachMetadata#node - */ - readonly node?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecAttachMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecAttachMetadata(obj: ServiceMonitorSpecAttachMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'node': obj.node, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Endpoint defines an endpoint serving Prometheus metrics to be scraped by - * Prometheus. - * - * @schema ServiceMonitorSpecEndpoints - */ -export interface ServiceMonitorSpecEndpoints { - /** - * `authorization` configures the Authorization header credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `basicAuth`, or `oauth2`. - * - * @schema ServiceMonitorSpecEndpoints#authorization - */ - readonly authorization?: ServiceMonitorSpecEndpointsAuthorization; - - /** - * `basicAuth` configures the Basic Authentication credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `authorization`, or `oauth2`. - * - * @schema ServiceMonitorSpecEndpoints#basicAuth - */ - readonly basicAuth?: ServiceMonitorSpecEndpointsBasicAuth; - - /** - * File to read bearer token for scraping the target. - * - * Deprecated: use `authorization` instead. - * - * @schema ServiceMonitorSpecEndpoints#bearerTokenFile - */ - readonly bearerTokenFile?: string; - - /** - * `bearerTokenSecret` specifies a key of a Secret containing the bearer - * token for scraping targets. The secret needs to be in the same namespace - * as the ServiceMonitor object and readable by the Prometheus Operator. - * - * Deprecated: use `authorization` instead. - * - * @schema ServiceMonitorSpecEndpoints#bearerTokenSecret - */ - readonly bearerTokenSecret?: ServiceMonitorSpecEndpointsBearerTokenSecret; - - /** - * `enableHttp2` can be used to disable HTTP2 when scraping the target. - * - * @schema ServiceMonitorSpecEndpoints#enableHttp2 - */ - readonly enableHttp2?: boolean; - - /** - * When true, the pods which are not running (e.g. either in Failed or - * Succeeded state) are dropped during the target discovery. - * - * If unset, the filtering is enabled. - * - * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase - * - * @schema ServiceMonitorSpecEndpoints#filterRunning - */ - readonly filterRunning?: boolean; - - /** - * `followRedirects` defines whether the scrape requests should follow HTTP - * 3xx redirects. - * - * @schema ServiceMonitorSpecEndpoints#followRedirects - */ - readonly followRedirects?: boolean; - - /** - * When true, `honorLabels` preserves the metric's labels when they collide - * with the target's labels. - * - * @schema ServiceMonitorSpecEndpoints#honorLabels - */ - readonly honorLabels?: boolean; - - /** - * `honorTimestamps` controls whether Prometheus preserves the timestamps - * when exposed by the target. - * - * @schema ServiceMonitorSpecEndpoints#honorTimestamps - */ - readonly honorTimestamps?: boolean; - - /** - * Interval at which Prometheus scrapes the metrics from the target. - * - * If empty, Prometheus uses the global scrape interval. - * - * @schema ServiceMonitorSpecEndpoints#interval - */ - readonly interval?: string; - - /** - * `metricRelabelings` configures the relabeling rules to apply to the - * samples before ingestion. - * - * @schema ServiceMonitorSpecEndpoints#metricRelabelings - */ - readonly metricRelabelings?: ServiceMonitorSpecEndpointsMetricRelabelings[]; - - /** - * `oauth2` configures the OAuth2 settings to use when scraping the target. - * - * It requires Prometheus >= 2.27.0. - * - * Cannot be set at the same time as `authorization`, or `basicAuth`. - * - * @schema ServiceMonitorSpecEndpoints#oauth2 - */ - readonly oauth2?: ServiceMonitorSpecEndpointsOauth2; - - /** - * params define optional HTTP URL parameters. - * - * @schema ServiceMonitorSpecEndpoints#params - */ - readonly params?: { [key: string]: string[] }; - - /** - * HTTP path from which to scrape for metrics. - * - * If empty, Prometheus uses the default value (e.g. `/metrics`). - * - * @schema ServiceMonitorSpecEndpoints#path - */ - readonly path?: string; - - /** - * Name of the Service port which this endpoint refers to. - * - * It takes precedence over `targetPort`. - * - * @schema ServiceMonitorSpecEndpoints#port - */ - readonly port?: string; - - /** - * `proxyURL` configures the HTTP Proxy URL (e.g. - * "http://proxyserver:2195") to go through when scraping the target. - * - * @schema ServiceMonitorSpecEndpoints#proxyUrl - */ - readonly proxyUrl?: string; - - /** - * `relabelings` configures the relabeling rules to apply the target's - * metadata labels. - * - * The Operator automatically adds relabelings for a few standard Kubernetes fields. - * - * The original scrape job's name is available via the `__tmp_prometheus_job_name` label. - * - * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - * - * @schema ServiceMonitorSpecEndpoints#relabelings - */ - readonly relabelings?: ServiceMonitorSpecEndpointsRelabelings[]; - - /** - * HTTP scheme to use for scraping. - * - * `http` and `https` are the expected values unless you rewrite the - * `__scheme__` label via relabeling. - * - * If empty, Prometheus uses the default value `http`. - * - * @schema ServiceMonitorSpecEndpoints#scheme - */ - readonly scheme?: ServiceMonitorSpecEndpointsScheme; - - /** - * Timeout after which Prometheus considers the scrape to be failed. - * - * If empty, Prometheus uses the global scrape timeout unless it is less - * than the target's scrape interval value in which the latter is used. - * - * @schema ServiceMonitorSpecEndpoints#scrapeTimeout - */ - readonly scrapeTimeout?: string; - - /** - * Name or number of the target port of the `Pod` object behind the - * Service. The port must be specified with the container's port property. - * - * @schema ServiceMonitorSpecEndpoints#targetPort - */ - readonly targetPort?: ServiceMonitorSpecEndpointsTargetPort; - - /** - * TLS configuration to use when scraping the target. - * - * @schema ServiceMonitorSpecEndpoints#tlsConfig - */ - readonly tlsConfig?: ServiceMonitorSpecEndpointsTlsConfig; - - /** - * `trackTimestampsStaleness` defines whether Prometheus tracks staleness of - * the metrics that have an explicit timestamp present in scraped data. - * Has no effect if `honorTimestamps` is false. - * - * It requires Prometheus >= v2.48.0. - * - * @schema ServiceMonitorSpecEndpoints#trackTimestampsStaleness - */ - readonly trackTimestampsStaleness?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpoints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpoints(obj: ServiceMonitorSpecEndpoints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'authorization': toJson_ServiceMonitorSpecEndpointsAuthorization(obj.authorization), - 'basicAuth': toJson_ServiceMonitorSpecEndpointsBasicAuth(obj.basicAuth), - 'bearerTokenFile': obj.bearerTokenFile, - 'bearerTokenSecret': toJson_ServiceMonitorSpecEndpointsBearerTokenSecret(obj.bearerTokenSecret), - 'enableHttp2': obj.enableHttp2, - 'filterRunning': obj.filterRunning, - 'followRedirects': obj.followRedirects, - 'honorLabels': obj.honorLabels, - 'honorTimestamps': obj.honorTimestamps, - 'interval': obj.interval, - 'metricRelabelings': obj.metricRelabelings?.map(y => toJson_ServiceMonitorSpecEndpointsMetricRelabelings(y)), - 'oauth2': toJson_ServiceMonitorSpecEndpointsOauth2(obj.oauth2), - 'params': ((obj.params) === undefined) ? undefined : (Object.entries(obj.params).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), - 'path': obj.path, - 'port': obj.port, - 'proxyUrl': obj.proxyUrl, - 'relabelings': obj.relabelings?.map(y => toJson_ServiceMonitorSpecEndpointsRelabelings(y)), - 'scheme': obj.scheme, - 'scrapeTimeout': obj.scrapeTimeout, - 'targetPort': obj.targetPort?.value, - 'tlsConfig': toJson_ServiceMonitorSpecEndpointsTlsConfig(obj.tlsConfig), - 'trackTimestampsStaleness': obj.trackTimestampsStaleness, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `namespaceSelector` defines in which namespace(s) Prometheus should discover the services. - * By default, the services are discovered in the same namespace as the `ServiceMonitor` object but it is possible to select pods across different/all namespaces. - * - * @schema ServiceMonitorSpecNamespaceSelector - */ -export interface ServiceMonitorSpecNamespaceSelector { - /** - * Boolean describing whether all namespaces are selected in contrast to a - * list restricting them. - * - * @schema ServiceMonitorSpecNamespaceSelector#any - */ - readonly any?: boolean; - - /** - * List of namespace names to select from. - * - * @schema ServiceMonitorSpecNamespaceSelector#matchNames - */ - readonly matchNames?: string[]; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecNamespaceSelector(obj: ServiceMonitorSpecNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'any': obj.any, - 'matchNames': obj.matchNames?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * If the growth factor of one bucket to the next is smaller than this, - * buckets will be merged to increase the factor sufficiently. - * It requires Prometheus >= v2.50.0. - * - * @schema ServiceMonitorSpecNativeHistogramMinBucketFactor - */ -export class ServiceMonitorSpecNativeHistogramMinBucketFactor { - public static fromNumber(value: number): ServiceMonitorSpecNativeHistogramMinBucketFactor { - return new ServiceMonitorSpecNativeHistogramMinBucketFactor(value); - } - public static fromString(value: string): ServiceMonitorSpecNativeHistogramMinBucketFactor { - return new ServiceMonitorSpecNativeHistogramMinBucketFactor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * ScrapeProtocol represents a protocol used by Prometheus for scraping metrics. - * Supported values are: - * * `OpenMetricsText0.0.1` - * * `OpenMetricsText1.0.0` - * * `PrometheusProto` - * * `PrometheusText0.0.4` - * - * @schema ServiceMonitorSpecScrapeProtocols - */ -export enum ServiceMonitorSpecScrapeProtocols { - /** PrometheusProto */ - PROMETHEUS_PROTO = "PrometheusProto", - /** OpenMetricsText0.0.1 */ - OPEN_METRICS_TEXT0_0_1 = "OpenMetricsText0.0.1", - /** OpenMetricsText1.0.0 */ - OPEN_METRICS_TEXT1_0_0 = "OpenMetricsText1.0.0", - /** PrometheusText0.0.4 */ - PROMETHEUS_TEXT0_0_4 = "PrometheusText0.0.4", -} - -/** - * Label selector to select the Kubernetes `Endpoints` objects to scrape metrics from. - * - * @schema ServiceMonitorSpecSelector - */ -export interface ServiceMonitorSpecSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema ServiceMonitorSpecSelector#matchExpressions - */ - readonly matchExpressions?: ServiceMonitorSpecSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - * map is equivalent to an element of matchExpressions, whose key field is "key", the - * operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema ServiceMonitorSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecSelector(obj: ServiceMonitorSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_ServiceMonitorSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `authorization` configures the Authorization header credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `basicAuth`, or `oauth2`. - * - * @schema ServiceMonitorSpecEndpointsAuthorization - */ -export interface ServiceMonitorSpecEndpointsAuthorization { - /** - * Selects a key of a Secret in the namespace that contains the credentials for authentication. - * - * @schema ServiceMonitorSpecEndpointsAuthorization#credentials - */ - readonly credentials?: ServiceMonitorSpecEndpointsAuthorizationCredentials; - - /** - * Defines the authentication type. The value is case-insensitive. - * - * "Basic" is not a supported value. - * - * Default: "Bearer" - * - * @schema ServiceMonitorSpecEndpointsAuthorization#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsAuthorization' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsAuthorization(obj: ServiceMonitorSpecEndpointsAuthorization | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'credentials': toJson_ServiceMonitorSpecEndpointsAuthorizationCredentials(obj.credentials), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `basicAuth` configures the Basic Authentication credentials to use when - * scraping the target. - * - * Cannot be set at the same time as `authorization`, or `oauth2`. - * - * @schema ServiceMonitorSpecEndpointsBasicAuth - */ -export interface ServiceMonitorSpecEndpointsBasicAuth { - /** - * `password` specifies a key of a Secret containing the password for - * authentication. - * - * @schema ServiceMonitorSpecEndpointsBasicAuth#password - */ - readonly password?: ServiceMonitorSpecEndpointsBasicAuthPassword; - - /** - * `username` specifies a key of a Secret containing the username for - * authentication. - * - * @schema ServiceMonitorSpecEndpointsBasicAuth#username - */ - readonly username?: ServiceMonitorSpecEndpointsBasicAuthUsername; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsBasicAuth' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsBasicAuth(obj: ServiceMonitorSpecEndpointsBasicAuth | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'password': toJson_ServiceMonitorSpecEndpointsBasicAuthPassword(obj.password), - 'username': toJson_ServiceMonitorSpecEndpointsBasicAuthUsername(obj.username), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `bearerTokenSecret` specifies a key of a Secret containing the bearer - * token for scraping targets. The secret needs to be in the same namespace - * as the ServiceMonitor object and readable by the Prometheus Operator. - * - * Deprecated: use `authorization` instead. - * - * @schema ServiceMonitorSpecEndpointsBearerTokenSecret - */ -export interface ServiceMonitorSpecEndpointsBearerTokenSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsBearerTokenSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsBearerTokenSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsBearerTokenSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsBearerTokenSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsBearerTokenSecret(obj: ServiceMonitorSpecEndpointsBearerTokenSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - * scraped samples and remote write samples. - * - * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings - */ -export interface ServiceMonitorSpecEndpointsMetricRelabelings { - /** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#action - */ - readonly action?: ServiceMonitorSpecEndpointsMetricRelabelingsAction; - - /** - * Modulus to take of the hash of the source label values. - * - * Only applicable when the action is `HashMod`. - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#modulus - */ - readonly modulus?: number; - - /** - * Regular expression against which the extracted value is matched. - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#regex - */ - readonly regex?: string; - - /** - * Replacement value against which a Replace action is performed if the - * regular expression matches. - * - * Regex capture groups are available. - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#replacement - */ - readonly replacement?: string; - - /** - * Separator is the string between concatenated SourceLabels. - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#separator - */ - readonly separator?: string; - - /** - * The source labels select values from existing labels. Their content is - * concatenated using the configured Separator and matched against the - * configured regular expression. - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#sourceLabels - */ - readonly sourceLabels?: string[]; - - /** - * Label to which the resulting string is written in a replacement. - * - * It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - * `KeepEqual` and `DropEqual` actions. - * - * Regex capture groups are available. - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelings#targetLabel - */ - readonly targetLabel?: string; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsMetricRelabelings' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsMetricRelabelings(obj: ServiceMonitorSpecEndpointsMetricRelabelings | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'action': obj.action, - 'modulus': obj.modulus, - 'regex': obj.regex, - 'replacement': obj.replacement, - 'separator': obj.separator, - 'sourceLabels': obj.sourceLabels?.map(y => y), - 'targetLabel': obj.targetLabel, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `oauth2` configures the OAuth2 settings to use when scraping the target. - * - * It requires Prometheus >= 2.27.0. - * - * Cannot be set at the same time as `authorization`, or `basicAuth`. - * - * @schema ServiceMonitorSpecEndpointsOauth2 - */ -export interface ServiceMonitorSpecEndpointsOauth2 { - /** - * `clientId` specifies a key of a Secret or ConfigMap containing the - * OAuth2 client's ID. - * - * @schema ServiceMonitorSpecEndpointsOauth2#clientId - */ - readonly clientId: ServiceMonitorSpecEndpointsOauth2ClientId; - - /** - * `clientSecret` specifies a key of a Secret containing the OAuth2 - * client's secret. - * - * @schema ServiceMonitorSpecEndpointsOauth2#clientSecret - */ - readonly clientSecret: ServiceMonitorSpecEndpointsOauth2ClientSecret; - - /** - * `endpointParams` configures the HTTP parameters to append to the token - * URL. - * - * @schema ServiceMonitorSpecEndpointsOauth2#endpointParams - */ - readonly endpointParams?: { [key: string]: string }; - - /** - * `noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names - * that should be excluded from proxying. IP and domain names can - * contain port numbers. - * - * It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2#noProxy - */ - readonly noProxy?: string; - - /** - * ProxyConnectHeader optionally specifies headers to send to - * proxies during CONNECT requests. - * - * It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2#proxyConnectHeader - */ - readonly proxyConnectHeader?: { [key: string]: ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader[] }; - - /** - * Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). - * - * It requires Prometheus >= v2.43.0 or Alertmanager >= 0.25.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2#proxyFromEnvironment - */ - readonly proxyFromEnvironment?: boolean; - - /** - * `proxyURL` defines the HTTP proxy server to use. - * - * @schema ServiceMonitorSpecEndpointsOauth2#proxyUrl - */ - readonly proxyUrl?: string; - - /** - * `scopes` defines the OAuth2 scopes used for the token request. - * - * @schema ServiceMonitorSpecEndpointsOauth2#scopes - */ - readonly scopes?: string[]; - - /** - * TLS configuration to use when connecting to the OAuth2 server. - * It requires Prometheus >= v2.43.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2#tlsConfig - */ - readonly tlsConfig?: ServiceMonitorSpecEndpointsOauth2TlsConfig; - - /** - * `tokenURL` configures the URL to fetch the token from. - * - * @schema ServiceMonitorSpecEndpointsOauth2#tokenUrl - */ - readonly tokenUrl: string; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2(obj: ServiceMonitorSpecEndpointsOauth2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientId': toJson_ServiceMonitorSpecEndpointsOauth2ClientId(obj.clientId), - 'clientSecret': toJson_ServiceMonitorSpecEndpointsOauth2ClientSecret(obj.clientSecret), - 'endpointParams': ((obj.endpointParams) === undefined) ? undefined : (Object.entries(obj.endpointParams).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'noProxy': obj.noProxy, - 'proxyConnectHeader': ((obj.proxyConnectHeader) === undefined) ? undefined : (Object.entries(obj.proxyConnectHeader).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => toJson_ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader(y)) }), {})), - 'proxyFromEnvironment': obj.proxyFromEnvironment, - 'proxyUrl': obj.proxyUrl, - 'scopes': obj.scopes?.map(y => y), - 'tlsConfig': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfig(obj.tlsConfig), - 'tokenUrl': obj.tokenUrl, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RelabelConfig allows dynamic rewriting of the label set for targets, alerts, - * scraped samples and remote write samples. - * - * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config - * - * @schema ServiceMonitorSpecEndpointsRelabelings - */ -export interface ServiceMonitorSpecEndpointsRelabelings { - /** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema ServiceMonitorSpecEndpointsRelabelings#action - */ - readonly action?: ServiceMonitorSpecEndpointsRelabelingsAction; - - /** - * Modulus to take of the hash of the source label values. - * - * Only applicable when the action is `HashMod`. - * - * @schema ServiceMonitorSpecEndpointsRelabelings#modulus - */ - readonly modulus?: number; - - /** - * Regular expression against which the extracted value is matched. - * - * @schema ServiceMonitorSpecEndpointsRelabelings#regex - */ - readonly regex?: string; - - /** - * Replacement value against which a Replace action is performed if the - * regular expression matches. - * - * Regex capture groups are available. - * - * @schema ServiceMonitorSpecEndpointsRelabelings#replacement - */ - readonly replacement?: string; - - /** - * Separator is the string between concatenated SourceLabels. - * - * @schema ServiceMonitorSpecEndpointsRelabelings#separator - */ - readonly separator?: string; - - /** - * The source labels select values from existing labels. Their content is - * concatenated using the configured Separator and matched against the - * configured regular expression. - * - * @schema ServiceMonitorSpecEndpointsRelabelings#sourceLabels - */ - readonly sourceLabels?: string[]; - - /** - * Label to which the resulting string is written in a replacement. - * - * It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, - * `KeepEqual` and `DropEqual` actions. - * - * Regex capture groups are available. - * - * @schema ServiceMonitorSpecEndpointsRelabelings#targetLabel - */ - readonly targetLabel?: string; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsRelabelings' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsRelabelings(obj: ServiceMonitorSpecEndpointsRelabelings | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'action': obj.action, - 'modulus': obj.modulus, - 'regex': obj.regex, - 'replacement': obj.replacement, - 'separator': obj.separator, - 'sourceLabels': obj.sourceLabels?.map(y => y), - 'targetLabel': obj.targetLabel, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HTTP scheme to use for scraping. - * - * `http` and `https` are the expected values unless you rewrite the - * `__scheme__` label via relabeling. - * - * If empty, Prometheus uses the default value `http`. - * - * @schema ServiceMonitorSpecEndpointsScheme - */ -export enum ServiceMonitorSpecEndpointsScheme { - /** http */ - HTTP = "http", - /** https */ - HTTPS = "https", -} - -/** - * Name or number of the target port of the `Pod` object behind the - * Service. The port must be specified with the container's port property. - * - * @schema ServiceMonitorSpecEndpointsTargetPort - */ -export class ServiceMonitorSpecEndpointsTargetPort { - public static fromNumber(value: number): ServiceMonitorSpecEndpointsTargetPort { - return new ServiceMonitorSpecEndpointsTargetPort(value); - } - public static fromString(value: string): ServiceMonitorSpecEndpointsTargetPort { - return new ServiceMonitorSpecEndpointsTargetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * TLS configuration to use when scraping the target. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig - */ -export interface ServiceMonitorSpecEndpointsTlsConfig { - /** - * Certificate authority used when verifying server certificates. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#ca - */ - readonly ca?: ServiceMonitorSpecEndpointsTlsConfigCa; - - /** - * Path to the CA cert in the Prometheus container to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#caFile - */ - readonly caFile?: string; - - /** - * Client certificate to present when doing client-authentication. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#cert - */ - readonly cert?: ServiceMonitorSpecEndpointsTlsConfigCert; - - /** - * Path to the client cert file in the Prometheus container for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#certFile - */ - readonly certFile?: string; - - /** - * Disable target certificate validation. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#insecureSkipVerify - */ - readonly insecureSkipVerify?: boolean; - - /** - * Path to the client key file in the Prometheus container for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#keyFile - */ - readonly keyFile?: string; - - /** - * Secret containing the client key file for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#keySecret - */ - readonly keySecret?: ServiceMonitorSpecEndpointsTlsConfigKeySecret; - - /** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#maxVersion - */ - readonly maxVersion?: ServiceMonitorSpecEndpointsTlsConfigMaxVersion; - - /** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#minVersion - */ - readonly minVersion?: ServiceMonitorSpecEndpointsTlsConfigMinVersion; - - /** - * Used to verify the hostname for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfig#serverName - */ - readonly serverName?: string; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfig(obj: ServiceMonitorSpecEndpointsTlsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ca': toJson_ServiceMonitorSpecEndpointsTlsConfigCa(obj.ca), - 'caFile': obj.caFile, - 'cert': toJson_ServiceMonitorSpecEndpointsTlsConfigCert(obj.cert), - 'certFile': obj.certFile, - 'insecureSkipVerify': obj.insecureSkipVerify, - 'keyFile': obj.keyFile, - 'keySecret': toJson_ServiceMonitorSpecEndpointsTlsConfigKeySecret(obj.keySecret), - 'maxVersion': obj.maxVersion, - 'minVersion': obj.minVersion, - 'serverName': obj.serverName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that - * relates the key and values. - * - * @schema ServiceMonitorSpecSelectorMatchExpressions - */ -export interface ServiceMonitorSpecSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema ServiceMonitorSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. - * Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema ServiceMonitorSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, - * the values array must be non-empty. If the operator is Exists or DoesNotExist, - * the values array must be empty. This array is replaced during a strategic - * merge patch. - * - * @schema ServiceMonitorSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecSelectorMatchExpressions(obj: ServiceMonitorSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Selects a key of a Secret in the namespace that contains the credentials for authentication. - * - * @schema ServiceMonitorSpecEndpointsAuthorizationCredentials - */ -export interface ServiceMonitorSpecEndpointsAuthorizationCredentials { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsAuthorizationCredentials#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsAuthorizationCredentials#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsAuthorizationCredentials#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsAuthorizationCredentials' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsAuthorizationCredentials(obj: ServiceMonitorSpecEndpointsAuthorizationCredentials | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `password` specifies a key of a Secret containing the password for - * authentication. - * - * @schema ServiceMonitorSpecEndpointsBasicAuthPassword - */ -export interface ServiceMonitorSpecEndpointsBasicAuthPassword { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsBasicAuthPassword#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsBasicAuthPassword#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsBasicAuthPassword#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsBasicAuthPassword' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsBasicAuthPassword(obj: ServiceMonitorSpecEndpointsBasicAuthPassword | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `username` specifies a key of a Secret containing the username for - * authentication. - * - * @schema ServiceMonitorSpecEndpointsBasicAuthUsername - */ -export interface ServiceMonitorSpecEndpointsBasicAuthUsername { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsBasicAuthUsername#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsBasicAuthUsername#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsBasicAuthUsername#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsBasicAuthUsername' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsBasicAuthUsername(obj: ServiceMonitorSpecEndpointsBasicAuthUsername | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema ServiceMonitorSpecEndpointsMetricRelabelingsAction - */ -export enum ServiceMonitorSpecEndpointsMetricRelabelingsAction { - /** replace */ - REPLACE = "replace", - /** keep */ - KEEP = "keep", - /** drop */ - DROP = "drop", - /** hashmod */ - HASHMOD = "hashmod", - /** labelmap */ - LABELMAP = "labelmap", - /** labeldrop */ - LABELDROP = "labeldrop", - /** labelkeep */ - LABELKEEP = "labelkeep", - /** lowercase */ - LOWERCASE = "lowercase", - /** uppercase */ - UPPERCASE = "uppercase", - /** keepequal */ - KEEPEQUAL = "keepequal", - /** dropequal */ - DROPEQUAL = "dropequal", -} - -/** - * `clientId` specifies a key of a Secret or ConfigMap containing the - * OAuth2 client's ID. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientId - */ -export interface ServiceMonitorSpecEndpointsOauth2ClientId { - /** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientId#configMap - */ - readonly configMap?: ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientId#secret - */ - readonly secret?: ServiceMonitorSpecEndpointsOauth2ClientIdSecret; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2ClientId' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2ClientId(obj: ServiceMonitorSpecEndpointsOauth2ClientId | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap(obj.configMap), - 'secret': toJson_ServiceMonitorSpecEndpointsOauth2ClientIdSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * `clientSecret` specifies a key of a Secret containing the OAuth2 - * client's secret. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientSecret - */ -export interface ServiceMonitorSpecEndpointsOauth2ClientSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2ClientSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2ClientSecret(obj: ServiceMonitorSpecEndpointsOauth2ClientSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecretKeySelector selects a key of a Secret. - * - * @schema ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader - */ -export interface ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader(obj: ServiceMonitorSpecEndpointsOauth2ProxyConnectHeader | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TLS configuration to use when connecting to the OAuth2 server. - * It requires Prometheus >= v2.43.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfig { - /** - * Certificate authority used when verifying server certificates. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#ca - */ - readonly ca?: ServiceMonitorSpecEndpointsOauth2TlsConfigCa; - - /** - * Client certificate to present when doing client-authentication. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#cert - */ - readonly cert?: ServiceMonitorSpecEndpointsOauth2TlsConfigCert; - - /** - * Disable target certificate validation. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#insecureSkipVerify - */ - readonly insecureSkipVerify?: boolean; - - /** - * Secret containing the client key file for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#keySecret - */ - readonly keySecret?: ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret; - - /** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#maxVersion - */ - readonly maxVersion?: ServiceMonitorSpecEndpointsOauth2TlsConfigMaxVersion; - - /** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#minVersion - */ - readonly minVersion?: ServiceMonitorSpecEndpointsOauth2TlsConfigMinVersion; - - /** - * Used to verify the hostname for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfig#serverName - */ - readonly serverName?: string; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfig(obj: ServiceMonitorSpecEndpointsOauth2TlsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ca': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCa(obj.ca), - 'cert': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCert(obj.cert), - 'insecureSkipVerify': obj.insecureSkipVerify, - 'keySecret': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret(obj.keySecret), - 'maxVersion': obj.maxVersion, - 'minVersion': obj.minVersion, - 'serverName': obj.serverName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Action to perform based on the regex matching. - * - * `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. - * `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. - * - * Default: "Replace" - * - * @schema ServiceMonitorSpecEndpointsRelabelingsAction - */ -export enum ServiceMonitorSpecEndpointsRelabelingsAction { - /** replace */ - REPLACE = "replace", - /** keep */ - KEEP = "keep", - /** drop */ - DROP = "drop", - /** hashmod */ - HASHMOD = "hashmod", - /** labelmap */ - LABELMAP = "labelmap", - /** labeldrop */ - LABELDROP = "labeldrop", - /** labelkeep */ - LABELKEEP = "labelkeep", - /** lowercase */ - LOWERCASE = "lowercase", - /** uppercase */ - UPPERCASE = "uppercase", - /** keepequal */ - KEEPEQUAL = "keepequal", - /** dropequal */ - DROPEQUAL = "dropequal", -} - -/** - * Certificate authority used when verifying server certificates. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCa - */ -export interface ServiceMonitorSpecEndpointsTlsConfigCa { - /** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCa#configMap - */ - readonly configMap?: ServiceMonitorSpecEndpointsTlsConfigCaConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCa#secret - */ - readonly secret?: ServiceMonitorSpecEndpointsTlsConfigCaSecret; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigCa' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigCa(obj: ServiceMonitorSpecEndpointsTlsConfigCa | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_ServiceMonitorSpecEndpointsTlsConfigCaConfigMap(obj.configMap), - 'secret': toJson_ServiceMonitorSpecEndpointsTlsConfigCaSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Client certificate to present when doing client-authentication. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCert - */ -export interface ServiceMonitorSpecEndpointsTlsConfigCert { - /** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCert#configMap - */ - readonly configMap?: ServiceMonitorSpecEndpointsTlsConfigCertConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCert#secret - */ - readonly secret?: ServiceMonitorSpecEndpointsTlsConfigCertSecret; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigCert' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigCert(obj: ServiceMonitorSpecEndpointsTlsConfigCert | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_ServiceMonitorSpecEndpointsTlsConfigCertConfigMap(obj.configMap), - 'secret': toJson_ServiceMonitorSpecEndpointsTlsConfigCertSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing the client key file for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigKeySecret - */ -export interface ServiceMonitorSpecEndpointsTlsConfigKeySecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigKeySecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsTlsConfigKeySecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsTlsConfigKeySecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigKeySecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigKeySecret(obj: ServiceMonitorSpecEndpointsTlsConfigKeySecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigMaxVersion - */ -export enum ServiceMonitorSpecEndpointsTlsConfigMaxVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigMinVersion - */ -export enum ServiceMonitorSpecEndpointsTlsConfigMinVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap - */ -export interface ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap { - /** - * The key to select. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap(obj: ServiceMonitorSpecEndpointsOauth2ClientIdConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdSecret - */ -export interface ServiceMonitorSpecEndpointsOauth2ClientIdSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2ClientIdSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2ClientIdSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2ClientIdSecret(obj: ServiceMonitorSpecEndpointsOauth2ClientIdSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Certificate authority used when verifying server certificates. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCa - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigCa { - /** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCa#configMap - */ - readonly configMap?: ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCa#secret - */ - readonly secret?: ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigCa' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCa(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigCa | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap(obj.configMap), - 'secret': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Client certificate to present when doing client-authentication. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCert - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigCert { - /** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCert#configMap - */ - readonly configMap?: ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap; - - /** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCert#secret - */ - readonly secret?: ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigCert' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCert(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigCert | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap(obj.configMap), - 'secret': toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret(obj.secret), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing the client key file for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigKeySecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Maximum acceptable TLS version. - * - * It requires Prometheus >= v2.41.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigMaxVersion - */ -export enum ServiceMonitorSpecEndpointsOauth2TlsConfigMaxVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * Minimum acceptable TLS version. - * - * It requires Prometheus >= v2.35.0. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigMinVersion - */ -export enum ServiceMonitorSpecEndpointsOauth2TlsConfigMinVersion { - /** TLS10 */ - TLS10 = "TLS10", - /** TLS11 */ - TLS11 = "TLS11", - /** TLS12 */ - TLS12 = "TLS12", - /** TLS13 */ - TLS13 = "TLS13", -} - -/** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaConfigMap - */ -export interface ServiceMonitorSpecEndpointsTlsConfigCaConfigMap { - /** - * The key to select. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigCaConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigCaConfigMap(obj: ServiceMonitorSpecEndpointsTlsConfigCaConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaSecret - */ -export interface ServiceMonitorSpecEndpointsTlsConfigCaSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCaSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigCaSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigCaSecret(obj: ServiceMonitorSpecEndpointsTlsConfigCaSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertConfigMap - */ -export interface ServiceMonitorSpecEndpointsTlsConfigCertConfigMap { - /** - * The key to select. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigCertConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigCertConfigMap(obj: ServiceMonitorSpecEndpointsTlsConfigCertConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertSecret - */ -export interface ServiceMonitorSpecEndpointsTlsConfigCertSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsTlsConfigCertSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsTlsConfigCertSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsTlsConfigCertSecret(obj: ServiceMonitorSpecEndpointsTlsConfigCertSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap { - /** - * The key to select. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigCaConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigCaSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap { - /** - * The key to select. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigCertConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret containing data to use for the targets. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret - */ -export interface ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret#key - */ - readonly key: string; - - /** - * Name of the referent. - * This field is effectively required, but due to backwards compatibility is - * allowed to be empty. Instances of this type with an empty value here are - * almost certainly wrong. - * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret(obj: ServiceMonitorSpecEndpointsOauth2TlsConfigCertSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - diff --git a/.devops/aws/package-lock.json b/.devops/aws/package-lock.json deleted file mode 100644 index 8ed8fa2..0000000 --- a/.devops/aws/package-lock.json +++ /dev/null @@ -1,5307 +0,0 @@ -{ - "name": "coop-cdk", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "coop-cdk", - "version": "0.1.0", - "dependencies": { - "@aws-cdk/aws-sagemaker-alpha": "^2.147.0-alpha.0", - "@aws-cdk/lambda-layer-kubectl-v29": "^2.1.1", - "@aws-sdk/client-secrets-manager": "^3.491.0", - "@ethanresnick/match": "^0.0.4", - "@types/lodash": "^4.14.178", - "aws-cdk-lib": "^2.168.0", - "cdk8s": "^2.0.5", - "cdk8s-cli": "^1.0.58", - "constructs": "^10.4.5", - "js-yaml": "^4.1.0", - "json-to-pretty-yaml": "^1.2.2", - "k8s-resource-parser": "^0.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^2.4.3", - "type-fest": "^4.2.0" - }, - "devDependencies": { - "@aws-sdk/client-elastic-load-balancing-v2": "^3.360.0", - "@aws-sdk/client-resource-groups-tagging-api": "^3.540.0", - "@kubernetes/client-node": "^0.21.0", - "@types/jest": "^26.0.10", - "@types/js-yaml": "^4.0.9", - "@types/node": "^18.17.4", - "aws-cdk": "^2.168.0", - "esbuild": "^0.19.5", - "ts-node": "^10.5.0", - "typescript": "^5.5.2" - } - }, - "node_modules/@aws-cdk/asset-awscli-v1": { - "version": "2.2.212", - "license": "Apache-2.0" - }, - "node_modules/@aws-cdk/asset-kubectl-v20": { - "version": "2.1.3", - "license": "Apache-2.0" - }, - "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { - "version": "2.1.0", - "license": "Apache-2.0" - }, - "node_modules/@aws-cdk/aws-sagemaker-alpha": { - "version": "2.147.0-alpha.0", - "license": "Apache-2.0", - "engines": { - "node": ">= 14.15.0" - }, - "peerDependencies": { - "aws-cdk-lib": "^2.147.0", - "constructs": "^10.0.0" - } - }, - "node_modules/@aws-cdk/cloud-assembly-schema": { - "version": "38.0.1", - "bundleDependencies": [ - "jsonschema", - "semver" - ], - "license": "Apache-2.0", - "dependencies": { - "jsonschema": "^1.4.1", - "semver": "^7.6.3" - } - }, - "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { - "version": "1.4.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { - "version": "7.6.3", - "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@aws-cdk/lambda-layer-kubectl-v29": { - "version": "2.1.1", - "license": "Apache-2.0", - "peerDependencies": { - "aws-cdk-lib": "^2.94.0", - "constructs": "^10.0.5" - } - }, - "node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-crypto/util": { - "version": "5.2.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-elastic-load-balancing-v2": { - "version": "3.632.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.632.0", - "@aws-sdk/client-sts": "3.632.0", - "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.632.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.632.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-resource-groups-tagging-api": { - "version": "3.632.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.632.0", - "@aws-sdk/client-sts": "3.632.0", - "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.632.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.632.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-secrets-manager": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.632.0", - "@aws-sdk/client-sts": "3.632.0", - "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.632.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.632.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2", - "uuid": "^9.0.1" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-sso": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.629.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.632.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.632.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.632.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.632.0" - } - }, - "node_modules/@aws-sdk/client-sts": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.632.0", - "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.632.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.632.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/core": { - "version": "3.629.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^2.3.2", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.622.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.632.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.632.0" - } - }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.632.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.632.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso": "3.632.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" - } - }, - "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.632.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" - } - }, - "node_modules/@aws-sdk/types": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/util-endpoints": { - "version": "3.632.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz", - "integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz", - "integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz", - "integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.19.5", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz", - "integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz", - "integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz", - "integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz", - "integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz", - "integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz", - "integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz", - "integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz", - "integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz", - "integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz", - "integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz", - "integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz", - "integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz", - "integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz", - "integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz", - "integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz", - "integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz", - "integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz", - "integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@ethanresnick/match": { - "version": "0.0.4", - "license": "ISC" - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@jest/types": { - "version": "26.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "dev": true, - "license": "MIT" - }, - "node_modules/@jsii/check-node": { - "version": "1.102.0", - "license": "Apache-2.0", - "dependencies": { - "chalk": "^4.1.2", - "semver": "^7.6.3" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/@jsii/spec": { - "version": "1.102.0", - "license": "Apache-2.0", - "dependencies": { - "ajv": "^8.17.1" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/@kubernetes/client-node": { - "version": "0.21.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/js-yaml": "^4.0.1", - "@types/node": "^20.1.1", - "@types/request": "^2.47.1", - "@types/ws": "^8.5.3", - "byline": "^5.0.0", - "isomorphic-ws": "^5.0.0", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^8.0.0", - "request": "^2.88.0", - "rfc4648": "^1.3.0", - "stream-buffers": "^3.0.2", - "tar": "^7.0.0", - "tslib": "^2.4.1", - "ws": "^8.11.0" - }, - "optionalDependencies": { - "openid-client": "^5.3.0" - } - }, - "node_modules/@kubernetes/client-node/node_modules/@types/node": { - "version": "20.14.11", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@smithy/abort-controller": { - "version": "3.1.1", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/config-resolver": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/core": { - "version": "2.3.2", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/credential-provider-imds": { - "version": "3.2.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/fetch-http-handler": { - "version": "3.2.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/hash-node": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/invalid-dependency": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-content-length": { - "version": "3.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-endpoint": { - "version": "3.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-serde": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-middleware": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-retry": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/service-error-classification": "^3.0.3", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "tslib": "^2.6.2", - "uuid": "^9.0.1" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-serde": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-stack": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/node-config-provider": { - "version": "3.1.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/node-http-handler": { - "version": "3.1.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^3.1.1", - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/property-provider": { - "version": "3.1.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/protocol-http": { - "version": "4.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/querystring-builder": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-uri-escape": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/querystring-parser": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/service-error-classification": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.4", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/signature-v4": { - "version": "4.1.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/smithy-client": { - "version": "3.1.12", - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/types": { - "version": "3.3.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/url-parser": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^3.0.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/util-base64": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-body-length-browser": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/util-body-length-node": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-config-provider": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@smithy/config-resolver": "^3.0.5", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-endpoints": { - "version": "2.0.5", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-middleware": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-retry": { - "version": "3.0.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/service-error-classification": "^3.0.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-stream": { - "version": "3.1.3", - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-uri-escape": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-utf8": { - "version": "3.0.0", - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-waiter": { - "version": "3.1.2", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@smithy/abort-controller": "^3.1.1", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/caseless": { - "version": "0.12.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "26.0.24", - "dev": true, - "license": "MIT", - "dependencies": { - "jest-diff": "^26.0.0", - "pretty-format": "^26.0.0" - } - }, - "node_modules/@types/js-yaml": { - "version": "4.0.9", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/lodash": { - "version": "4.14.184", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "18.17.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/request": { - "version": "2.48.12", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/caseless": "*", - "@types/node": "*", - "@types/tough-cookie": "*", - "form-data": "^2.5.0" - } - }, - "node_modules/@types/tough-cookie": { - "version": "4.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/ws": { - "version": "8.5.11", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/yargs": { - "version": "15.0.14", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@xmldom/xmldom": { - "version": "0.8.10", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/acorn": { - "version": "8.8.0", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ajv": { - "version": "8.17.1", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "dev": true, - "license": "MIT" - }, - "node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/asn1": { - "version": "0.2.6", - "dev": true, - "license": "MIT", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "dev": true, - "license": "MIT" - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "license": "ISC", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/aws-cdk": { - "version": "2.168.0", - "dev": true, - "license": "Apache-2.0", - "bin": { - "cdk": "bin/cdk" - }, - "engines": { - "node": ">= 14.15.0" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/aws-cdk-lib": { - "version": "2.168.0", - "bundleDependencies": [ - "@balena/dockerignore", - "case", - "fs-extra", - "ignore", - "jsonschema", - "minimatch", - "punycode", - "semver", - "table", - "yaml", - "mime-types" - ], - "license": "Apache-2.0", - "dependencies": { - "@aws-cdk/asset-awscli-v1": "^2.2.208", - "@aws-cdk/asset-kubectl-v20": "^2.1.3", - "@aws-cdk/asset-node-proxy-agent-v6": "^2.1.0", - "@aws-cdk/cloud-assembly-schema": "^38.0.1", - "@balena/dockerignore": "^1.0.2", - "case": "1.6.3", - "fs-extra": "^11.2.0", - "ignore": "^5.3.2", - "jsonschema": "^1.4.1", - "mime-types": "^2.1.35", - "minimatch": "^3.1.2", - "punycode": "^2.3.1", - "semver": "^7.6.3", - "table": "^6.8.2", - "yaml": "1.10.2" - }, - "engines": { - "node": ">= 14.15.0" - }, - "peerDependencies": { - "constructs": "^10.0.0" - } - }, - "node_modules/aws-cdk-lib/node_modules/@balena/dockerignore": { - "version": "1.0.2", - "inBundle": true, - "license": "Apache-2.0" - }, - "node_modules/aws-cdk-lib/node_modules/ajv": { - "version": "8.17.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/aws-cdk-lib/node_modules/ansi-regex": { - "version": "5.0.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/aws-cdk-lib/node_modules/ansi-styles": { - "version": "4.3.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/aws-cdk-lib/node_modules/astral-regex": { - "version": "2.0.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/aws-cdk-lib/node_modules/balanced-match": { - "version": "1.0.2", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/brace-expansion": { - "version": "1.1.11", - "inBundle": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/aws-cdk-lib/node_modules/case": { - "version": "1.6.3", - "inBundle": true, - "license": "(MIT OR GPL-3.0-or-later)", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/aws-cdk-lib/node_modules/color-convert": { - "version": "2.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/aws-cdk-lib/node_modules/color-name": { - "version": "1.1.4", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/concat-map": { - "version": "0.0.1", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/emoji-regex": { - "version": "8.0.0", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/fast-deep-equal": { - "version": "3.1.3", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/fast-uri": { - "version": "3.0.3", - "inBundle": true, - "license": "BSD-3-Clause" - }, - "node_modules/aws-cdk-lib/node_modules/fs-extra": { - "version": "11.2.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/aws-cdk-lib/node_modules/graceful-fs": { - "version": "4.2.11", - "inBundle": true, - "license": "ISC" - }, - "node_modules/aws-cdk-lib/node_modules/ignore": { - "version": "5.3.2", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/aws-cdk-lib/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/aws-cdk-lib/node_modules/json-schema-traverse": { - "version": "1.0.0", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/jsonfile": { - "version": "6.1.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/aws-cdk-lib/node_modules/jsonschema": { - "version": "1.4.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/aws-cdk-lib/node_modules/lodash.truncate": { - "version": "4.4.2", - "inBundle": true, - "license": "MIT" - }, - "node_modules/aws-cdk-lib/node_modules/mime-db": { - "version": "1.52.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/aws-cdk-lib/node_modules/mime-types": { - "version": "2.1.35", - "inBundle": true, - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/aws-cdk-lib/node_modules/minimatch": { - "version": "3.1.2", - "inBundle": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/aws-cdk-lib/node_modules/punycode": { - "version": "2.3.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/aws-cdk-lib/node_modules/require-from-string": { - "version": "2.0.2", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/aws-cdk-lib/node_modules/semver": { - "version": "7.6.3", - "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/aws-cdk-lib/node_modules/slice-ansi": { - "version": "4.0.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/aws-cdk-lib/node_modules/string-width": { - "version": "4.2.3", - "inBundle": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/aws-cdk-lib/node_modules/strip-ansi": { - "version": "6.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/aws-cdk-lib/node_modules/table": { - "version": "6.8.2", - "inBundle": true, - "license": "BSD-3-Clause", - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/aws-cdk-lib/node_modules/universalify": { - "version": "2.0.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/aws-cdk-lib/node_modules/yaml": { - "version": "1.10.2", - "inBundle": true, - "license": "ISC", - "engines": { - "node": ">= 6" - } - }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.13.0", - "dev": true, - "license": "MIT" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/bowser": { - "version": "2.11.0", - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/byline": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/case": { - "version": "1.6.3", - "license": "(MIT OR GPL-3.0-or-later)", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/cdk8s": { - "version": "2.68.95", - "bundleDependencies": [ - "fast-json-patch", - "follow-redirects", - "yaml" - ], - "license": "Apache-2.0", - "dependencies": { - "fast-json-patch": "^3.1.1", - "follow-redirects": "^1.15.6", - "yaml": "2.5.0" - }, - "engines": { - "node": ">= 16.20.0" - }, - "peerDependencies": { - "constructs": "^10" - } - }, - "node_modules/cdk8s-cli": { - "version": "1.195.175", - "license": "Apache-2.0", - "dependencies": { - "@types/node": "^16", - "ajv": "^8.17.1", - "cdk8s": "^1.63.102", - "codemaker": "^1.102.0", - "colors": "1.4.0", - "constructs": "^3.4.344", - "fs-extra": "^8", - "jsii-pacmak": "^1.102.0", - "jsii-rosetta": "^5.4.30", - "jsii-srcmak": "^0.1.1214", - "json2jsii": "^0.4.4", - "semver": "^7.6.3", - "sscaff": "^1.2.274", - "table": "^6.8.2", - "yaml": "2.5.0", - "yargs": "^15" - }, - "bin": { - "cdk8s": "bin/cdk8s" - }, - "engines": { - "node": ">= 16.20.0" - } - }, - "node_modules/cdk8s-cli/node_modules/@types/node": { - "version": "16.18.105", - "license": "MIT" - }, - "node_modules/cdk8s-cli/node_modules/cdk8s": { - "version": "1.63.102", - "bundleDependencies": [ - "fast-json-patch", - "follow-redirects", - "yaml" - ], - "license": "Apache-2.0", - "dependencies": { - "fast-json-patch": "^3.1.1", - "follow-redirects": "^1.15.6", - "yaml": "2.5.0" - }, - "engines": { - "node": ">= 16.20.0" - }, - "peerDependencies": { - "constructs": "^3.4.344" - } - }, - "node_modules/cdk8s-cli/node_modules/cdk8s/node_modules/fast-json-patch": { - "version": "3.1.1", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdk8s-cli/node_modules/cdk8s/node_modules/follow-redirects": { - "version": "1.15.6", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/cdk8s-cli/node_modules/cdk8s/node_modules/yaml": { - "version": "2.5.0", - "inBundle": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/cdk8s-cli/node_modules/constructs": { - "version": "3.4.344", - "license": "Apache-2.0", - "engines": { - "node": ">= 16.14.0" - } - }, - "node_modules/cdk8s/node_modules/fast-json-patch": { - "version": "3.1.1", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdk8s/node_modules/follow-redirects": { - "version": "1.15.6", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/cdk8s/node_modules/yaml": { - "version": "2.5.0", - "inBundle": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chownr": { - "version": "3.0.0", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/cliui": { - "version": "6.0.0", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/clone": { - "version": "2.1.2", - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/codemaker": { - "version": "1.102.0", - "license": "Apache-2.0", - "dependencies": { - "camelcase": "^6.3.0", - "decamelize": "^5.0.1", - "fs-extra": "^10.1.0" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/codemaker/node_modules/fs-extra": { - "version": "10.1.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/codemaker/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/codemaker/node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "license": "MIT" - }, - "node_modules/colors": { - "version": "1.4.0", - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "dev": true, - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "2.20.3", - "license": "MIT" - }, - "node_modules/commonmark": { - "version": "0.31.1", - "license": "BSD-2-Clause", - "dependencies": { - "entities": "~3.0.1", - "mdurl": "~1.0.1", - "minimist": "~1.2.5" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "license": "MIT" - }, - "node_modules/constructs": { - "version": "10.4.5", - "license": "Apache-2.0" - }, - "node_modules/core-util-is": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/create-require": { - "version": "1.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/dashdash": { - "version": "1.14.1", - "dev": true, - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/date-format": { - "version": "4.0.14", - "license": "MIT", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/detect-indent": { - "version": "5.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/detect-newline": { - "version": "2.1.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-sequences": { - "version": "26.6.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/discontinuous-range": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/dot-case": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/downlevel-dts": { - "version": "0.11.0", - "license": "MIT", - "dependencies": { - "semver": "^7.3.2", - "shelljs": "^0.8.3", - "typescript": "next" - }, - "bin": { - "downlevel-dts": "index.js" - } - }, - "node_modules/downlevel-dts/node_modules/typescript": { - "version": "6.0.0-dev.20260320", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.0-dev.20260320.tgz", - "integrity": "sha512-q5lk2al1i8WxqGYCvt322ED1G8jpK3MLBM9DacpRuL3gCs9PqWKjIWPoQ8bs745ONHLQEsJnp3Jww8/MSaELaQ==", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "license": "MIT" - }, - "node_modules/entities": { - "version": "3.0.1", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/esbuild": { - "version": "0.19.5", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.19.5", - "@esbuild/android-arm64": "0.19.5", - "@esbuild/android-x64": "0.19.5", - "@esbuild/darwin-arm64": "0.19.5", - "@esbuild/darwin-x64": "0.19.5", - "@esbuild/freebsd-arm64": "0.19.5", - "@esbuild/freebsd-x64": "0.19.5", - "@esbuild/linux-arm": "0.19.5", - "@esbuild/linux-arm64": "0.19.5", - "@esbuild/linux-ia32": "0.19.5", - "@esbuild/linux-loong64": "0.19.5", - "@esbuild/linux-mips64el": "0.19.5", - "@esbuild/linux-ppc64": "0.19.5", - "@esbuild/linux-riscv64": "0.19.5", - "@esbuild/linux-s390x": "0.19.5", - "@esbuild/linux-x64": "0.19.5", - "@esbuild/netbsd-x64": "0.19.5", - "@esbuild/openbsd-x64": "0.19.5", - "@esbuild/sunos-x64": "0.19.5", - "@esbuild/win32-arm64": "0.19.5", - "@esbuild/win32-ia32": "0.19.5", - "@esbuild/win32-x64": "0.19.5" - } - }, - "node_modules/escalade": { - "version": "3.1.2", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/extsprintf": { - "version": "1.3.0", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.0.1", - "license": "MIT" - }, - "node_modules/fast-xml-parser": { - "version": "4.4.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], - "license": "MIT", - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/fastq": { - "version": "1.17.1", - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "license": "ISC" - }, - "node_modules/foreground-child": { - "version": "3.2.1", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/fs-extra": { - "version": "8.1.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.2", - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/getpass": { - "version": "0.1.7", - "dev": true, - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "node_modules/glob": { - "version": "10.4.5", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "license": "ISC" - }, - "node_modules/har-schema": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/har-validator/node_modules/ajv": { - "version": "6.12.6", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/har-validator/node_modules/json-schema-traverse": { - "version": "0.4.1", - "dev": true, - "license": "MIT" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-signature": { - "version": "1.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/interpret": { - "version": "1.4.0", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-core-module": { - "version": "2.15.0", - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, - "node_modules/isomorphic-ws": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "peerDependencies": { - "ws": "*" - } - }, - "node_modules/isstream": { - "version": "0.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jest-diff": { - "version": "26.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^26.6.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-get-type": { - "version": "26.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jose": { - "version": "4.15.9", - "dev": true, - "license": "MIT", - "optional": true, - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsbn": { - "version": "0.1.1", - "dev": true, - "license": "MIT" - }, - "node_modules/jsii": { - "version": "5.4.32", - "license": "Apache-2.0", - "dependencies": { - "@jsii/check-node": "1.102.0", - "@jsii/spec": "^1.102.0", - "case": "^1.6.3", - "chalk": "^4", - "downlevel-dts": "^0.11.0", - "fast-deep-equal": "^3.1.3", - "log4js": "^6.9.1", - "semver": "^7.6.3", - "semver-intersect": "^1.5.0", - "sort-json": "^2.0.1", - "spdx-license-list": "^6.9.0", - "typescript": "~5.4", - "yargs": "^17.7.2" - }, - "bin": { - "jsii": "bin/jsii" - }, - "engines": { - "node": ">= 18.12.0" - } - }, - "node_modules/jsii-pacmak": { - "version": "1.102.0", - "license": "Apache-2.0", - "dependencies": { - "@jsii/check-node": "1.102.0", - "@jsii/spec": "^1.102.0", - "clone": "^2.1.2", - "codemaker": "^1.102.0", - "commonmark": "^0.31.1", - "escape-string-regexp": "^4.0.0", - "fs-extra": "^10.1.0", - "jsii-reflect": "^1.102.0", - "semver": "^7.6.3", - "spdx-license-list": "^6.9.0", - "xmlbuilder": "^15.1.1", - "yargs": "^16.2.0" - }, - "bin": { - "jsii-pacmak": "bin/jsii-pacmak" - }, - "engines": { - "node": ">= 14.17.0" - }, - "peerDependencies": { - "jsii-rosetta": "^1.102.0 || ~5.2.0 || ~5.3.0 || ~5.4.0" - } - }, - "node_modules/jsii-pacmak/node_modules/cliui": { - "version": "7.0.4", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/jsii-pacmak/node_modules/fs-extra": { - "version": "10.1.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-pacmak/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsii-pacmak/node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsii-pacmak/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/jsii-pacmak/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-pacmak/node_modules/yargs": { - "version": "16.2.0", - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-pacmak/node_modules/yargs-parser": { - "version": "20.2.9", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect": { - "version": "1.102.0", - "license": "Apache-2.0", - "dependencies": { - "@jsii/check-node": "1.102.0", - "@jsii/spec": "^1.102.0", - "chalk": "^4", - "fs-extra": "^10.1.0", - "oo-ascii-tree": "^1.102.0", - "yargs": "^16.2.0" - }, - "bin": { - "jsii-tree": "bin/jsii-tree" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-reflect/node_modules/cliui": { - "version": "7.0.4", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/jsii-reflect/node_modules/fs-extra": { - "version": "10.1.0", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-reflect/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsii-reflect/node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsii-reflect/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/jsii-reflect/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect/node_modules/yargs": { - "version": "16.2.0", - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect/node_modules/yargs-parser": { - "version": "20.2.9", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-rosetta": { - "version": "5.4.30", - "license": "Apache-2.0", - "dependencies": { - "@jsii/check-node": "1.102.0", - "@jsii/spec": "^1.102.0", - "@xmldom/xmldom": "^0.8.10", - "chalk": "^4", - "commonmark": "^0.31.1", - "fast-glob": "^3.3.2", - "jsii": "~5.4.0", - "semver": "^7.6.3", - "semver-intersect": "^1.5.0", - "stream-json": "^1.8.0", - "typescript": "~5.4", - "workerpool": "^6.5.1", - "yargs": "^17.7.2" - }, - "bin": { - "jsii-rosetta": "bin/jsii-rosetta" - }, - "engines": { - "node": ">= 18.12.0" - } - }, - "node_modules/jsii-rosetta/node_modules/cliui": { - "version": "8.0.1", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-rosetta/node_modules/typescript": { - "version": "5.4.5", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/jsii-rosetta/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/jsii-rosetta/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-rosetta/node_modules/yargs": { - "version": "17.7.2", - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-rosetta/node_modules/yargs-parser": { - "version": "21.1.1", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-srcmak": { - "version": "0.1.1215", - "license": "Apache-2.0", - "dependencies": { - "fs-extra": "^9.1.0", - "jsii": "~5.4.32", - "jsii-pacmak": "^1.102.0", - "jsii-rosetta": "^5.4.30", - "ncp": "^2.0.0", - "yargs": "^17.7.2" - }, - "bin": { - "jsii-srcmak": "bin/jsii-srcmak" - } - }, - "node_modules/jsii-srcmak/node_modules/cliui": { - "version": "8.0.1", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-srcmak/node_modules/fs-extra": { - "version": "9.1.0", - "license": "MIT", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-srcmak/node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsii-srcmak/node_modules/universalify": { - "version": "2.0.1", - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsii-srcmak/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/jsii-srcmak/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-srcmak/node_modules/yargs": { - "version": "17.7.2", - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-srcmak/node_modules/yargs-parser": { - "version": "21.1.1", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii/node_modules/cliui": { - "version": "8.0.1", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii/node_modules/typescript": { - "version": "5.4.5", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/jsii/node_modules/wrap-ansi": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/jsii/node_modules/y18n": { - "version": "5.0.8", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii/node_modules/yargs": { - "version": "17.7.2", - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii/node_modules/yargs-parser": { - "version": "21.1.1", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/json-schema": { - "version": "0.4.0", - "license": "(AFL-2.1 OR BSD-3-Clause)" - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "dev": true, - "license": "ISC" - }, - "node_modules/json-to-pretty-yaml": { - "version": "1.2.2", - "license": "Apache-2.0", - "dependencies": { - "remedial": "^1.0.7", - "remove-trailing-spaces": "^1.0.6" - }, - "engines": { - "node": ">= 0.2.0" - } - }, - "node_modules/json2jsii": { - "version": "0.4.4", - "license": "Apache-2.0", - "dependencies": { - "camelcase": "^6.3.0", - "json-schema": "^0.4.0", - "snake-case": "^3.0.4" - } - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonpath-plus": { - "version": "8.1.0", - "dev": true, - "license": "MIT", - "bin": { - "jsonpath": "bin/jsonpath-cli.js", - "jsonpath-plus": "bin/jsonpath-cli.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/jsprim": { - "version": "1.4.2", - "dev": true, - "license": "MIT", - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/k8s-resource-parser": { - "version": "0.2.1", - "license": "MIT", - "dependencies": { - "nearley": "^2.20.1" - } - }, - "node_modules/locate-path": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "license": "MIT" - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "license": "MIT" - }, - "node_modules/log4js": { - "version": "6.9.1", - "license": "Apache-2.0", - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "flatted": "^3.2.7", - "rfdc": "^1.3.0", - "streamroller": "^3.1.5" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/lower-case": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "optional": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "dev": true, - "license": "ISC" - }, - "node_modules/mdurl": { - "version": "1.0.1", - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "dev": true, - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "9.0.5", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minizlib": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/moo": { - "version": "0.5.1", - "license": "BSD-3-Clause" - }, - "node_modules/ms": { - "version": "2.1.2", - "license": "MIT" - }, - "node_modules/ncp": { - "version": "2.0.0", - "license": "MIT", - "bin": { - "ncp": "bin/ncp" - } - }, - "node_modules/nearley": { - "version": "2.20.1", - "license": "MIT", - "dependencies": { - "commander": "^2.19.0", - "moo": "^0.5.0", - "railroad-diagrams": "^1.0.0", - "randexp": "0.4.6" - }, - "bin": { - "nearley-railroad": "bin/nearley-railroad.js", - "nearley-test": "bin/nearley-test.js", - "nearley-unparse": "bin/nearley-unparse.js", - "nearleyc": "bin/nearleyc.js" - }, - "funding": { - "type": "individual", - "url": "https://nearley.js.org/#give-to-nearley" - } - }, - "node_modules/no-case": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/object-hash": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/oidc-token-hash": { - "version": "5.0.3", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": "^10.13.0 || >=12.0.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/oo-ascii-tree": { - "version": "1.102.0", - "license": "Apache-2.0", - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/openid-client": { - "version": "5.6.5", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "jose": "^4.15.5", - "lru-cache": "^6.0.0", - "object-hash": "^2.2.0", - "oidc-token-hash": "^5.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/p-limit": { - "version": "2.3.0", - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "dev": true, - "license": "BlueOak-1.0.0" - }, - "node_modules/path-exists": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "license": "MIT" - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "dev": true, - "license": "ISC" - }, - "node_modules/performance-now": { - "version": "2.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pretty-format": { - "version": "26.6.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^26.6.2", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/psl": { - "version": "1.9.0", - "dev": true, - "license": "MIT" - }, - "node_modules/punycode": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.5.3", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/railroad-diagrams": { - "version": "1.0.0", - "license": "CC0-1.0" - }, - "node_modules/randexp": { - "version": "0.4.6", - "license": "MIT", - "dependencies": { - "discontinuous-range": "1.0.0", - "ret": "~0.1.10" - }, - "engines": { - "node": ">=0.12" - } - }, - "node_modules/react-is": { - "version": "17.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/rechoir": { - "version": "0.6.2", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/remedial": { - "version": "1.0.8", - "license": "(MIT OR Apache-2.0)", - "engines": { - "node": "*" - } - }, - "node_modules/remove-trailing-spaces": { - "version": "1.0.8", - "license": "MIT" - }, - "node_modules/request": { - "version": "2.88.2", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/form-data": { - "version": "2.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/request/node_modules/uuid": { - "version": "3.4.0", - "dev": true, - "license": "MIT", - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/resolve": { - "version": "1.22.8", - "license": "MIT", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ret": { - "version": "0.1.15", - "license": "MIT", - "engines": { - "node": ">=0.12" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfc4648": { - "version": "1.5.3", - "dev": true, - "license": "MIT" - }, - "node_modules/rfdc": { - "version": "1.4.1", - "license": "MIT" - }, - "node_modules/rimraf": { - "version": "5.0.9", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": "14 >=14.20 || 16 >=16.20 || >=18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safe-stable-stringify": { - "version": "2.4.3", - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "dev": true, - "license": "MIT" - }, - "node_modules/semver": { - "version": "7.6.3", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver-intersect": { - "version": "1.5.0", - "license": "MIT", - "dependencies": { - "semver": "^6.3.0" - } - }, - "node_modules/semver-intersect/node_modules/semver": { - "version": "6.3.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "license": "ISC" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "license": "BSD-3-Clause", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/shelljs/node_modules/brace-expansion": { - "version": "1.1.11", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/shelljs/node_modules/glob": { - "version": "7.2.3", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/shelljs/node_modules/minimatch": { - "version": "3.1.2", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/snake-case": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/sort-json": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "detect-indent": "^5.0.0", - "detect-newline": "^2.1.0", - "minimist": "^1.2.0" - }, - "bin": { - "sort-json": "app/cmd.js" - } - }, - "node_modules/spdx-license-list": { - "version": "6.9.0", - "license": "CC0-1.0", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/sscaff": { - "version": "1.2.274", - "license": "Apache-2.0", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/sshpk": { - "version": "1.18.0", - "dev": true, - "license": "MIT", - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stream-buffers": { - "version": "3.0.3", - "dev": true, - "license": "Unlicense", - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/stream-chain": { - "version": "2.2.5", - "license": "BSD-3-Clause" - }, - "node_modules/stream-json": { - "version": "1.8.0", - "license": "BSD-3-Clause", - "dependencies": { - "stream-chain": "^2.2.5" - } - }, - "node_modules/streamroller": { - "version": "3.1.5", - "license": "MIT", - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "fs-extra": "^8.1.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strnum": { - "version": "1.0.5", - "license": "MIT" - }, - "node_modules/supports-color": { - "version": "7.2.0", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/table": { - "version": "6.8.2", - "license": "BSD-3-Clause", - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/tar": { - "version": "7.4.0", - "dev": true, - "license": "ISC", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/ts-node": { - "version": "10.9.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "dev": true, - "license": "Unlicense" - }, - "node_modules/type-fest": { - "version": "4.2.0", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "5.5.2", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "dev": true, - "license": "MIT" - }, - "node_modules/universalify": { - "version": "0.1.2", - "license": "MIT", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uuid": { - "version": "9.0.1", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/verror": { - "version": "1.10.0", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-module": { - "version": "2.0.1", - "license": "ISC" - }, - "node_modules/workerpool": { - "version": "6.5.1", - "license": "Apache-2.0" - }, - "node_modules/wrap-ansi": { - "version": "6.2.0", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "license": "ISC" - }, - "node_modules/ws": { - "version": "8.18.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xmlbuilder": { - "version": "15.1.1", - "license": "MIT", - "engines": { - "node": ">=8.0" - } - }, - "node_modules/y18n": { - "version": "4.0.3", - "license": "ISC" - }, - "node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC", - "optional": true - }, - "node_modules/yaml": { - "version": "2.5.0", - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/yargs": { - "version": "15.4.1", - "license": "MIT", - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs-parser": { - "version": "18.1.3", - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs-parser/node_modules/camelcase": { - "version": "5.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs-parser/node_modules/decamelize": { - "version": "1.2.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yargs/node_modules/decamelize": { - "version": "1.2.0", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - } - } -} diff --git a/.devops/aws/package.json b/.devops/aws/package.json deleted file mode 100644 index a13b25d..0000000 --- a/.devops/aws/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "coop-cdk", - "private": true, - "version": "0.1.0", - "type": "module", - "scripts": { - "build": "tsc", - "watch": "tsc -w", - "test": "jest", - "cdk": "cdk", - "generate-k8s-api-defs": "cdk8s import" - }, - "devDependencies": { - "@aws-sdk/client-elastic-load-balancing-v2": "^3.360.0", - "@aws-sdk/client-resource-groups-tagging-api": "^3.540.0", - "@kubernetes/client-node": "^0.21.0", - "@types/jest": "^26.0.10", - "@types/js-yaml": "^4.0.9", - "@types/node": "^18.17.4", - "aws-cdk": "^2.168.0", - "esbuild": "^0.19.5", - "ts-node": "^10.5.0", - "typescript": "^5.5.2" - }, - "dependencies": { - "@aws-cdk/aws-sagemaker-alpha": "^2.147.0-alpha.0", - "@aws-cdk/lambda-layer-kubectl-v29": "^2.1.1", - "@aws-sdk/client-secrets-manager": "^3.491.0", - "@ethanresnick/match": "^0.0.4", - "@types/lodash": "^4.14.178", - "aws-cdk-lib": "^2.168.0", - "cdk8s": "^2.0.5", - "cdk8s-cli": "^1.0.58", - "constructs": "^10.4.5", - "js-yaml": "^4.1.0", - "json-to-pretty-yaml": "^1.2.2", - "k8s-resource-parser": "^0.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^2.4.3", - "type-fest": "^4.2.0" - } -} diff --git a/.devops/aws/src/app.ts b/.devops/aws/src/app.ts deleted file mode 100644 index cac2066..0000000 --- a/.devops/aws/src/app.ts +++ /dev/null @@ -1,244 +0,0 @@ -#!/usr/bin/env node -import { - GetSecretValueCommand, - SecretsManagerClient, -} from '@aws-sdk/client-secrets-manager'; -import * as cdk from 'aws-cdk-lib'; - -import { - AppPipelineStack, - AppPipelineStackProps, -} from './stacks/app_pipeline.js'; -import { GitHubActionsRunnerControllerStack } from './stacks/arc.js'; -import { DevResourcesStack } from './stacks/dev.js'; -import { PipelineNotificationsStack } from './stacks/pipeline_notifications.js'; - -type LinkerdTrustAnchorSigningPair = { - cert: string; - key: string; -}; - -export type EnvPreLoadedSecrets = { - linkerdTrustAnchorSigningPair: LinkerdTrustAnchorSigningPair; - githubActionsRunnerScaleSetSecret: string; -}; - -type PreLoadedSecrets = { - Prod: EnvPreLoadedSecrets; - Staging: EnvPreLoadedSecrets; -}; - -type PreLoadedSecretArns = { - Prod: { [key in keyof EnvPreLoadedSecrets]: string }; - Staging: { [key in keyof EnvPreLoadedSecrets]: string }; -}; - -async function getSecret(client: SecretsManagerClient, arn: string) { - const command = new GetSecretValueCommand({ - SecretId: arn, - }); - const response = await client.send(command); - return response.SecretString!; -} - -async function getSecretJson(client: SecretsManagerClient, arn: string) { - const secret = await getSecret(client, arn); - return JSON.parse(secret); -} - -// Due to an inability to resolve Secret Construct values at runtime when -// applying kubernetes manifests and CDK's trouble with async code, we are -// fetching these values before the CDK app launches as suggested by this issue -// comment: https://github.com/aws/aws-cdk/issues/8273#issuecomment-637974897. -async function fetchSecrets(): Promise { - // Disclaimer: - // 1. This code is bad and I expect it to get trashed in code review but to be - // honest I couldn't figure out how to iterate over the entries in this object - // while achieving the type safety I wanted so I did it this way to unblock - // myself and hopefully someone can help me figure out a better solution. - - // 2. Also here we are always fetching secrets for both envs which isn't ideal - // but is probably okay. There doesn't seem to be an easy way to determine - // the environment outside of the stack code unless we want to parse the - // stack name but that doesn't seem worth it. - const client = new SecretsManagerClient({ region: 'us-east-2' }); - const config: PreLoadedSecretArns = { - Prod: { - linkerdTrustAnchorSigningPair: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/linkerd/trust-anchor-bYSlNw', - githubActionsRunnerScaleSetSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:github/runner-vSayK5', - }, - Staging: { - linkerdTrustAnchorSigningPair: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/linkerd/trust-anchor-aNa5LV', - githubActionsRunnerScaleSetSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:github/runner-vSayK5', - }, - }; - - return { - Prod: { - linkerdTrustAnchorSigningPair: await getSecretJson( - client, - config.Prod.linkerdTrustAnchorSigningPair, - ), - githubActionsRunnerScaleSetSecret: await getSecret( - client, - config.Prod.githubActionsRunnerScaleSetSecret, - ), - }, - Staging: { - linkerdTrustAnchorSigningPair: await getSecretJson( - client, - config.Staging.linkerdTrustAnchorSigningPair, - ), - githubActionsRunnerScaleSetSecret: await getSecret( - client, - config.Staging.githubActionsRunnerScaleSetSecret, - ), - }, - }; -} - -async function main() { - let preLoadedSecrets; - try { - preLoadedSecrets = await fetchSecrets(); - } catch (e) { - console.log(e); - console.log('Failed to fetch secrets. Exiting...'); - process.exit(1); - } - - // For now, we're deploying everything -- the test, staging, and prod copies of - // our main web app service, plus the resources that CDK itself needs [like an - // ECR to hold our docker images, and code pipeline resources] -- to the same - // "environment" (i.e., AWS account and region pair). - const usaEast2Env = { account: '361188080279', region: 'us-east-2' }; - - // The exception is resources for ML experiments, which are in a separate vpc in - // us-east-1. - const usaEast1Env = { account: '361188080279', region: 'us-east-1' }; - - const app = new cdk.App(); - - const arns: AppPipelineStackProps['arns'] = { - githubConnection: - 'arn:aws:codestar-connections:us-east-2:361188080279:connection/dae8a93b-a690-4eeb-8464-74932b3ca612', - dockerHubSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/Docker-tBN9xY', - // If/when renewing, see instructions here to generate: - // https://docs.aws.amazon.com/memorydb/latest/devguide/accessing-memorydb.html#create-cert - vpnServerCertificate: - 'arn:aws:acm:us-east-2:361188080279:certificate/be70898a-9c9f-4b1b-b511-d50b06c0667c', - // NOT CURRENTLY USED. See Datadog stack. - datadogSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:datadog-api-key-Q82keP', - bullmqSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:npm-taskforcesh-token-SBzopm', - Prod: { - datadogRedisSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/api/datadog-redis-5MVpFr', - scyllaSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/Scylla-Ff5SYT', - sessionSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/SessionSecret-pqjJMo', - redisSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/Redis-5wOZWr', - graphqlOpaqueScalarSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/graphqlOpaqueScalar-aZLAKb', - }, - Staging: { - datadogRedisSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/api/datadog-redis-I4eNaY', - scyllaSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/Api/Scylla-8qB2b6', - sessionSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/Api/SessionSecret-Hp8WsT', - redisSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/Api/Redis-S4vd12', - graphqlOpaqueScalarSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/Api/graphqlOpaqueScalar-8Ov3Hy', - }, - Demo: { - datadogRedisSecret: '', - scyllaSecret: '', - sessionSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:Demo/Api/SessionSecret-Vu2BpX', - redisSecret: - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:staging/Api/Redis-S4vd12', - graphqlOpaqueScalarSecret: '', - }, - }; - - const { notificationsTarget } = new PipelineNotificationsStack( - app, - 'PipelineNotificationsStack', - { env: usaEast2Env }, - ); - - new DevResourcesStack(app, 'DevResourcesStack', { env: usaEast1Env }); - - const productionStack = new AppPipelineStack(app, 'PipelineStack', { - env: usaEast2Env, - pipelineNotificationTarget: notificationsTarget, - deploymentEnvName: 'Prod', - sourceBranchName: 'main', - provisionProdLevelsOfCompute: true, - arns, - enableOpsGenie: true, - deleteStatefulResources: false, - enableDatadog: true, - tracingSamplingPercentage: '0', - preLoadedSecrets: preLoadedSecrets.Prod, - // #ops-alerts - alertsSlackChannelId: 'C03JWQ5N4S2', - rolloutNotificationsSlackChannel: 'deployment-pipeline', - }); - - const stagingStack = new AppPipelineStack(app, 'StagingPipelineStack', { - env: usaEast2Env, - pipelineNotificationTarget: notificationsTarget, - deploymentEnvName: 'Staging', - sourceBranchName: 'staging', - arns, - enableOpsGenie: false, - provisionProdLevelsOfCompute: false, - deleteStatefulResources: true, - enableDatadog: true, - tracingSamplingPercentage: '100', - preLoadedSecrets: preLoadedSecrets.Staging, - // #staging-alerts - alertsSlackChannelId: 'C06NGF21Y9W', - rolloutNotificationsSlackChannel: 'staging-alerts', - }); - - new GitHubActionsRunnerControllerStack( - app, - 'StagingGitHubActionsRunnerControllerStack', - { - env: usaEast2Env, - coopEnv: 'Staging', - vpcOutputs: stagingStack.deploymentEnv.vpcOutputs, - k8sOutputs: stagingStack.deploymentEnv.k8sOutputs, - githubAppPrivateKey: - preLoadedSecrets.Staging.githubActionsRunnerScaleSetSecret, - }, - ); - - new GitHubActionsRunnerControllerStack( - app, - 'ProdGitHubActionsRunnerControllerStack', - { - env: usaEast2Env, - coopEnv: 'Prod', - vpcOutputs: productionStack.deploymentEnv.vpcOutputs, - k8sOutputs: productionStack.deploymentEnv.k8sOutputs, - githubAppPrivateKey: - preLoadedSecrets.Prod.githubActionsRunnerScaleSetSecret, - }, - ); -} - -main(); diff --git a/.devops/aws/src/constants.ts b/.devops/aws/src/constants.ts deleted file mode 100644 index c36c43b..0000000 --- a/.devops/aws/src/constants.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { dirname, join as pathJoin } from 'path'; -import { fileURLToPath } from 'url'; -import { KubectlV29Layer } from '@aws-cdk/lambda-layer-kubectl-v29'; -import { KubernetesVersion } from 'aws-cdk-lib/aws-eks'; -import { Construct } from 'constructs'; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -// Useful for getting reference to the main app's Dockerfile, or the source code -// directories outside of the devops folder. -export const repoRootDir = pathJoin(__dirname, '../../..'); - -export const awsSrcDir = __dirname; - -export type PgEnvVar = (typeof pgEnvVars)[number]; -export const pgEnvVars = [ - 'DATABASE_HOST', - 'DATABASE_PORT', - 'DATABASE_NAME', - 'DATABASE_USER', - 'DATABASE_PASSWORD', -] as const; - -export type RedisEnvVar = (typeof redisEnvVars)[number]; -export const redisEnvVars = [ - 'REDIS_USE_CLUSTER', - 'REDIS_HOST', - 'REDIS_PORT', - 'REDIS_USER', - 'REDIS_PASSWORD', -] as const; - -export type ScyllaEnvVars = (typeof scyllaEnvVars)[number]; -export const scyllaEnvVars = [ - 'SCYLLA_USERNAME', - 'SCYLLA_PASSWORD', - 'SCYLLA_HOSTS', - 'SCYLLA_LOCAL_DATACENTER', -] as const; - -export const makeKubectlVersionProps = (scope: Construct) => ({ - version: KubernetesVersion.V1_29, - kubectlLayer: new KubectlV29Layer(scope, 'KubectlLayer'), -}); diff --git a/.devops/aws/src/constructs/CoopApiGateway.ts b/.devops/aws/src/constructs/CoopApiGateway.ts deleted file mode 100644 index 770c967..0000000 --- a/.devops/aws/src/constructs/CoopApiGateway.ts +++ /dev/null @@ -1,375 +0,0 @@ -import { CfnOutput, Size } from 'aws-cdk-lib'; -import { - AccessLogFormat, - ConnectionType, - EndpointType, - HttpIntegration, - LogGroupLogDestination, - Model, - ResponseType, - RestApi, - VpcLink, - type HttpIntegrationProps, - type QuotaSettings, - type Resource, - type ThrottleSettings, -} from 'aws-cdk-lib/aws-apigateway'; -import type { NetworkLoadBalancer } from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -import { LogGroup, RetentionDays } from 'aws-cdk-lib/aws-logs'; -import { Construct } from 'constructs'; -import lodash from 'lodash'; - -const { zip, isEqual } = lodash; - -export type CoopApiGatewayProps = { - apiName: string; - targetNlb: { - readonly loadBalancer: NetworkLoadBalancer; - readonly targetPort: number; - }; - usagePlans: readonly { - readonly id: string; - readonly name: string; - readonly quota?: QuotaSettings; - readonly throttle?: ThrottleSettings; - readonly description?: string; - }[]; - routes: readonly { path: string; method: string; bodySchema?: any }[]; -}; - -/** - * This construct sets up our API Gateway, which targets the private NLB as its - * backend (which in turn serves the api pods in k8s), using a VPC link. It's - * not really a reusable construct [it's tightly bound to the details of our - * server], but it does let us group and tuck away these details from our - * higher-level code. - * - * The logic here is likely to grow over time, as we integrate it with the code - * for our API server, to automatically configure the gateway for new endpoints - * and/or usage plans as those are needed. - */ -export class CoopApiGateway extends Construct { - // map from coop plan ids to the AWS-assigned usage plan id. - public readonly apiUsagePlanIds: { [coopPlanId: string]: string }; - public readonly restApi: RestApi; - - constructor(scope: Construct, name: string, props: CoopApiGatewayProps) { - super(scope, name); - - // Create a VPC link that will allow API Gateway to talk to the private load balancer. - const { loadBalancer: nlb, targetPort: targetNlbPort } = props.targetNlb; - const vpcLink = new VpcLink(this, 'api-service-link', { targets: [nlb] }); - - // Our API Gateway is only going to have one stage, because we have entirely - // different gateways for our different environments. The stage will be - // called latest, and it'll be created implicitly from the settings below. - // The stage will target the deployment that's also implicitly created by - // our CDK config below. - // TODO: it might be cheaper to have one gateway with multiple stages, it's - // more complex -- with stage variables etc for the backends -- so we don't - // bother for now. - const gatewayApi = new RestApi(this, 'api-gateway-api', { - deploy: true, - // the default is edge-optimized which deploys a fully managed (and - // hidden) cloudfront distribution in front of APIG. We manage our own - // distro so we don't need it. - endpointConfiguration: { types: [EndpointType.REGIONAL] }, - deployOptions: { - stageName: 'latest', - accessLogDestination: new LogGroupLogDestination( - new LogGroup(this, 'api-gateway-access-logs', { - retention: RetentionDays.ONE_DAY, - }), - ), - metricsEnabled: true, - tracingEnabled: true, - accessLogFormat: AccessLogFormat.jsonWithStandardFields(), - }, - restApiName: props.apiName, - minCompressionSize: Size.kibibytes(1), // ChatGPT says 1KB is a good threshold here - }); - - gatewayApi.addGatewayResponse('BadRequestGatewayResponse', { - type: ResponseType.BAD_REQUEST_BODY, - statusCode: '400', - templates: { - 'application/json': '{"message": $context.error.validationErrorString}', - }, - }); - - this.restApi = gatewayApi; - - const usagePlans = props.usagePlans.map((plan) => - gatewayApi.addUsagePlan(plan.id, { - apiStages: [{ stage: gatewayApi.deploymentStage, api: gatewayApi }], - ...plan, - }), - ); - - this.apiUsagePlanIds = Object.fromEntries( - zip( - props.usagePlans.map((it) => it.id), - usagePlans.map((it) => it.usagePlanId), - ) as [string, string][], - ); - - const validators = { - all: gatewayApi.addRequestValidator('allValidator', { - requestValidatorName: 'all', - validateRequestBody: true, - validateRequestParameters: true, - }), - bodyOnly: gatewayApi.addRequestValidator('bodyOnlyValidator', { - requestValidatorName: 'body-only', - validateRequestBody: true, - validateRequestParameters: false, - }), - paramsOnly: gatewayApi.addRequestValidator('paramsOnlyValidator', { - requestValidatorName: 'params-only', - validateRequestBody: false, - validateRequestParameters: true, - }), - }; - - const targetBaseUrl = `http://${nlb.loadBalancerDnsName}:${targetNlbPort}`; - - const integrationRequestParameters: { [key: string]: string } = { - 'integration.request.header.original-host': 'method.request.header.host', - }; - - const proxyOptions: HttpIntegrationProps = { - proxy: true, - httpMethod: 'ANY', - options: { - connectionType: ConnectionType.VPC_LINK, - vpcLink, - requestParameters: integrationRequestParameters, - }, - }; - - // Setting this to optional (false) just to make sure it doesn't break - // anything even though every request should have a host header. - const methodRequestParameters: { [key: string]: boolean } = { - 'method.request.header.host': false, - }; - - const apiV1BaseResource = gatewayApi.root - .addResource('api') - .addResource('v1'); - - // We must define a different resource for every path segment, as - // required by API Gateway. So we use resourcesMap to keep track of those; - // we can't simply define them as we go (reducing over path segments) or - // we'll get an error if we try to define the same resource twice. - // `/` at the root refers to the starting point of `/api/v1`. - // NB: some unsafe casing here because of https://github.com/microsoft/TypeScript/issues/17867 - type ResourcesMap = { '/': Resource } & { [K in string]?: ResourcesMap }; - const resourcesMap = { '/': apiV1BaseResource } as ResourcesMap; - - // As with the resources above, multiple endpoints might use the same model, - // so we keep a cache of all the models to prevent trying to define the same - // one twice. NB: if two models have the same name, we'll verify that their - // schema's are deeply equal. (If they're not, there's a legit error.) - const models = new Map(); - - for (const route of props.routes) { - // replace express-style url parameters w/ api gateway ones, - // i.e., ":id" to "{id}", and trim leading and trailing slashes. - const apiGatewayPath = route.path - .replace(/(:([^/]*))(\/?)/g, '{$2}$3') - .replace(/(^\/)|(\/$)/g, '') - .replace(/\/\//g, '/'); - - const pathSegments = apiGatewayPath.split('/'); - const resource = (() => { - let resource = apiV1BaseResource; - let parentMap = resourcesMap; - for (const pathSegment of pathSegments) { - if (parentMap[pathSegment]) { - resource = parentMap[pathSegment]!['/']; - } else { - resource = parentMap['/'].addResource(pathSegment); - parentMap[pathSegment] = { '/': resource } as ResourcesMap; - } - parentMap = parentMap[pathSegment]!; - } - return resource; - })(); - - const apiGatewayMethod = route.method.toUpperCase(); - - // GET requests don't have a body, so we don't need to define a model for - // them. - const model = route.bodySchema - ? (() => { - const modelName = ( - route.bodySchema.title || `${apiGatewayMethod}-${apiGatewayPath}` - ) - .replace(/[^a-zA-Z0-9]/g, '') - .substr(0, 55); - const { model, schema } = models.get(modelName) ?? {}; - if (!model) { - const newModel = new Model(this, modelName, { - modelName, - restApi: gatewayApi, - schema: route.bodySchema, - }); - - models.set(modelName, { - schema: route.bodySchema, - model: newModel, - }); - - return newModel; - } - - if (!isEqual(schema, route.bodySchema)) { - throw new Error( - `Model ${modelName} already defined with different schema`, - ); - } - - return model; - })() - : undefined; - - resource.addMethod( - apiGatewayMethod, - new HttpIntegration(`${targetBaseUrl}/api/v1/${apiGatewayPath}`, { - ...proxyOptions, - httpMethod: apiGatewayMethod, - }), - { - ...(model ? { requestModels: { 'application/json': model } } : {}), - requestValidator: validators.bodyOnly, - apiKeyRequired: true, - requestParameters: methodRequestParameters, - }, - ); - } - - // Proxy all other requests to /api/v1/* to the API server, but require an - // API key, except for calls to /api/v1/graphql, /api/v1/saml/login, and - // /api/v1/saml/login/callback, which do not use API gateway API keys for - // auth/rate limiting. - apiV1BaseResource.addResource('graphql').addMethod( - 'ANY', - new HttpIntegration(`${targetBaseUrl}/api/v1/graphql`, { - ...proxyOptions, - }), - { apiKeyRequired: false, requestParameters: methodRequestParameters }, - ); - - const samlLoginResource = apiV1BaseResource - .addResource('saml') - .addResource('login') - .addResource('{orgId}'); - - samlLoginResource.addMethod( - 'GET', - new HttpIntegration(`${targetBaseUrl}/api/v1/saml/login/{orgId}`, { - ...proxyOptions, - options: { - ...proxyOptions.options, - requestParameters: { - ...integrationRequestParameters, - 'integration.request.path.orgId': 'method.request.path.orgId', - }, - }, - }), - { - apiKeyRequired: false, - requestParameters: { - ...methodRequestParameters, - 'method.request.path.orgId': true, - }, - }, - ); - - samlLoginResource.addResource('callback').addMethod( - 'POST', - new HttpIntegration( - `${targetBaseUrl}/api/v1/saml/login/{orgId}/callback`, - { - ...proxyOptions, - options: { - ...proxyOptions.options, - requestParameters: { - ...integrationRequestParameters, - 'integration.request.path.orgId': 'method.request.path.orgId', - }, - }, - }, - ), - { - apiKeyRequired: false, - requestParameters: { - ...methodRequestParameters, - 'method.request.path.orgId': true, - }, - }, - ); - - apiV1BaseResource.addProxy({ - defaultMethodOptions: { - apiKeyRequired: true, - requestParameters: { - ...methodRequestParameters, - 'method.request.path.proxy': true, - }, - }, - defaultIntegration: new HttpIntegration( - `${targetBaseUrl}/api/v1/{proxy}`, - { - ...proxyOptions, - options: { - ...proxyOptions.options, - requestParameters: { - ...integrationRequestParameters, - 'integration.request.path.proxy': 'method.request.path.proxy', - }, - }, - }, - ), - }); - - // Proxy requests to the root endpoint ("/"), and to an endpoint _not_ under - // "/api/v1" to the API server as well, since it currently serves static - // files. Still, we set up these api gateway routes/methods separately, - // since static file serving isn't subject to the same authentication and - // rate limiting rules, and might move to a different (S3) backend later. - gatewayApi.root.addMethod( - 'ANY', - new HttpIntegration(targetBaseUrl, { - ...proxyOptions, - }), - { - requestParameters: methodRequestParameters, - apiKeyRequired: false, - }, - ); - - gatewayApi.root.addProxy({ - defaultMethodOptions: { - apiKeyRequired: false, - requestParameters: { - ...methodRequestParameters, - 'method.request.path.proxy': true, - }, - }, - defaultIntegration: new HttpIntegration(targetBaseUrl + '/{proxy}', { - ...proxyOptions, - options: { - ...proxyOptions.options, - requestParameters: { - ...integrationRequestParameters, - 'integration.request.path.proxy': 'method.request.path.proxy', - }, - }, - }), - }); - - // output load balancer hostname for debugging. - new CfnOutput(this, 'lb-url', { value: nlb.loadBalancerDnsName }); - } -} diff --git a/.devops/aws/src/constructs/CoopCronJob.ts b/.devops/aws/src/constructs/CoopCronJob.ts deleted file mode 100644 index 69236e0..0000000 --- a/.devops/aws/src/constructs/CoopCronJob.ts +++ /dev/null @@ -1,207 +0,0 @@ -import { ICluster, ServiceAccount } from 'aws-cdk-lib/aws-eks'; -import { Chart, type ChartProps } from 'cdk8s'; -import { Construct, IDependable } from 'constructs'; - -import { - KubeCronJob, - PodSpec, - Quantity, - ResourceRequirements, -} from '../imports/k8s.js'; -import { DeploymentEnvironmentName } from '../stacks/app_pipeline.js'; -import { DeployedNodeType } from '../stacks/k8s_cluster.js'; -import { NonEmptyArray, SimpleCronSpec } from '../types.js'; -import { - computeNodeMemoryOptions, - getInstrumentationPodAnnotations, - getNodeAffinityForInstanceTypes, - getTracingEnvVars, - NodeJsMemoryOptions, - toKubernetesName, -} from '../utils.js'; -import { KubernetesSecretsIntegration } from './KubernetesSecretsIntegration.js'; - -type CronJobProps = ChartProps & { - jobName: string; - stage: DeploymentEnvironmentName; - env: { [k: string]: string }; - uiUrl: string; - - // Name of the namespace in which to create the job. - namespace: string; - - schedule: SimpleCronSpec; - concurrencyPolicy?: 'Allow' | 'Forbid' | 'Replace'; - restartPolicy?: 'OnFailure' | 'Never'; - - // How much memory and CPU each job pod should request/be limited to. - resources: ResourceRequirements & { limits: { memory: Quantity } }; - nodeJsMemoryOptions?: NodeJsMemoryOptions; - - // The url of the docker image. This must be our "master" docker image that - // can start an instance of any of our jobs given a job name. NB: if the image - // is built for a particular CPU architecture, the `allowedNodeTypes` must all - // use that architecture. - imageUrl: string; - allowedNodeTypes: Readonly>; - taskDefinition?: { command: string[]; args: string[] }; - - // If there are any CDK resources that this deployment depends on, like the - // chart to create the namespace (if it might not exist yet) or the - // DockerImageAsset resource (to make sure the image is published before we - // try to start up a job's pod), pass those dependencies here and they'll - // be registered as dependencies when the deployment is added to the cluster. - // (NB: the service account will automatically be registered as a dependency.) - dependencies: IDependable[]; -} & ( - | { - serviceAccount?: undefined; - secretsHandler: KubernetesSecretsIntegration; - } - | { - // Service Account that will be attached to the pod, for the sake of - // authorizing/authenticating itself to other AWS services. - // NB: service account must be in same namespace as the passed in namespace. - serviceAccount: ServiceAccount; - secretsHandler?: undefined; - } - ); - -/** - * Generates a Job resource, that can be deployed into our k8s cluster, - * which'll run a Node cronjob (in 1+ pods) to handle some background tasks. - * The name of the worker to start is passed as a prop. - */ -export class CoopCronJob extends Chart { - private jobName: string; - private dependencies: IDependable[]; - private serviceAccount: ServiceAccount; - private job: KubeCronJob; - - public constructor(scope: Construct, id: string, props: CronJobProps) { - const { - env, - stage, - jobName, - schedule, - concurrencyPolicy = 'Allow', - serviceAccount, - secretsHandler, - restartPolicy = 'OnFailure', - resources, - nodeJsMemoryOptions, - dependencies, - imageUrl, - allowedNodeTypes, - taskDefinition = { - command: ['node'], - args: [ - ...computeNodeMemoryOptions({ - containerMemoryRequest: - resources.requests?.memory ?? resources.limits.memory, - ...nodeJsMemoryOptions, - }), - 'bin/run-worker-or-job.js', - jobName, - ], - }, - namespace, - ...otherChartProps - } = props; - - super(scope, id, { namespace, ...otherChartProps }); - - this.jobName = jobName; - this.serviceAccount = serviceAccount ?? secretsHandler.serviceAccount; - this.dependencies = dependencies; - - const label = { app: toKubernetesName(jobName) }; - - // Only provide CPU defaults if neither a request or limit was specified. - // If user specified at least one, we let them leave the other out (like k8s does). - // For memory, logic's even simpler cuz a limit's always required. - const [cpuRequest, cpuLimit] = - !resources.requests?.cpu && !resources.limits.cpu - ? [Quantity.fromString('250m'), Quantity.fromString('750m')] - : [resources.requests?.cpu, resources.limits.cpu]; - - const basePodSpec: PodSpec = { - affinity: { - nodeAffinity: getNodeAffinityForInstanceTypes(allowedNodeTypes), - }, - containers: [ - { - name: label.app, - image: imageUrl, - imagePullPolicy: 'IfNotPresent', - ...taskDefinition, - resources: { - ...resources, - limits: { - ...resources.limits, - ...(cpuLimit != null ? { cpu: cpuLimit } : {}), - }, - requests: { - ...resources.requests, - ...(cpuRequest != null ? { cpu: cpuRequest } : {}), - }, - }, - env: [ - ...getTracingEnvVars(`api-job-${jobName}`, stage), - ...Object.entries(env).map(([k, v]) => ({ - name: k, - value: v, - })), - { name: 'UI_URL', value: props.uiUrl }, - ], - }, - ], - }; - - const basePodSpecWithCredentials = secretsHandler - ? secretsHandler.getPodSpec(basePodSpec) - : { serviceAccount: serviceAccount.serviceAccountName, ...basePodSpec }; - - this.job = new KubeCronJob(this, 'Job', { - metadata: { - name: toKubernetesName(jobName), - }, - spec: { - schedule: props.schedule, - concurrencyPolicy, - jobTemplate: { - spec: { - template: { - metadata: { - labels: label, - annotations: { - // TODO: enable graceful shutdown of meshed jobs: - // https://linkerd.io/2.14/tasks/graceful-shutdown/#graceful-shutdown-of-job-and-cronjob-resources - // For now I am unmeshing job pods since it's not super important at - // the moment. - 'linkerd.io/inject': 'disabled', - ...getInstrumentationPodAnnotations(label.app), - }, - }, - spec: { - ...basePodSpecWithCredentials, - restartPolicy, - }, - }, - }, - }, - }, - }); - - secretsHandler?.addToChart(this, [this.job]); - } - - public addToCluster(cluster: ICluster) { - const { jobName, serviceAccount, dependencies } = this; - const deploymentManifest = cluster.addCdk8sChart(jobName, this); - deploymentManifest.node.addDependency(serviceAccount); - dependencies.forEach((dep) => { - deploymentManifest.node.addDependency(dep); - }); - } -} diff --git a/.devops/aws/src/constructs/CoopRedisLikeDatabase.ts b/.devops/aws/src/constructs/CoopRedisLikeDatabase.ts deleted file mode 100644 index e29fdc2..0000000 --- a/.devops/aws/src/constructs/CoopRedisLikeDatabase.ts +++ /dev/null @@ -1,278 +0,0 @@ -/** - * AWS offers five different options for provisioning Redis-API-compatible - * databases: - * - * - MemoryDB (cluster mode or not cluster mode) - * - Elasticache serverless - * - Elasticache provisioned (cluster mode or not cluster mode) - * - * MemoryDb is basically Redis with a lot more durability (because writes are - * synchronously replicated to multi-AZ persistent storage) at the expense of - * higher write latency. - * - * Elasticache (provisioned) is basically relabeled standard Redis, with Redis' - * standard durability properties (i.e., durability is achieved via replication - * with the option for periodic snapshotting to disk), plus a bunch of AWS-added - * performance improvements. (See eg - * https://aws.amazon.com/blogs/database/enhanced-io-multiplexing-for-amazon-elasticache-for-redis/) - * - * For both MemoryDb and provisioned Elasticache, every database key is - * associated with a primary (which handles all writes to that key and can also - * serve reads) and n read-only replicas. In non-cluster mode, there's only one - * primary, which handles all keys. In cluster mode, the keys are hashed and - * sharded across primaries, with each primary owning a chunk of the hash range. - * For both MemoryDb and provisioned Elasticache, in cluster and non-cluster - * mode, the online scaling options are robust: I believe it's possible to - * vertically scale the primaries, scale the number of read replicas, and (for - * cluster mode) do online resharding. - * - * The pros of cluster mode are: - * - * - Because of the ability to horizontally shard writes (not just vertically - * scale the primary, which has limits given Redis' single-threaded nature, - * though Elasticache tries to work around them by moving work to other - * threads where possible), the maximum capacity of the database is bigger - * and, when vertical scaling costs become non-linear (which I think they do - * at some point) it can be cheaper too. - * - * - The cluster can be slightly more available: if a primary fails, only writes - * to that shard (rather than to the whole db) fail for the few seconds until - * a replica is promoted to primary. - * - * However, cluster mode also has real cons: - * - * - Multi-key operations only work if the keys are on the same shard. Redis has - * a mechanism for forcing a set of keys to all be put on the same shard, but - * ensuring that the relevant keys are on the same shard while keeping the - * shards balanced complicates application logic (often needlessly). - * - * - A vertically-scaled system, at least within the range where doubling the - * capacity only doubles the price, is usually cheaper. E.g., if you have 5 - * shards, you need to provision each shard for the peak workload of the - * highest-traffic shard. If you have a vertically scaled system, the total - * load at peak is likely to be much less than 5x the peak load of the highest - * traffic shard (because the other shards, by definition, have lower peak - * loads, and because not all shards will be at peak load at the same time). - * - * Finally, the serverless Elasticache is very tempting: its autoscaling looks - * to be truly 0 effort (no setting up policies etc); not having to do capacity - * planning upfront is nice (esp. as Redis capacity planning requires reserving - * up to 50% of storage, depending on workload, for background write - * operations); and it hides all the semi-gnarly cluster topology details - * discussed above. However, as of December 2023, serverless Elasticache is only - * 1 week old, so I'm not sure I trust it yet. It also seems like there's a - * substantial price premium (up to 2-3x) and some of its implementation details - * are not public, which makes its consistency/operational characteristics a bit - * hard to understand. (E.g., can reads can be forcibly sent to the primary and, - * if not, what sort of replication lag is common? how do multi-key transactions - * work?). - * - * This construct may eventually add higher-level options that make it easier to - * get the right Redis-compatible db cluster set up -- e.g., that automate the - * math for determining the instance type from the data storage volumes and the - * number of shards (while leaving a buffer for bg write operations). - * - * For now, though, this just supports creating Elasticache provisioned - * databases with cluster mode disabled and a fixed instance type. - * - * All the docs above are solely because the AWS documentation really buries the - * lead on the fundamental differences between the different offerings; it took - * me quite some time to load all these details, so I wanted to write them down - * for whoever next needs to set up a Redis-like db. - */ - -import { Duration, Token } from 'aws-cdk-lib'; -import { ComparisonOperator, Metric } from 'aws-cdk-lib/aws-cloudwatch'; -import { - IVpc, - Peer, - Port, - SecurityGroup, - SubnetType, -} from 'aws-cdk-lib/aws-ec2'; -import { - CfnReplicationGroup, - CfnSubnetGroup, -} from 'aws-cdk-lib/aws-elasticache'; -import { ITopic } from 'aws-cdk-lib/aws-sns'; -import { Construct } from 'constructs'; -import _ from 'lodash'; - -import { DeploymentEnvironmentName } from '../stacks/app_pipeline.js'; -import { toAwsName } from '../utils.js'; -import { withSnsNotifications } from './SnsAlarmStateChangeNotifications.js'; - -type CoopRedisLikeDatabaseProps = { - stage: DeploymentEnvironmentName; - vpc: IVpc; - monitoringAlertsTopic: ITopic; - cacheNodeType: string; -}; - -type CoopRedisLikeDatabaseConnectionDetails = { - address: string; - port: number; -}; - -export class CoopRedisLikeDatabase extends Construct { - readonly replicationGroupPrimaryConnectionDetails: CoopRedisLikeDatabaseConnectionDetails; - readonly replicationGroupReaderConnectionDetails: CoopRedisLikeDatabaseConnectionDetails; - - constructor( - scope: Construct, - name: string, - props: CoopRedisLikeDatabaseProps, - ) { - super(scope, name); - const { vpc, stage, monitoringAlertsTopic } = props; - - const REDIS_PORT = 6379; - - // This is the group of subnets into which the db instances will be placed. - const subnetGroup = new CfnSubnetGroup(this, 'SubnetGroup', { - cacheSubnetGroupName: toAwsName(`${stage}-${name}-redis-subnet-group`), - description: '', - subnetIds: vpc.selectSubnets({ - subnetType: SubnetType.PRIVATE_ISOLATED, - onePerAz: true, - }).subnetIds, - }); - - // A security group that will control access to the db's instances. - const securityGroup = new SecurityGroup(this, 'SecurityGroup', { - vpc, - }); - - securityGroup.addIngressRule( - Peer.ipv4(vpc.vpcCidrBlock), - Port.tcp(REDIS_PORT), - 'Allow connections from inside the VPC.', - ); - - // The AWS terms for Elasticache components are supeeer confusing. - // - // - "replication group": this is what everyone else calls a cluster (i.e., - // its a group of nodes, with possibly multiple shards and a replica set - // per shard). - // - // - "cluster": not a cluster at all, but rather a single redis instance. - // (this is what's usually called a node). - // - // - "node group": the only term that makes sense; refers to all the nodes - // (primary + n replicas) serving a shard. In single-shard (i.e., "cluster - // mode disabled") clusters, the cluster (i.e., "replication group") only - // has one, automatically-created node group. - - // Set these variables using standard terms, not AWS' nonsensical ones; then - // map them to the AWS names in the replication config below. - // - // NB: these will eventually become props of the construct, but that's a bit - // premature for now, because there's other tweaks we'd have to make to the - // CfnReplicationGroup below to properly support things like construct users - // changing the number of shards (which can require a migration to cluster - // mode, online resharding, etc). - const numShards = 1; - const numReplicasPerShard = 1; - const numNodesPerShard = numReplicasPerShard + 1; // replicas + the primary. - - const replicationGroup = new CfnReplicationGroup(this, 'ReplicationGroup', { - replicationGroupDescription: 'Coop Redis-like Database', - - engine: 'redis', - engineVersion: '7.1', - autoMinorVersionUpgrade: true, - - // We enable automatic failover and specify the required minimum of 2 - // clusters (i.e., nodes), so that there's one replica. We allow them to - // be in separate availability zones. - automaticFailoverEnabled: true, - ...(numShards === 1 - ? { - // clusterMode disabled/enabled must be lowercase as per: - // https://repost.aws/questions/QUj6IF3l-qSsKKkD3yxY_EDw/elasticache-cluster-mode-updates-are-not-supported-while-attempting-to-update-additional-propertie - clusterMode: 'disabled', - numCacheClusters: numNodesPerShard, - } - : { - clusterMode: 'enabled', - replicasPerNodeGroup: numReplicasPerShard, - numNodeGroups: numShards, - }), - multiAzEnabled: true, - cacheNodeType: props.cacheNodeType, - - cacheSubnetGroupName: subnetGroup.cacheSubnetGroupName, - securityGroupIds: [securityGroup.securityGroupId], - - port: REDIS_PORT, - }); - - // Token for the id that the replication group will have once created. - const replicationGroupId = replicationGroup.ref; - - this.replicationGroupPrimaryConnectionDetails = { - address: replicationGroup.attrPrimaryEndPointAddress, - port: Token.asNumber(replicationGroup.attrPrimaryEndPointPort), - }; - - this.replicationGroupReaderConnectionDetails = { - address: replicationGroup.attrReaderEndPointAddress, - port: Token.asNumber(replicationGroup.attrReaderEndPointPort), - }; - - // define alert thresholds - const memoryUsagePercentageWarningThresholds = [75, 85, 90]; - const cpuUsagePercentageWarningThresholds = [50]; - - // create Alarms for each each cluster in the replication group - // TODO: this may need to be adjusted for cluster with multiple shards; idk - // how the nodes get numbered in that case. - for (let i = 1; i <= numNodesPerShard; i++) { - const nodeId = String(i).padStart(3, '0'); - memoryUsagePercentageWarningThresholds.forEach((threshold) => { - withSnsNotifications( - new Metric({ - namespace: 'AWS/ElastiCache', - metricName: 'DatabaseMemoryUsagePercentage', - dimensionsMap: { - CacheClusterId: `${replicationGroupId}-${nodeId}`, - }, - period: Duration.minutes(1), - }).createAlarm( - this, - `HighDatabaseMemoryUsagePercentage-${threshold}-Node-${nodeId}`, - { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }, - ), - monitoringAlertsTopic, - ); - }); - cpuUsagePercentageWarningThresholds.forEach((threshold) => { - withSnsNotifications( - new Metric({ - namespace: 'AWS/ElastiCache', - metricName: 'CPUUtilization', - dimensionsMap: { - CacheClusterId: `${replicationGroupId}-${nodeId}`, - }, - period: Duration.minutes(1), - }).createAlarm( - this, - `HighDatabaseCPUUtilization-${threshold}-Node-${nodeId}`, - { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }, - ), - monitoringAlertsTopic, - ); - }); - } - } -} diff --git a/.devops/aws/src/constructs/CoopWorkerDeployment.ts b/.devops/aws/src/constructs/CoopWorkerDeployment.ts deleted file mode 100644 index 2d6b6f2..0000000 --- a/.devops/aws/src/constructs/CoopWorkerDeployment.ts +++ /dev/null @@ -1,343 +0,0 @@ -import { ICluster, ServiceAccount } from 'aws-cdk-lib/aws-eks'; -import { Chart, type ChartProps } from 'cdk8s'; -import { Construct, IDependable } from 'constructs'; - -import { DatadogMetric } from '../imports/datadoghq.com.js'; -import { - KubeDeployment, - KubeHorizontalPodAutoscalerV2, - PodSpec, - Quantity, - ResourceRequirements, -} from '../imports/k8s.js'; -import { DeploymentEnvironmentName } from '../stacks/app_pipeline.js'; -import { DeployedNodeType } from '../stacks/k8s_cluster.js'; -import { NonEmptyArray } from '../types.js'; -import { - computeNodeMemoryOptions, - getInstrumentationPodAnnotations, - getNodeAffinityForInstanceTypes, - getTracingEnvVars, - NodeJsMemoryOptions, - toKubernetesName, -} from '../utils.js'; -import { KubernetesSecretsIntegration } from './KubernetesSecretsIntegration.js'; - -type WorkerDeploymentProps = ChartProps & { - workerName: string; - stage: DeploymentEnvironmentName; - env: { [k: string]: string }; - uiUrl: string; - - // Name of the namespace in which to create the worker deployment. - namespace: string; - - // How much memory and CPU each worker pod should request/be limited to. - resources: ResourceRequirements & { limits: { memory: Quantity } }; - nodeJsMemoryOptions?: NodeJsMemoryOptions; - - // The url of the docker image. This must be our "master" docker image that - // can start an instance of any of our workers given a worker name. NB: if the - // image is built for a particular CPU architecture, the `allowedNodeTypes` - // must all use that architecture. - imageUrl: string; - allowedNodeTypes: Readonly>; - - // If there are any CDK resources that this deployment depends on, like the - // chart to create the namespace (if it might not exist yet) or the - // DockerImageAsset resource (to make sure the image is published before we - // try to start up a worker node), pass those dependencies here and they'll - // be registered as dependencies when the deployment is added to the cluster. - // (NB: the service account will automatically be registered as a dependency.) - dependencies: IDependable[]; -} & ( - | { - serviceAccount?: undefined; - secretsHandler: KubernetesSecretsIntegration; - } - | { - // Service Account that will be attached to the pod, for the sake of - // authorizing/authenticating itself to other AWS services. - // NB: service account must be in same namespace as the passed in namespace. - serviceAccount: ServiceAccount; - secretsHandler?: undefined; - } - ) & - ( - | { - // Desired number of replicas to run of this worker. - // NB: if this is set to 1, then a code change (which produces a new version - // of the docker image and also a new deployment) will force the currently - // running instance of the worker to stop before the new one starts up, so - // so that there's never two running concurrently. If this is set to anything - // greater than 1, then occassionally there could be more than `targetReplicas` - // number of workers running at once (as the old ones exit while new ones start). - targetReplicas: number; - - autoscalerConfig?: undefined; - } - | { - // If an autoscaler is configured, targetReplicas must be undefined - // and vice-versa - targetReplicas?: undefined; - autoscalerConfig: { - enableDatadog: boolean; - customMetricName: string; - customMetricTargetValue: number; - minReplicas: number; - maxReplicas: number; - customMetricQuery: string; - }; - } - ); - -/** - * Generates a Deployment resource, that can be deployed into our k8s cluster, - * which'll run a Node worker (in 1+ pods) to handle some background tasks. - * The name of the worker to start is passed as a prop. - */ -export class CoopWorkerDeployment extends Chart { - private workerName: string; - private dependencies: IDependable[]; - private serviceAccount: ServiceAccount; - public deployment: KubeDeployment; - - public constructor( - scope: Construct, - id: string, - props: WorkerDeploymentProps, - ) { - const { - env, - stage, - workerName, - serviceAccount, - secretsHandler, - targetReplicas: targetReplicas, - resources, - nodeJsMemoryOptions, - dependencies, - imageUrl, - - allowedNodeTypes, - namespace, - ...otherChartProps - } = props; - super(scope, id, { namespace, ...otherChartProps }); - - this.workerName = workerName; - this.serviceAccount = serviceAccount ?? secretsHandler.serviceAccount; - this.dependencies = dependencies; - - const label = { app: toKubernetesName(workerName) }; - - // Only provide CPU defaults if neither a request or limit was specified. - // If user specified at least one, we let them leave the other out (like k8s does). - // For memory, logic's even simpler cuz a limit's always required. - const [cpuRequest, cpuLimit] = - !resources.requests?.cpu && !resources.limits.cpu - ? [Quantity.fromString('250m'), Quantity.fromString('750m')] - : [resources.requests?.cpu, resources.limits.cpu]; - - const basePodSpec: PodSpec = { - affinity: { - nodeAffinity: getNodeAffinityForInstanceTypes(allowedNodeTypes), - }, - containers: [ - { - name: label.app, - image: imageUrl, - imagePullPolicy: 'IfNotPresent', - command: ['node'], - args: [ - ...computeNodeMemoryOptions({ - containerMemoryRequest: - resources.requests?.memory ?? resources.limits.memory, - ...nodeJsMemoryOptions, - }), - 'bin/run-worker-or-job.js', - workerName, - ], - resources: { - ...resources, - limits: { - ...resources.limits, - ...(cpuLimit != null ? { cpu: cpuLimit } : {}), - }, - requests: { - ...resources.requests, - ...(cpuRequest != null ? { cpu: cpuRequest } : {}), - }, - }, - env: [ - ...getTracingEnvVars(`api-worker-${workerName}`, stage), - ...Object.entries(env).map(([k, v]) => ({ - name: k, - value: v, - })), - { name: 'UI_URL', value: props.uiUrl }, - ], - }, - ], - }; - const deploymentName = toKubernetesName(`${workerName}-deployment`); - - const customMetricAutoScaleName = props.autoscalerConfig - ? `datadogmetric@${props.namespace}:${props.autoscalerConfig?.customMetricName}` - : ''; - - if (props.autoscalerConfig) { - new DatadogMetric( - this, - `${props.autoscalerConfig?.customMetricName}-metric`, - { - metadata: { - name: props.autoscalerConfig?.customMetricName, - namespace: props.namespace, - }, - spec: { - query: props.autoscalerConfig.customMetricQuery, - }, - }, - ); - } - - const autoscaler = props.autoscalerConfig - ? new KubeHorizontalPodAutoscalerV2(this, `${deploymentName}-hpa`, { - metadata: { name: deploymentName }, - spec: { - scaleTargetRef: { - apiVersion: 'apps/v1', - kind: 'Deployment', - name: deploymentName, - }, - // We really only need two replicas, but we're setting the minimum - // to 3 in order to better tolerate situations in which one - // crashes so that we don't ever end up with only one node - // handling all traffic before a replacement can start up. - minReplicas: props.autoscalerConfig.minReplicas, - maxReplicas: props.autoscalerConfig.maxReplicas, - // TODO(Peter): move some of these configs into the autoscalerConfig - // prop so the behavior can be configured with more granularity for - // different workers. - // The current metrics configuration is a duplicate of what we - // apply to api-server pods - metrics: [ - { - type: 'Resource', - resource: { - name: 'cpu', - target: { - type: 'Utilization', - averageUtilization: 40, - }, - }, - }, - ...(props.autoscalerConfig.enableDatadog - ? [ - { - type: 'External', - external: { - metric: { - name: customMetricAutoScaleName, - }, - target: { - type: 'Value', - value: Quantity.fromNumber( - props.autoscalerConfig.customMetricTargetValue, - ), - }, - }, - }, - ] - : []), - { - type: 'Resource', - resource: { - name: 'memory', - target: { - type: 'Utilization', - averageUtilization: 75, - }, - }, - }, - ], - behavior: { - scaleDown: { - // If we remove a server pod and have to add it back later, that's - // potentially disruptive, because latency goes up a lot while the - // location bank cache is being warmed if we have a large location - // bank. So, be a bit more conservative (for now) about scaling - // down. This'd be less of an issue if the location bank cache - // didn't live in memory. - stabilizationWindowSeconds: 120, - policies: [ - { - type: 'Percent', - value: 25, - periodSeconds: 15, - }, - ], - }, - scaleUp: { - stabilizationWindowSeconds: 45, - policies: [ - { - type: 'Percent', - value: 50, - periodSeconds: 15, - }, - { - type: 'Pods', - value: 2, - periodSeconds: 15, - }, - ], - selectPolicy: 'Min', - }, - }, - }, - }) - : undefined; - - this.deployment = new KubeDeployment(this, 'deployment', { - metadata: { - name: deploymentName, - labels: label, - }, - spec: { - replicas: targetReplicas, - ...(targetReplicas === 1 ? { strategy: { type: 'Recreate' } } : {}), - selector: { matchLabels: label }, - template: { - metadata: { - labels: label, - annotations: { - ...getInstrumentationPodAnnotations(label.app), - }, - }, - spec: secretsHandler - ? secretsHandler.getPodSpec(basePodSpec) - : { - serviceAccount: serviceAccount.serviceAccountName, - ...basePodSpec, - }, - }, - }, - }); - - if (props.autoscalerConfig) { - autoscaler?.addDependency(this.deployment); - } - secretsHandler?.addToChart(this, [this.deployment]); - } - - public addToCluster(cluster: ICluster) { - const { workerName, serviceAccount, dependencies } = this; - const deploymentManifest = cluster.addCdk8sChart(workerName, this); - deploymentManifest.node.addDependency(serviceAccount); - dependencies.forEach((dep) => { - deploymentManifest.node.addDependency(dep); - }); - } -} diff --git a/.devops/aws/src/constructs/GithubPipelineNotificationRuleTarget.ts b/.devops/aws/src/constructs/GithubPipelineNotificationRuleTarget.ts deleted file mode 100644 index 92b3901..0000000 --- a/.devops/aws/src/constructs/GithubPipelineNotificationRuleTarget.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { readFileSync } from 'fs'; -import path, { dirname } from 'path'; -import { fileURLToPath } from 'url'; -import { Duration } from 'aws-cdk-lib'; -import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; -import * as lambda from 'aws-cdk-lib/aws-lambda'; -import { Code } from 'aws-cdk-lib/aws-lambda'; -import { Topic } from 'aws-cdk-lib/aws-sns'; -import { LambdaSubscription } from 'aws-cdk-lib/aws-sns-subscriptions'; -import { Construct } from 'constructs'; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -type Props = { - githubToken: string; -}; - -/** - * Returns an SNS topic that Pipelines can publish notification messages to - * (using the CodestarNotification system). These messages will then be picked - * up by a lambda, which uses them to notify github of the pipeline's status. - * - * This SNS topic can be hooked up to any pipeline, because the pipeline's - * message indicates the repo name + commit SHA that the pipeline run applies to. - * - * The only requirement is that this construct be passed a token that the github - * API can use to update that repo's status. - * - * You'd think that we wouldn't need CodePipeline -> CodeStarNotifications -> - * SNS -> Lambda, given that AWS already has EventBridge, which is a service - * that can act as an event bus and trigger lambdas. But, for whatever reason, - * Codepipeline can't publish events into EventBridge, and the - * CodeStarNotifcationRule system can't directly call lambda, so we end up here. - */ -export class GithubPipelineNotificationRuleTarget extends Construct { - public target: Topic; - - constructor(scope: Construct, name: string, props: Props) { - super(scope, name); - const { githubToken } = props; - - // Function that will receive notifications of changes in the pipeline's - // status and send them to github, via the SNS topic defined below. - const fn = new lambda.Function(this, 'PipelineStatusChangeHandler', { - runtime: lambda.Runtime.PYTHON_3_8, - handler: 'index.pipeline_status_changed_handler', - code: Code.fromInline( - readFileSync(path.join(__dirname, './notify-github-handler.py'), { - encoding: 'utf-8', - }), - ), - timeout: Duration.seconds(30), - environment: { GITHUB_ACCESS_TOKEN: githubToken }, - initialPolicy: [ - new PolicyStatement({ - effect: Effect.ALLOW, - actions: ['codepipeline:GetPipelineExecution'], - resources: ['arn:aws:codepipeline:*:*:*'], - }), - new PolicyStatement({ - effect: Effect.ALLOW, - actions: [ - 'logs:CreateLogGroup', - 'logs:CreateLogStream', - 'logs:PutLogEvents', - ], - resources: ['arn:aws:logs:*:*:*'], - }), - ], - }); - - this.target = new Topic(this, 'GithubPipelineNotificationsTopic', {}); - this.target.addSubscription(new LambdaSubscription(fn)); - } -} diff --git a/.devops/aws/src/constructs/KubernetesSecretsIntegration.ts b/.devops/aws/src/constructs/KubernetesSecretsIntegration.ts deleted file mode 100644 index 67ae051..0000000 --- a/.devops/aws/src/constructs/KubernetesSecretsIntegration.ts +++ /dev/null @@ -1,327 +0,0 @@ -import { ICluster, ServiceAccount } from 'aws-cdk-lib/aws-eks'; -import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; -import { Chart, ApiObject as KubeApiObject } from 'cdk8s'; -import { Construct } from 'constructs'; -import jsonToYaml from 'json-to-pretty-yaml'; -import _ from 'lodash'; - -import type { RolloutSpecTemplateSpec } from '../imports/argoproj.io.js'; -import { PodSpec } from '../imports/k8s.js'; -import { toKubernetesName } from '../utils.js'; - -const { uniq } = _; - -export type SecretsMap = { - readonly [K in T]: readonly [arn: string, jmesPath?: string]; -}; - -// Users must provide the secrets to expose. They must also provide a service -// account with permission to read those secrets (in the same namespace as the -// eventual pods that'll use these secrets) _or_ the construct will auto-generate -// one, in which case it needs a cluster + namespace to know where to attach it. -export type KubernetesSecretsIntegrationProps = { - secrets: SecretsMap; -} & ( - | { - serviceAccount: ServiceAccount; - cluster?: undefined; - namespace?: undefined; - } - | { serviceAccount?: undefined; cluster: ICluster; namespace: string } -); - -/** - * Integrating Secrets Manager secrets with Kubernetes has a lot of moving - * parts. This construct aims to hide all of them, and expose a few simple - * methods to wire everything together. - * - * Behind the scenes, what needs to happen is: - * - * 1. There needs to be a service account with permission to read the secrets. - * (This needs to be hooked into the cluster with the standard OIDC-powered - * IAM integration in order for IAM to grant it permission to read the secrets.) - * - * 2. That service account must be attached to the pod that needs the secrets. - * - * 3. A SecretProviderClass object needs to be created, which will read the - * secrets from Secrets Manager and put them into a kubernetes secret, using - * a mapping (from secretArn and key path, when the secret holds an object, - * to the desired env var name). Iirc, the secrets need to end up in a native - * k8s secret b/c that's the simplest way to inject them into the pod as env - * vars, rather than the pod having to read them from a mounted volume. - * - * 4. Even though the SecretProviderClass is generating a k8s native secret, - * that secret has a lifecycle (e.g., its contents are only generated, and - * then periodically updated to account for changes in Secrets Manager, while - * there's actually a pods trying to use it). The SecretProviderClass manages - * this lifecycle, but doing that requires that a volume powered by the - * SecretProviderClass be defined and mounted into the pods, even though - * we're actually using the native secret to populate the pod's env vars. - * - * 5. Finally, in addition to the volume/volumeMount above, the pod's definition - * must actually include setting the env vars from the k8s secret, in the - * normal way. - */ -export class KubernetesSecretsIntegration extends Construct { - private secrets: KubernetesSecretsIntegrationProps['secrets']; - public serviceAccount: ServiceAccount; - - private secretProviderClassName: string; - private generatedSecretName: string; - private volumeName: string; - - constructor( - scope: Construct, - name: string, - props: KubernetesSecretsIntegrationProps, - ) { - super(scope, name); - const { serviceAccount, namespace, cluster, secrets } = props; - - const baseName = name.toLowerCase().endsWith('secrets') - ? name.slice(0, -7) - : name; - - this.volumeName = toKubernetesName(`${baseName}-secrets-volume`); - this.generatedSecretName = toKubernetesName(`${baseName}-secret`); - this.secretProviderClassName = toKubernetesName( - `${baseName}-secrets-provider`, - ); - - this.secrets = secrets; - this.serviceAccount = - serviceAccount ?? - cluster.addServiceAccount(`${baseName}ServiceAccount`, { - namespace: namespace, - name: toKubernetesName(`${baseName}-service-account`), - }); - - this.serviceAccount.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: [ - 'secretsmanager:GetSecretValue', - 'secretsmanager:DescribeSecret', - ], - resources: uniq(Object.values(props.secrets).map((it) => it[0])), - }), - ); - } - - /** - * Takes a pod spec and returns a new one that passes the secrets to all - * containers in the pod. - */ - public getPodSpec( - podSpec: T, - ): T { - const existingServiceAccountName = - podSpec.serviceAccount ?? podSpec.serviceAccountName; - - if ( - existingServiceAccountName && - existingServiceAccountName !== this.serviceAccount.serviceAccountName - ) { - throw new Error( - `Cannot add secrets to a pod that's already using a different service account.`, - ); - } - - // TODO: more validation re, e.g., - // volume mount names and paths, duplicate env var names. - return { - ...podSpec, - serviceAccountName: this.serviceAccount.serviceAccountName, - volumes: [ - ...(podSpec.volumes ?? []), - { - name: this.volumeName, - csi: { - driver: 'secrets-store.csi.k8s.io', - readOnly: true, - volumeAttributes: { - secretProviderClass: this.secretProviderClassName, - }, - }, - }, - ], - containers: podSpec.containers.map((container) => ({ - ...container, - volumeMounts: [ - ...(container.volumeMounts ?? []), - { - name: this.volumeName, - mountPath: '/mnt/secrets-store', - readOnly: true, - }, - ], - env: [ - ...(container.env ?? []), - ...Object.keys(this.secrets).map((name) => ({ - name, - valueFrom: { - secretKeyRef: { name: this.generatedSecretName, key: name }, - }, - })), - ], - })), - }; - } - /** - * Takes values for the coop app helm chart and injects secrets into it. - * @param values this is the values object that will be passed to the chart - * @returns the values object with the secrets and necessary config injected - * into it. - */ - public injectSecretsIntoCoopAppChart(values: any) { - const secretsByArn = {} as { - [arn: string]: { envVar: string; path?: string }[]; - }; - for (const [envVar, [secretArn, path]] of Object.entries(this.secrets)) { - secretsByArn[secretArn] = secretsByArn[secretArn] ?? []; - secretsByArn[secretArn].push({ envVar: envVar, path }); - } - return { - ...values, - secretProviderClassName: this.secretProviderClassName, - secrets: Object.entries(secretsByArn).map(([secretArn, entries]) => ({ - objectName: secretArn, - ...(entries[0].path - ? { - jmesPath: entries.map(({ envVar: objectAlias, path }) => ({ - path, - objectAlias, - })), - } - : { objectAlias: entries[0].envVar }), - })), - serviceAccount: { - create: false, - name: this.serviceAccount.serviceAccountName, - }, - env: [ - ...(values.env || []), - ...Object.keys(this.secrets).map((name) => ({ - name, - valueFrom: { - secretKeyRef: { name: this.generatedSecretName, key: name }, - }, - })), - ], - volumes: [ - ...(values.volumes || []), - { - name: this.volumeName, - csi: { - driver: 'secrets-store.csi.k8s.io', - readOnly: true, - volumeAttributes: { - secretProviderClass: this.secretProviderClassName, - }, - }, - }, - ], - volumeMounts: [ - ...(values.volumeMounts || []), - { - name: this.volumeName, - mountPath: '/mnt/secrets-store', - readOnly: true, - }, - ], - }; - } - - /** - * Add the kubernetes resources that provide the secrets into an existing - * chart, and set up any resources in that chart that need the secrets (like - * pods/deployments) to be dependent on the secrets-providing resources. - */ - public addToChart(scope: Chart, dependents: KubeApiObject[]) { - if (this.serviceAccount.serviceAccountNamespace !== scope.namespace) { - throw new Error( - 'The service account and the chart that defines all the secret-related ' + - 'k8s resources (including the pods using the secrets) must be in the ' + - 'same namespace.', - ); - } - - const secretEnvVarNames = Object.keys(this.secrets); - - // The secrets are passed in as an ojbect where the keys are the desired - // env vars, and the values explain how to set each env var from a secret. - // However, the secret provider class instead requires that we pass it the - // secrets grouped by secret arn, so we have to do some convoluted - // reorganizing here. - const secretsByArn = {} as { - [arn: string]: { envVar: string; path?: string }[]; - }; - for (const [envVar, [secretArn, path]] of Object.entries(this.secrets)) { - secretsByArn[secretArn] = secretsByArn[secretArn] ?? []; - secretsByArn[secretArn].push({ envVar: envVar, path }); - } - - // Create the secrets provider within the given chart. - // No need to specify namespace explicitly, as it's inherited from the chart. - const secretsProvider = new KubeApiObject( - scope, - this.secretProviderClassName, - { - apiVersion: 'secrets-store.csi.x-k8s.io/v1alpha1', - kind: 'SecretProviderClass', - metadata: { name: this.secretProviderClassName }, - spec: { - provider: 'aws', - secretObjects: [ - // With this setup, we're generating one kubernetes secret (called - // api-secrets) that holds an object as its value. That object is - // populated based on the { objectName, key } records listed under - // the `data` key below. In those { objectName, key } objects, - // `objectName` refers to the name that we gave to some secret data - // when we fetched it from AWS Secret Manager, while `key` refers to - // the name of the key that we want to store the value under in the - // generated k8s secret. So, what we're doing is fetching each - // secret value out of AWS with a name that corresponds to the name - // of the env var we ultimately want to populate from it. Then, - // we're putting the secret values into our k8s secret object with - // those same env var names as the keys. Finally, in the deployment, - // we'll read in those same keys to the env. - { - data: secretEnvVarNames.map((k) => ({ objectName: k, key: k })), - secretName: this.generatedSecretName, - type: 'Opaque', - }, - ], - parameters: { - // We assume that, if one env var generated by this ARN uses a jmes - // path, then they all will, and vice versa, because our secrets are - // either plain text or an object. Similarly, we assume that, if - // there isn't a path, then there can only be one generated secret, - // which seems be a requirement imposed by the SecretProviderClass, - // but isn't too onerous (because, in this case, there'll only be - // one value in the secret). - objects: jsonToYaml.stringify( - Object.entries(secretsByArn).map(([secretArn, entries]) => ({ - objectName: secretArn, - ...(entries[0].path - ? { - jmesPath: entries.map( - ({ envVar: objectAlias, path }) => ({ - path, - objectAlias, - }), - ), - } - : { objectAlias: entries[0].envVar }), - })), - ), - }, - }, - }, - ); - - dependents.forEach((dependent) => { - dependent.addDependency(secretsProvider); - }); - } -} diff --git a/.devops/aws/src/constructs/MigrationRunner.ts b/.devops/aws/src/constructs/MigrationRunner.ts deleted file mode 100644 index d292192..0000000 --- a/.devops/aws/src/constructs/MigrationRunner.ts +++ /dev/null @@ -1,287 +0,0 @@ -import path from 'path'; -import { fileURLToPath } from 'url'; -import * as k8s from '@kubernetes/client-node'; -import * as cdk from 'aws-cdk-lib'; -import type { ISecurityGroup, IVpc } from 'aws-cdk-lib/aws-ec2'; -import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets'; -import { KubernetesObjectValue, type ICluster } from 'aws-cdk-lib/aws-eks'; -import * as lambda from 'aws-cdk-lib/aws-lambda'; -import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs'; -import { Provider } from 'aws-cdk-lib/custom-resources'; -import { App as cdk8sApp, Chart, type ChartProps } from 'cdk8s'; -import { Construct } from 'constructs'; -import stringify from 'safe-stable-stringify'; - -// would love to move this to a shared lib -import { safeGetEnvVar } from '../../../../server/iocContainer/utils.js'; -import { - KubeRole, - KubeRoleBinding, - KubeSecret, - type PodSpec, -} from '../imports/k8s.js'; -import type { DeploymentEnvironmentName } from '../stacks/app_pipeline.js'; -import { getTracingEnvVars } from '../utils.js'; -import { - KubernetesSecretsIntegration, - type SecretsMap, -} from './KubernetesSecretsIntegration.js'; - -type RunMigrationsProps = { - cluster: ICluster; - migrationsImage: DockerImageAsset; - vpc: IVpc; - secrets: SecretsMap; - deploymentEnvironment: DeploymentEnvironmentName; - env: Record; - dbArgs: ('api-server-pg' | 'scylla')[]; -}; - -export class MigrationRunner extends Construct { - constructor(scope: Construct, id: string, props: RunMigrationsProps) { - super(scope, id); - - const { secrets, cluster, vpc, migrationsImage: image } = props; - - const namespace = 'coop'; - - // Service account for the lambda. It only needs access to get and create - // jobs. - const lambdaServiceAccount = cluster.addServiceAccount('migrator-lambda', { - name: `${id}-migrator-lambda`, - namespace, - }); - - // Separate service account for the job pod which has access to secrets. - const migratorJobServiceAccount = cluster.addServiceAccount( - 'migrator-job', - { - name: `${id}-migrator-job`, - namespace, - }, - ); - - const secretsHandler = new KubernetesSecretsIntegration( - this, - `${id}-secrets`, - { - serviceAccount: migratorJobServiceAccount, - secrets, - }, - ); - - const migrationsChart = new MigrationsChart( - new cdk8sApp(), - 'MigrationsChart', - { - image, - serviceAccountName: lambdaServiceAccount.serviceAccountName, - namespace, - secretsHandler, - resourcePrefix: id, - }, - ); - - const migrationsManifest = cluster.addCdk8sChart( - 'migrations', - migrationsChart, - ); - - migrationsManifest.node.addDependency(lambdaServiceAccount); - const secretToken = new KubernetesObjectValue(this, 'secret token', { - cluster, - objectName: migrationsChart.secretName, - objectNamespace: namespace, - objectType: 'secret', - jsonPath: '.data.token', - }); - - const secretCert = new KubernetesObjectValue(this, 'secret cert', { - cluster, - objectName: migrationsChart.secretName, - objectNamespace: namespace, - objectType: 'secret', - jsonPath: '.data.ca\\.crt', - }); - - secretToken.node.addDependency(migrationsManifest); - secretCert.node.addDependency(migrationsManifest); - const onEventHandler = new NodejsFunction(this, 'DbMigrationsOnEvent', { - runtime: lambda.Runtime.NODEJS_24_X, - handler: 'handler', - entry: path.join( - path.dirname(fileURLToPath(import.meta.url)), - '../migrator/lambdaOnEvent.ts', - ), - vpc: vpc, - securityGroups: [cluster.kubectlSecurityGroup!], - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - }); - const isCompleteHandler = new NodejsFunction( - this, - 'DbMigrationsIsComplete', - { - runtime: lambda.Runtime.NODEJS_24_X, - handler: 'handler', - entry: path.join( - path.dirname(fileURLToPath(import.meta.url)), - '../migrator/lambdaIsComplete.ts', - ), - vpc: vpc, - securityGroups: [cluster.kubectlSecurityGroup as ISecurityGroup], - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - }, - ); - - // We create the job spec here since it is much easier to do it in a cdk - // context with access to the secrets integration. We will pass the object - // to the onEvent lambda which will create the job. We don't want to create - // it here because we want to avoid terminating the job on stack rollback. - const job: k8s.V1Job = { - metadata: { - // Since the job name is static, job creation will fail if a job from a - // previous run is still running. This is intended to avoid concurrency. - // However, this does mean that the stack will FAIL TO ROLLBACK when a job - // is already running. This is okay, you will just have to wait for the job - // to finish or manually terminate it before continuing rollback. - name: id, - namespace, - }, - spec: { - // Not sure what the best ttl is here. We want the job to be cleaned up - // before the next run starts. We can lower it if it causes issues. Logs - // and events should be available in Datadog after deletion. - ttlSecondsAfterFinished: 120, - // Until we're better at ensuring migrations are idempotent — which is - // hard in some cases — we shouldn't retry at all, imo. Retries could - // lead to data issues/inconsistencies. - backoffLimit: 0, - template: { - metadata: { - annotations: { - 'linkerd.io/inject': 'disabled', - 'instrumentation.opentelemetry.io/inject-nodejs': - 'opentelemetry/default', - }, - }, - spec: secretsHandler.getPodSpec({ - restartPolicy: 'Never', - containers: [ - { - name: 'migrator', - image: image.imageUri, - command: [ - 'node', - 'index.js', - 'apply', - ...props.dbArgs.flatMap((db) => ['--db', db]), - '--env', - `${props.deploymentEnvironment.toLowerCase()}`, - ], - env: [ - ...getTracingEnvVars(id, props.deploymentEnvironment), - ...Object.entries(props.env).map(([name, value]) => ({ - name, - value, - })), - ], - }, - ], - } satisfies PodSpec), - }, - }, - }; - - const customResource = new cdk.CustomResource(this, 'DbMigrations', { - serviceToken: new Provider(this, 'DbMigrationsProvider', { - onEventHandler, - isCompleteHandler, - totalTimeout: cdk.Duration.hours(1), - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - }).serviceToken, - - properties: { - // We manually serialize here because for some reason CDK/Cloudformation - // was converting booleans to strings which was causing the lambda to - // fail. - jobBody: stringify(job), - cert: secretCert.value, - token: secretToken.value, - clusterServer: cluster.clusterEndpoint, - }, - }); - - customResource.node.addDependency(migrationsManifest); - } -} - -type MigrationsChartProps = ChartProps & { - image: DockerImageAsset; - serviceAccountName: string; - secretsHandler: KubernetesSecretsIntegration; - resourcePrefix: string; -}; - -class MigrationsChart extends Chart { - public readonly secretName: string; - constructor(scope: Construct, id: string, props: MigrationsChartProps) { - super(scope, id, { namespace: props.namespace }); - const { resourcePrefix } = props; - const jobReaderRoleName = `${resourcePrefix}-job-reader`; - - new KubeRole(this, 'JobReaderRole', { - metadata: { - namespace: props.namespace, - name: jobReaderRoleName, - }, - rules: [ - { - apiGroups: ['batch'], - resources: ['jobs', 'jobs/status'], - verbs: ['get', 'list', 'watch', 'create'], - }, - ], - }); - - // Role Binding - new KubeRoleBinding(this, 'JobReaderRoleBinding', { - metadata: { - name: `${resourcePrefix}-read-jobs`, - namespace: props.namespace, - }, - subjects: [ - { - kind: 'ServiceAccount', - name: props.serviceAccountName, - namespace: props.namespace, - }, - ], - roleRef: { - kind: 'Role', - name: jobReaderRoleName, - apiGroup: 'rbac.authorization.k8s.io', - }, - }); - - const secretName = `${props.serviceAccountName}-token`; - - // Manually create the service account secret since Kubernetes no longer - // automatically creates it. This is necessary to get a token for the lambda - // to auth with the K8s API server. - new KubeSecret(this, `${id}-migrations`, { - metadata: { - name: secretName, - namespace: props.namespace, - annotations: { - 'kubernetes.io/service-account.name': props.serviceAccountName, - }, - }, - type: 'kubernetes.io/service-account-token', - }); - - this.secretName = secretName; - - // no dependencies since we deploy the job in the onEvent lambda - props.secretsHandler.addToChart(this, []); - } -} diff --git a/.devops/aws/src/constructs/MultiModelSageMakerEndpoint.ts b/.devops/aws/src/constructs/MultiModelSageMakerEndpoint.ts deleted file mode 100644 index 91d0993..0000000 --- a/.devops/aws/src/constructs/MultiModelSageMakerEndpoint.ts +++ /dev/null @@ -1,176 +0,0 @@ -import assert from 'assert'; -import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha'; -import { Duration, Stack } from 'aws-cdk-lib'; -import * as appscaling from 'aws-cdk-lib/aws-applicationautoscaling'; -import { IVpc } from 'aws-cdk-lib/aws-ec2'; -import { Repository } from 'aws-cdk-lib/aws-ecr'; -import { CfnModel } from 'aws-cdk-lib/aws-sagemaker'; -import { Construct } from 'constructs'; - -type MultiModelSageMakerEndpointProps = { - vpc: IVpc; - instanceType: sagemaker_alpha.InstanceType; - autoscaling?: { - minInstanceCount: number; - maxInstanceCount: number; - autoscalingModelLatencyMetricTrackingTarget: Duration; - }; - initialInstanceCount: number; - modelData?: sagemaker_alpha.ModelData; - image?: sagemaker_alpha.ContainerImage; -}; - -export class MultiModelSageMakerEndpoint extends Construct { - readonly endpoint: sagemaker_alpha.IEndpoint; - - constructor( - scope: Construct, - name: string, - props: MultiModelSageMakerEndpointProps, - ) { - super(scope, name); - - const { endpoint } = - unsafe_addLegacyMultiModelSageMakerEndpointResourcesInScope(this, props); - - this.endpoint = endpoint; - } -} - -function getDefaultTritonContainerImage(scope: Construct) { - // Image URL for Triton Inference server, which allows us to host models with - // GPU acceleration for a number of popular ML frameworks. See here for more - // info: - // https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html#multi-model-support - // NB: This image is currently expected to exist in a private repository in - // the deploying AWS account. See here for all other image URLs: - // https://github.com/aws/deep-learning-containers/blob/master/available_images.md - const { account, region } = Stack.of(scope); - - assert( - region === 'us-east-2', - 'SageMaker Multi-Model endpoint image URL can only be generated for us-east-2.', - ); - const TRITON_SERVER_VERSION = '23.07-py3'; - - return sagemaker_alpha.ContainerImage.fromEcrRepository( - Repository.fromRepositoryArn( - scope, - 'TritonServerRepo', - `arn:aws:ecr:${region}:${account}:repository/sagemaker-tritonserver`, - ), - TRITON_SERVER_VERSION, - ); -} - -/** - * @deprecated This function is used to DRY up the code for the MultiModelSageMakerEndpoint - * construct above and the code for a legacy endpoint that was created before the - * construct existed. It should not be used directly for new endpoints, as it adds - * resources directly to the passed in scope, with logical ids that could in theory conflict - * with existing ids in that scope. - * - * Because of the risk for conflicts, no new resources should be added in this function. - * Instead, new resources should only be added directly in the construct above. - */ -export function unsafe_addLegacyMultiModelSageMakerEndpointResourcesInScope( - scope: Construct, - props: MultiModelSageMakerEndpointProps, -) { - const { - vpc, - instanceType, - image = getDefaultTritonContainerImage(scope), - modelData, - autoscaling, - } = props; - - // Create model configuration. This is configured as part of a single - // multi-model endpoint running NVIDIA Triton inference server, and is - // intended to be the single container that hosts all the models for this - // endpoint. - const model = new sagemaker_alpha.Model(scope, 'PrimarySageMakerModel', { - vpc, - containers: [ - { - image, - modelData, - environment: { - // https://github.com/triton-inference-server/server/blob/6cab4bbe14d79d5d4f1cc94d5191dfcc06fb0b5e/docker/sagemaker/serve#L100-L111 - SAGEMAKER_TRITON_LOG_VERBOSE: 'false', - SAGEMAKER_TRITON_LOG_INFO: 'false', - SAGEMAKER_TRITON_LOG_WARNING: 'true', - }, - }, - ], - }); - - // Inject multi-model config properties that are not supported by the L2 constructs. - const cfnModel = model.node.children.filter( - (c) => c instanceof CfnModel, - )[0] as CfnModel; - cfnModel.addPropertyOverride('PrimaryContainer.Mode', 'MultiModel'); - cfnModel.addPropertyOverride( - 'PrimaryContainer.MultiModelConfig.ModelCacheSetting', - 'Enabled', - ); - - // Create endpoint configuration, pairing model with compute resources. - const PRODUCTION_VARIANT_NAME = 'AllTraffic'; - - const endpointConfig = new sagemaker_alpha.EndpointConfig( - scope, - 'PrimarySageMakerModelEndpointConfig', - { - instanceProductionVariants: [ - { - model, - variantName: PRODUCTION_VARIANT_NAME, - // https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html#multi-model-support-gpu - instanceType, - initialInstanceCount: props.initialInstanceCount, - }, - ], - }, - ); - - // Create the endpoint. - const endpoint = new sagemaker_alpha.Endpoint( - scope, - 'PrimarySageMakerModelEndpoint', - { - endpointConfig: endpointConfig, - }, - ); - - const productionVariant = endpoint.findInstanceProductionVariant( - PRODUCTION_VARIANT_NAME, - ); - - // Autoscaling groups are not supported for burstable instance types (t2). - if (!props.instanceType.toString().includes('ml.t2') && autoscaling) { - const scalableTarget = new appscaling.ScalableTarget( - scope, - 'ClassificationEndpointScalableTarget', - { - serviceNamespace: appscaling.ServiceNamespace.SAGEMAKER, - maxCapacity: autoscaling.maxInstanceCount, - minCapacity: autoscaling.minInstanceCount, - resourceId: `endpoint/${endpoint.endpointName}/variant/${PRODUCTION_VARIANT_NAME}`, - scalableDimension: 'sagemaker:variant:DesiredInstanceCount', - }, - ); - scalableTarget.scaleToTrackMetric('ModelLatencyTracking', { - // This metric's actual target value is in microseconds. 1 millisecond is - // 1000 microseconds. - targetValue: - autoscaling.autoscalingModelLatencyMetricTrackingTarget.toMilliseconds() * - 1000, - customMetric: productionVariant.metricModelLatency({ - period: Duration.seconds(30), - }), - }); - } - - return { endpoint }; -} diff --git a/.devops/aws/src/constructs/ShellRunner.dockerfile b/.devops/aws/src/constructs/ShellRunner.dockerfile deleted file mode 100644 index d236d9f..0000000 --- a/.devops/aws/src/constructs/ShellRunner.dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM python:alpine -RUN apk --no-cache add curl - -ARG KUBERNETES_VERSION - -# Install kubectl -RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(echo $KUBERNETES_VERSION)/bin/linux/amd64/kubectl \ - && mv kubectl /usr/local/bin \ - && chmod +x /usr/local/bin/kubectl - -RUN adduser -S user -USER user -WORKDIR /home/user -ENV PATH /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/user/.local/bin - -# Install awscli -RUN pip install awscli --upgrade --user \ No newline at end of file diff --git a/.devops/aws/src/constructs/SnsAlarmStateChangeNotifications.ts b/.devops/aws/src/constructs/SnsAlarmStateChangeNotifications.ts deleted file mode 100644 index 7537f71..0000000 --- a/.devops/aws/src/constructs/SnsAlarmStateChangeNotifications.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Alarm } from 'aws-cdk-lib/aws-cloudwatch'; -import { SnsAction } from 'aws-cdk-lib/aws-cloudwatch-actions'; -import { ITopic } from 'aws-cdk-lib/aws-sns'; -import { Construct } from 'constructs'; - -type Props = { - alarm: Alarm; - topic: ITopic; -}; - -/** - * Adds notifications, to an SNS topic, for when an alarm changes state. - */ -export class SnsAlarmStateChangeNotifications extends Construct { - constructor(scope: Construct, name: string, props: Props) { - super(scope, name); - - props.alarm.addAlarmAction(new SnsAction(props.topic)); - props.alarm.addOkAction(new SnsAction(props.topic)); - props.alarm.addInsufficientDataAction(new SnsAction(props.topic)); - } -} - -/** - * Takes an existing alarm that's already defined in a scope, and adds SNS - * notifications for its state change (w/ these notification resources defined - * in the same scope). The side effects here feel gross, but welcome to CDK. - */ -export function withSnsNotifications(alarm: Alarm, topic: ITopic) { - new SnsAlarmStateChangeNotifications( - alarm.node.scope!, - `${alarm.node.id}Notifications`, - { alarm, topic }, - ); -} diff --git a/.devops/aws/src/constructs/clusterFromAttributes.ts b/.devops/aws/src/constructs/clusterFromAttributes.ts deleted file mode 100644 index 3e3c58c..0000000 --- a/.devops/aws/src/constructs/clusterFromAttributes.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { IVpc } from 'aws-cdk-lib/aws-ec2'; -import { Cluster, KubernetesVersion } from 'aws-cdk-lib/aws-eks'; -import { OpenIdConnectProvider } from 'aws-cdk-lib/aws-iam'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import { ILayerVersion } from 'aws-cdk-lib/aws-lambda'; -import { Construct } from 'constructs'; - -export type ClusterAttributes = { - clusterName: string; - kubectlRoleArn: string; - openIdConnectProviderArn: string; - vpc: IVpc; - kubectlLayer: ILayerVersion; - version: KubernetesVersion; - kubectlLambdaRoleArn: string; - kubectlSecurityGroupId: string; - clusterEndpoint: string; -}; - -// This just removes the versioning related properties from ClusterAttributes, -// which is convenient only because the kubectlLayer prop has to be -// re-instantiated within each stack, because the lamba layer construct can only -// be created within the scope of a Stack. -export type VersionAgnosticClusterAttributes = Omit< - ClusterAttributes, - 'kubectlLayer' | 'version' ->; - -/** - * We deploy our k8s cluster in a separate stack (our ClusterStack) from the - * stacks that deploy resources into the cluster (like our api, workers, etc). - * - * These other stacks need to reference the k8s cluster, but we can't pass in a - * JS reference to the Cluster object from our ClusterStack, or else the - * mutations to the cluster that we make in these subsequent stacks will effect - * the cluster object that's seen (after synth) as being in the ClusterStack -- - * breaking the ability to deploy each stack independently. - * - * So, instead, we recreate a reference to the cluster in each of these - * subsequest stacks, relying on the cluster to already exist and using its - * attributes. This mostly works, except for the VPC (getting a fully usable - * stand-in object for a VPC from its attributes doesn't work well in CDK), so, - * just for the VPC, we're required to actually pass in the Vpc object from our - * VpcStack. That works ok, as long as we're careful not to mutate the vpc itself. - * - * Anyway, this function abstracts the boilerplate of creating that cluster from - * attributes, and defines the common type we need for it. - */ -export function clusterFromAttributes( - scope: Construct, - id: string, - attributes: ClusterAttributes, -) { - const { openIdConnectProviderArn, kubectlLambdaRoleArn, ...restAttributes } = - attributes; - return Cluster.fromClusterAttributes(scope, id, { - ...restAttributes, - kubectlPrivateSubnetIds: attributes.vpc.privateSubnets.map( - (subnet) => subnet.subnetId, - ), - // this is required as of aws-cdk-lib v2.80.0. Explanation and implementation - // is detailed here https://github.com/aws/aws-cdk/issues/25674 - kubectlLambdaRole: iam.Role.fromRoleArn( - scope, - 'KubectlLambdaRole', - kubectlLambdaRoleArn, - ), - openIdConnectProvider: OpenIdConnectProvider.fromOpenIdConnectProviderArn( - scope, - 'OpenIdConnectProvider', - openIdConnectProviderArn, - ), - }); -} diff --git a/.devops/aws/src/constructs/notify-github-handler.py b/.devops/aws/src/constructs/notify-github-handler.py deleted file mode 100644 index 62372a7..0000000 --- a/.devops/aws/src/constructs/notify-github-handler.py +++ /dev/null @@ -1,107 +0,0 @@ -from __future__ import print_function -import json -import boto3 -import os -import urllib3 - -codepipeline_client = boto3.client('codepipeline') -access_token = os.environ['GITHUB_ACCESS_TOKEN'] -region = os.environ['AWS_REGION'] - - -def pipeline_status_changed_handler(event, context): - """ - Notify github when a pipeline's status changes. - """ - message = event['Records'][0]['Sns']['Message'] - data = json.loads(message) - print(data) - - # We only know how to handle/want to push notifications about Pipeline - # Execution State Changes (i.e., pipeline started, finished, failed, etc) - # and for limited Action Execution State Changes -- namely, the one that - # happen when the "Wait for manual approval" action starts or is acted on. - is_pipeline_status_change_event = ( - data.get("detailType") == "CodePipeline Pipeline Execution State Change" - ) - - is_manual_approval_status_change_event = ( - data.get("detailType") == "CodePipeline Action Execution State Change" and ( - data['detail']['type']['provider'] == 'Manual' and ( - data['detail']['type']['category'] == 'Approval' - ) - ) - ) - - if not is_pipeline_status_change_event and not is_manual_approval_status_change_event: - return() - - pipeline_name = data['detail']['pipeline'] - pipeline_execution_id = data['detail']['execution-id'] - repo_id, commit_id = commit_from_pipeline_execution( - pipeline_name, - pipeline_execution_id - ) - - normalized_state = data['detail']['state'].upper() - is_awaiting_manual_approval = ( - is_manual_approval_status_change_event and normalized_state == "STARTED") - - # If this is the manual approval event, then that event "starting" means - # that the prior events completed successfully, so we want to show the - # pipeline as "succeeded", even though there are more steps to run after - # approval. Meanwhile, that event completing means the pipeline's running again. - if is_manual_approval_status_change_event: - if normalized_state == "STARTED": - state = "success" - elif normalized_state == "SUCCEEDED": - state = "pending" - else: - state = "error" - else: - if normalized_state in ["SUCCEEDED"]: - state = "success" - elif normalized_state in ["STARTED", "STOPPING", "STOPPED", "SUPERSEDED", "RESUMED"]: - state = "pending" - else: - state = "error" - - r = urllib3.PoolManager().request( - 'POST', - "https://api.github.com/repos/" + repo_id + "/statuses/" + commit_id, - headers={ - 'Accept': 'application/json', - 'Content-Type': 'application/json', - 'User-Agent': 'Curl/0.1', - 'Authorization': 'token %s' % access_token}, - body=json.dumps({ - "state": state, - "context": "CodePipeline", - "description": pipeline_name + (" is awaiting manual approval" if is_awaiting_manual_approval else ""), - 'target_url': "https://" + region + ".console.aws.amazon.com/codesuite/codepipeline/pipelines/" + pipeline_name + "/executions/" + pipeline_execution_id + "?region="+region - }).encode('utf-8') - ) - - print(r.data) - - return message - - -def commit_from_pipeline_execution(pipeline_name, pipeline_execution_id): - response = codepipeline_client.get_pipeline_execution( - pipelineName=pipeline_name, - pipelineExecutionId=pipeline_execution_id - ) - - commit_id = response['pipelineExecution']['artifactRevisions'][0]['revisionId'] - revision_url = response['pipelineExecution']['artifactRevisions'][0]['revisionUrl'] - repo_id = repo_id_from_pipeline_artifact_revision_url(revision_url) - - return (repo_id, commit_id) - - -def repo_id_from_pipeline_artifact_revision_url(revision_url): - if "FullRepositoryId=" in revision_url: - return revision_url.split("FullRepositoryId=")[1].split("&")[0] - else: # gitbub v1 integration - return revision_url.split("/")[3] + "/" + revision_url.split("/")[4] diff --git a/.devops/aws/src/imports/argoproj.io.ts b/.devops/aws/src/imports/argoproj.io.ts deleted file mode 100644 index 5df3e62..0000000 --- a/.devops/aws/src/imports/argoproj.io.ts +++ /dev/null @@ -1,22503 +0,0 @@ -// generated by cdk8s -import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - - -/** - * - * - * @schema AnalysisTemplate - */ -export class AnalysisTemplate extends ApiObject { - /** - * Returns the apiVersion and kind for "AnalysisTemplate" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'argoproj.io/v1alpha1', - kind: 'AnalysisTemplate', - } - - /** - * Renders a Kubernetes manifest for "AnalysisTemplate". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: AnalysisTemplateProps): any { - return { - ...AnalysisTemplate.GVK, - ...toJson_AnalysisTemplateProps(props), - }; - } - - /** - * Defines a "AnalysisTemplate" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: AnalysisTemplateProps) { - super(scope, id, { - ...AnalysisTemplate.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...AnalysisTemplate.GVK, - ...toJson_AnalysisTemplateProps(resolved), - }; - } -} - -/** - * @schema AnalysisTemplate - */ -export interface AnalysisTemplateProps { - /** - * @schema AnalysisTemplate#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * @schema AnalysisTemplate#spec - */ - readonly spec: AnalysisTemplateSpec; - -} - -/** - * Converts an object of type 'AnalysisTemplateProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateProps(obj: AnalysisTemplateProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_AnalysisTemplateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpec - */ -export interface AnalysisTemplateSpec { - /** - * @schema AnalysisTemplateSpec#args - */ - readonly args?: AnalysisTemplateSpecArgs[]; - - /** - * @schema AnalysisTemplateSpec#dryRun - */ - readonly dryRun?: AnalysisTemplateSpecDryRun[]; - - /** - * @schema AnalysisTemplateSpec#measurementRetention - */ - readonly measurementRetention?: AnalysisTemplateSpecMeasurementRetention[]; - - /** - * @schema AnalysisTemplateSpec#metrics - */ - readonly metrics: AnalysisTemplateSpecMetrics[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpec(obj: AnalysisTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => toJson_AnalysisTemplateSpecArgs(y)), - 'dryRun': obj.dryRun?.map(y => toJson_AnalysisTemplateSpecDryRun(y)), - 'measurementRetention': obj.measurementRetention?.map(y => toJson_AnalysisTemplateSpecMeasurementRetention(y)), - 'metrics': obj.metrics?.map(y => toJson_AnalysisTemplateSpecMetrics(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecArgs - */ -export interface AnalysisTemplateSpecArgs { - /** - * @schema AnalysisTemplateSpecArgs#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecArgs#value - */ - readonly value?: string; - - /** - * @schema AnalysisTemplateSpecArgs#valueFrom - */ - readonly valueFrom?: AnalysisTemplateSpecArgsValueFrom; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecArgs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecArgs(obj: AnalysisTemplateSpecArgs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_AnalysisTemplateSpecArgsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecDryRun - */ -export interface AnalysisTemplateSpecDryRun { - /** - * @schema AnalysisTemplateSpecDryRun#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecDryRun' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecDryRun(obj: AnalysisTemplateSpecDryRun | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMeasurementRetention - */ -export interface AnalysisTemplateSpecMeasurementRetention { - /** - * @schema AnalysisTemplateSpecMeasurementRetention#limit - */ - readonly limit: number; - - /** - * @schema AnalysisTemplateSpecMeasurementRetention#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMeasurementRetention' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMeasurementRetention(obj: AnalysisTemplateSpecMeasurementRetention | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limit': obj.limit, - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetrics - */ -export interface AnalysisTemplateSpecMetrics { - /** - * @schema AnalysisTemplateSpecMetrics#consecutiveErrorLimit - */ - readonly consecutiveErrorLimit?: AnalysisTemplateSpecMetricsConsecutiveErrorLimit; - - /** - * @schema AnalysisTemplateSpecMetrics#count - */ - readonly count?: AnalysisTemplateSpecMetricsCount; - - /** - * @schema AnalysisTemplateSpecMetrics#failureCondition - */ - readonly failureCondition?: string; - - /** - * @schema AnalysisTemplateSpecMetrics#failureLimit - */ - readonly failureLimit?: AnalysisTemplateSpecMetricsFailureLimit; - - /** - * @schema AnalysisTemplateSpecMetrics#inconclusiveLimit - */ - readonly inconclusiveLimit?: AnalysisTemplateSpecMetricsInconclusiveLimit; - - /** - * @schema AnalysisTemplateSpecMetrics#initialDelay - */ - readonly initialDelay?: string; - - /** - * @schema AnalysisTemplateSpecMetrics#interval - */ - readonly interval?: string; - - /** - * @schema AnalysisTemplateSpecMetrics#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetrics#provider - */ - readonly provider: AnalysisTemplateSpecMetricsProvider; - - /** - * @schema AnalysisTemplateSpecMetrics#successCondition - */ - readonly successCondition?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetrics(obj: AnalysisTemplateSpecMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'consecutiveErrorLimit': obj.consecutiveErrorLimit?.value, - 'count': obj.count?.value, - 'failureCondition': obj.failureCondition, - 'failureLimit': obj.failureLimit?.value, - 'inconclusiveLimit': obj.inconclusiveLimit?.value, - 'initialDelay': obj.initialDelay, - 'interval': obj.interval, - 'name': obj.name, - 'provider': toJson_AnalysisTemplateSpecMetricsProvider(obj.provider), - 'successCondition': obj.successCondition, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecArgsValueFrom - */ -export interface AnalysisTemplateSpecArgsValueFrom { - /** - * @schema AnalysisTemplateSpecArgsValueFrom#fieldRef - */ - readonly fieldRef?: AnalysisTemplateSpecArgsValueFromFieldRef; - - /** - * @schema AnalysisTemplateSpecArgsValueFrom#secretKeyRef - */ - readonly secretKeyRef?: AnalysisTemplateSpecArgsValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecArgsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecArgsValueFrom(obj: AnalysisTemplateSpecArgsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_AnalysisTemplateSpecArgsValueFromFieldRef(obj.fieldRef), - 'secretKeyRef': toJson_AnalysisTemplateSpecArgsValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsConsecutiveErrorLimit - */ -export class AnalysisTemplateSpecMetricsConsecutiveErrorLimit { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsConsecutiveErrorLimit { - return new AnalysisTemplateSpecMetricsConsecutiveErrorLimit(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsConsecutiveErrorLimit { - return new AnalysisTemplateSpecMetricsConsecutiveErrorLimit(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsCount - */ -export class AnalysisTemplateSpecMetricsCount { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsCount { - return new AnalysisTemplateSpecMetricsCount(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsCount { - return new AnalysisTemplateSpecMetricsCount(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsFailureLimit - */ -export class AnalysisTemplateSpecMetricsFailureLimit { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsFailureLimit { - return new AnalysisTemplateSpecMetricsFailureLimit(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsFailureLimit { - return new AnalysisTemplateSpecMetricsFailureLimit(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsInconclusiveLimit - */ -export class AnalysisTemplateSpecMetricsInconclusiveLimit { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsInconclusiveLimit { - return new AnalysisTemplateSpecMetricsInconclusiveLimit(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsInconclusiveLimit { - return new AnalysisTemplateSpecMetricsInconclusiveLimit(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProvider - */ -export interface AnalysisTemplateSpecMetricsProvider { - /** - * @schema AnalysisTemplateSpecMetricsProvider#cloudWatch - */ - readonly cloudWatch?: AnalysisTemplateSpecMetricsProviderCloudWatch; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#datadog - */ - readonly datadog?: AnalysisTemplateSpecMetricsProviderDatadog; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#graphite - */ - readonly graphite?: AnalysisTemplateSpecMetricsProviderGraphite; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#influxdb - */ - readonly influxdb?: AnalysisTemplateSpecMetricsProviderInfluxdb; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#job - */ - readonly job?: AnalysisTemplateSpecMetricsProviderJob; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#kayenta - */ - readonly kayenta?: AnalysisTemplateSpecMetricsProviderKayenta; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#newRelic - */ - readonly newRelic?: AnalysisTemplateSpecMetricsProviderNewRelic; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#plugin - */ - readonly plugin?: any; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#prometheus - */ - readonly prometheus?: AnalysisTemplateSpecMetricsProviderPrometheus; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#skywalking - */ - readonly skywalking?: AnalysisTemplateSpecMetricsProviderSkywalking; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#wavefront - */ - readonly wavefront?: AnalysisTemplateSpecMetricsProviderWavefront; - - /** - * @schema AnalysisTemplateSpecMetricsProvider#web - */ - readonly web?: AnalysisTemplateSpecMetricsProviderWeb; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProvider' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProvider(obj: AnalysisTemplateSpecMetricsProvider | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cloudWatch': toJson_AnalysisTemplateSpecMetricsProviderCloudWatch(obj.cloudWatch), - 'datadog': toJson_AnalysisTemplateSpecMetricsProviderDatadog(obj.datadog), - 'graphite': toJson_AnalysisTemplateSpecMetricsProviderGraphite(obj.graphite), - 'influxdb': toJson_AnalysisTemplateSpecMetricsProviderInfluxdb(obj.influxdb), - 'job': toJson_AnalysisTemplateSpecMetricsProviderJob(obj.job), - 'kayenta': toJson_AnalysisTemplateSpecMetricsProviderKayenta(obj.kayenta), - 'newRelic': toJson_AnalysisTemplateSpecMetricsProviderNewRelic(obj.newRelic), - 'plugin': obj.plugin, - 'prometheus': toJson_AnalysisTemplateSpecMetricsProviderPrometheus(obj.prometheus), - 'skywalking': toJson_AnalysisTemplateSpecMetricsProviderSkywalking(obj.skywalking), - 'wavefront': toJson_AnalysisTemplateSpecMetricsProviderWavefront(obj.wavefront), - 'web': toJson_AnalysisTemplateSpecMetricsProviderWeb(obj.web), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecArgsValueFromFieldRef - */ -export interface AnalysisTemplateSpecArgsValueFromFieldRef { - /** - * @schema AnalysisTemplateSpecArgsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecArgsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecArgsValueFromFieldRef(obj: AnalysisTemplateSpecArgsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecArgsValueFromSecretKeyRef - */ -export interface AnalysisTemplateSpecArgsValueFromSecretKeyRef { - /** - * @schema AnalysisTemplateSpecArgsValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecArgsValueFromSecretKeyRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecArgsValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecArgsValueFromSecretKeyRef(obj: AnalysisTemplateSpecArgsValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatch - */ -export interface AnalysisTemplateSpecMetricsProviderCloudWatch { - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatch#interval - */ - readonly interval?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatch#metricDataQueries - */ - readonly metricDataQueries: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderCloudWatch' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderCloudWatch(obj: AnalysisTemplateSpecMetricsProviderCloudWatch | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'interval': obj.interval, - 'metricDataQueries': obj.metricDataQueries?.map(y => toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderDatadog - */ -export interface AnalysisTemplateSpecMetricsProviderDatadog { - /** - * @schema AnalysisTemplateSpecMetricsProviderDatadog#apiVersion - */ - readonly apiVersion?: AnalysisTemplateSpecMetricsProviderDatadogApiVersion; - - /** - * @schema AnalysisTemplateSpecMetricsProviderDatadog#formula - */ - readonly formula?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderDatadog#interval - */ - readonly interval?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderDatadog#queries - */ - readonly queries?: { [key: string]: string }; - - /** - * @schema AnalysisTemplateSpecMetricsProviderDatadog#query - */ - readonly query?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderDatadog' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderDatadog(obj: AnalysisTemplateSpecMetricsProviderDatadog | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'formula': obj.formula, - 'interval': obj.interval, - 'queries': ((obj.queries) === undefined) ? undefined : (Object.entries(obj.queries).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'query': obj.query, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderGraphite - */ -export interface AnalysisTemplateSpecMetricsProviderGraphite { - /** - * @schema AnalysisTemplateSpecMetricsProviderGraphite#address - */ - readonly address?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderGraphite#query - */ - readonly query?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderGraphite' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderGraphite(obj: AnalysisTemplateSpecMetricsProviderGraphite | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'address': obj.address, - 'query': obj.query, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderInfluxdb - */ -export interface AnalysisTemplateSpecMetricsProviderInfluxdb { - /** - * @schema AnalysisTemplateSpecMetricsProviderInfluxdb#profile - */ - readonly profile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderInfluxdb#query - */ - readonly query?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderInfluxdb' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderInfluxdb(obj: AnalysisTemplateSpecMetricsProviderInfluxdb | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'profile': obj.profile, - 'query': obj.query, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJob - */ -export interface AnalysisTemplateSpecMetricsProviderJob { - /** - * @schema AnalysisTemplateSpecMetricsProviderJob#metadata - */ - readonly metadata?: AnalysisTemplateSpecMetricsProviderJobMetadata; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJob#spec - */ - readonly spec: AnalysisTemplateSpecMetricsProviderJobSpec; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJob' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJob(obj: AnalysisTemplateSpecMetricsProviderJob | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_AnalysisTemplateSpecMetricsProviderJobMetadata(obj.metadata), - 'spec': toJson_AnalysisTemplateSpecMetricsProviderJobSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderKayenta - */ -export interface AnalysisTemplateSpecMetricsProviderKayenta { - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#address - */ - readonly address: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#application - */ - readonly application: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#canaryConfigName - */ - readonly canaryConfigName: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#configurationAccountName - */ - readonly configurationAccountName: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#metricsAccountName - */ - readonly metricsAccountName: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#scopes - */ - readonly scopes: AnalysisTemplateSpecMetricsProviderKayentaScopes[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#storageAccountName - */ - readonly storageAccountName: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayenta#threshold - */ - readonly threshold: AnalysisTemplateSpecMetricsProviderKayentaThreshold; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderKayenta' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderKayenta(obj: AnalysisTemplateSpecMetricsProviderKayenta | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'address': obj.address, - 'application': obj.application, - 'canaryConfigName': obj.canaryConfigName, - 'configurationAccountName': obj.configurationAccountName, - 'metricsAccountName': obj.metricsAccountName, - 'scopes': obj.scopes?.map(y => toJson_AnalysisTemplateSpecMetricsProviderKayentaScopes(y)), - 'storageAccountName': obj.storageAccountName, - 'threshold': toJson_AnalysisTemplateSpecMetricsProviderKayentaThreshold(obj.threshold), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderNewRelic - */ -export interface AnalysisTemplateSpecMetricsProviderNewRelic { - /** - * @schema AnalysisTemplateSpecMetricsProviderNewRelic#profile - */ - readonly profile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderNewRelic#query - */ - readonly query: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderNewRelic' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderNewRelic(obj: AnalysisTemplateSpecMetricsProviderNewRelic | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'profile': obj.profile, - 'query': obj.query, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus - */ -export interface AnalysisTemplateSpecMetricsProviderPrometheus { - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus#address - */ - readonly address?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus#authentication - */ - readonly authentication?: AnalysisTemplateSpecMetricsProviderPrometheusAuthentication; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus#headers - */ - readonly headers?: AnalysisTemplateSpecMetricsProviderPrometheusHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus#insecure - */ - readonly insecure?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus#query - */ - readonly query?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheus#timeout - */ - readonly timeout?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderPrometheus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderPrometheus(obj: AnalysisTemplateSpecMetricsProviderPrometheus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'address': obj.address, - 'authentication': toJson_AnalysisTemplateSpecMetricsProviderPrometheusAuthentication(obj.authentication), - 'headers': obj.headers?.map(y => toJson_AnalysisTemplateSpecMetricsProviderPrometheusHeaders(y)), - 'insecure': obj.insecure, - 'query': obj.query, - 'timeout': obj.timeout, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderSkywalking - */ -export interface AnalysisTemplateSpecMetricsProviderSkywalking { - /** - * @schema AnalysisTemplateSpecMetricsProviderSkywalking#address - */ - readonly address?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderSkywalking#interval - */ - readonly interval?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderSkywalking#query - */ - readonly query?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderSkywalking' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderSkywalking(obj: AnalysisTemplateSpecMetricsProviderSkywalking | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'address': obj.address, - 'interval': obj.interval, - 'query': obj.query, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderWavefront - */ -export interface AnalysisTemplateSpecMetricsProviderWavefront { - /** - * @schema AnalysisTemplateSpecMetricsProviderWavefront#address - */ - readonly address?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWavefront#query - */ - readonly query?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderWavefront' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderWavefront(obj: AnalysisTemplateSpecMetricsProviderWavefront | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'address': obj.address, - 'query': obj.query, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderWeb - */ -export interface AnalysisTemplateSpecMetricsProviderWeb { - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#authentication - */ - readonly authentication?: AnalysisTemplateSpecMetricsProviderWebAuthentication; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#body - */ - readonly body?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#headers - */ - readonly headers?: AnalysisTemplateSpecMetricsProviderWebHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#insecure - */ - readonly insecure?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#jsonBody - */ - readonly jsonBody?: any; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#jsonPath - */ - readonly jsonPath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#method - */ - readonly method?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#timeoutSeconds - */ - readonly timeoutSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWeb#url - */ - readonly url: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderWeb' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderWeb(obj: AnalysisTemplateSpecMetricsProviderWeb | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'authentication': toJson_AnalysisTemplateSpecMetricsProviderWebAuthentication(obj.authentication), - 'body': obj.body, - 'headers': obj.headers?.map(y => toJson_AnalysisTemplateSpecMetricsProviderWebHeaders(y)), - 'insecure': obj.insecure, - 'jsonBody': obj.jsonBody, - 'jsonPath': obj.jsonPath, - 'method': obj.method, - 'timeoutSeconds': obj.timeoutSeconds, - 'url': obj.url, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries - */ -export interface AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries { - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries#expression - */ - readonly expression?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries#id - */ - readonly id?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries#label - */ - readonly label?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries#metricStat - */ - readonly metricStat?: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries#period - */ - readonly period?: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries#returnData - */ - readonly returnData?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries(obj: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueries | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'id': obj.id, - 'label': obj.label, - 'metricStat': toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat(obj.metricStat), - 'period': obj.period?.value, - 'returnData': obj.returnData, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderDatadogApiVersion - */ -export enum AnalysisTemplateSpecMetricsProviderDatadogApiVersion { - /** v1 */ - V1 = "v1", - /** v2 */ - V2 = "v2", -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobMetadata - */ -export interface AnalysisTemplateSpecMetricsProviderJobMetadata { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobMetadata(obj: AnalysisTemplateSpecMetricsProviderJobMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#backoffLimit - */ - readonly backoffLimit?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#completionMode - */ - readonly completionMode?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#completions - */ - readonly completions?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#manualSelector - */ - readonly manualSelector?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#parallelism - */ - readonly parallelism?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#podFailurePolicy - */ - readonly podFailurePolicy?: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#selector - */ - readonly selector?: AnalysisTemplateSpecMetricsProviderJobSpecSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#suspend - */ - readonly suspend?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#template - */ - readonly template: AnalysisTemplateSpecMetricsProviderJobSpecTemplate; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpec#ttlSecondsAfterFinished - */ - readonly ttlSecondsAfterFinished?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpec(obj: AnalysisTemplateSpecMetricsProviderJobSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'activeDeadlineSeconds': obj.activeDeadlineSeconds, - 'backoffLimit': obj.backoffLimit, - 'completionMode': obj.completionMode, - 'completions': obj.completions, - 'manualSelector': obj.manualSelector, - 'parallelism': obj.parallelism, - 'podFailurePolicy': toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy(obj.podFailurePolicy), - 'selector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecSelector(obj.selector), - 'suspend': obj.suspend, - 'template': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplate(obj.template), - 'ttlSecondsAfterFinished': obj.ttlSecondsAfterFinished, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopes - */ -export interface AnalysisTemplateSpecMetricsProviderKayentaScopes { - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopes#controlScope - */ - readonly controlScope: AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopes#experimentScope - */ - readonly experimentScope: AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopes#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderKayentaScopes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderKayentaScopes(obj: AnalysisTemplateSpecMetricsProviderKayentaScopes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'controlScope': toJson_AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope(obj.controlScope), - 'experimentScope': toJson_AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope(obj.experimentScope), - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderKayentaThreshold - */ -export interface AnalysisTemplateSpecMetricsProviderKayentaThreshold { - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaThreshold#marginal - */ - readonly marginal: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaThreshold#pass - */ - readonly pass: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderKayentaThreshold' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderKayentaThreshold(obj: AnalysisTemplateSpecMetricsProviderKayentaThreshold | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'marginal': obj.marginal, - 'pass': obj.pass, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthentication - */ -export interface AnalysisTemplateSpecMetricsProviderPrometheusAuthentication { - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthentication#oauth2 - */ - readonly oauth2?: AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthentication#sigv4 - */ - readonly sigv4?: AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderPrometheusAuthentication' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderPrometheusAuthentication(obj: AnalysisTemplateSpecMetricsProviderPrometheusAuthentication | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'oauth2': toJson_AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2(obj.oauth2), - 'sigv4': toJson_AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4(obj.sigv4), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderPrometheusHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusHeaders#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderPrometheusHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderPrometheusHeaders(obj: AnalysisTemplateSpecMetricsProviderPrometheusHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthentication - */ -export interface AnalysisTemplateSpecMetricsProviderWebAuthentication { - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthentication#oauth2 - */ - readonly oauth2?: AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthentication#sigv4 - */ - readonly sigv4?: AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderWebAuthentication' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderWebAuthentication(obj: AnalysisTemplateSpecMetricsProviderWebAuthentication | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'oauth2': toJson_AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2(obj.oauth2), - 'sigv4': toJson_AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4(obj.sigv4), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderWebHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderWebHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderWebHeaders#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderWebHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderWebHeaders(obj: AnalysisTemplateSpecMetricsProviderWebHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat - */ -export interface AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat { - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat#metric - */ - readonly metric?: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat#period - */ - readonly period?: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat#stat - */ - readonly stat?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat#unit - */ - readonly unit?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat(obj: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStat | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metric': toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric(obj.metric), - 'period': obj.period?.value, - 'stat': obj.stat, - 'unit': obj.unit, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod - */ -export class AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod { - return new AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod { - return new AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesPeriod(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy#rules - */ - readonly rules: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy(obj: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rules': obj.rules?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplate - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplate { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplate#metadata - */ - readonly metadata?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplate#spec - */ - readonly spec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplate(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata(obj.metadata), - 'spec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope - */ -export interface AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope { - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope#end - */ - readonly end: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope#region - */ - readonly region: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope#scope - */ - readonly scope: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope#start - */ - readonly start: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope#step - */ - readonly step: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope(obj: AnalysisTemplateSpecMetricsProviderKayentaScopesControlScope | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'end': obj.end, - 'region': obj.region, - 'scope': obj.scope, - 'start': obj.start, - 'step': obj.step, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope - */ -export interface AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope { - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope#end - */ - readonly end: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope#region - */ - readonly region: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope#scope - */ - readonly scope: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope#start - */ - readonly start: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope#step - */ - readonly step: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope(obj: AnalysisTemplateSpecMetricsProviderKayentaScopesExperimentScope | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'end': obj.end, - 'region': obj.region, - 'scope': obj.scope, - 'start': obj.start, - 'step': obj.step, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2 - */ -export interface AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2 { - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2#clientId - */ - readonly clientId?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2#clientSecret - */ - readonly clientSecret?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2#scopes - */ - readonly scopes?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2#tokenUrl - */ - readonly tokenUrl?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2(obj: AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationOauth2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientId': obj.clientId, - 'clientSecret': obj.clientSecret, - 'scopes': obj.scopes?.map(y => y), - 'tokenUrl': obj.tokenUrl, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4 - */ -export interface AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4 { - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4#profile - */ - readonly profile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4#region - */ - readonly region?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4#roleArn - */ - readonly roleArn?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4(obj: AnalysisTemplateSpecMetricsProviderPrometheusAuthenticationSigv4 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'profile': obj.profile, - 'region': obj.region, - 'roleArn': obj.roleArn, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2 - */ -export interface AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2 { - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2#clientId - */ - readonly clientId?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2#clientSecret - */ - readonly clientSecret?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2#scopes - */ - readonly scopes?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2#tokenUrl - */ - readonly tokenUrl?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2(obj: AnalysisTemplateSpecMetricsProviderWebAuthenticationOauth2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientId': obj.clientId, - 'clientSecret': obj.clientSecret, - 'scopes': obj.scopes?.map(y => y), - 'tokenUrl': obj.tokenUrl, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4 - */ -export interface AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4 { - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4#profile - */ - readonly profile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4#region - */ - readonly region?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4#roleArn - */ - readonly roleArn?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4(obj: AnalysisTemplateSpecMetricsProviderWebAuthenticationSigv4 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'profile': obj.profile, - 'region': obj.region, - 'roleArn': obj.roleArn, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric - */ -export interface AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric { - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric#dimensions - */ - readonly dimensions?: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric#metricName - */ - readonly metricName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric(obj: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetric | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'dimensions': obj.dimensions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions(y)), - 'metricName': obj.metricName, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod - */ -export class AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod { - return new AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod { - return new AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules#action - */ - readonly action: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules#onExitCodes - */ - readonly onExitCodes?: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules#onPodConditions - */ - readonly onPodConditions: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules(obj: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRules | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'action': obj.action, - 'onExitCodes': toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes(obj.onExitCodes), - 'onPodConditions': obj.onPodConditions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#affinity - */ - readonly affinity?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#automountServiceAccountToken - */ - readonly automountServiceAccountToken?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#containers - */ - readonly containers: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#dnsConfig - */ - readonly dnsConfig?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#dnsPolicy - */ - readonly dnsPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#enableServiceLinks - */ - readonly enableServiceLinks?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#ephemeralContainers - */ - readonly ephemeralContainers?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#hostAliases - */ - readonly hostAliases?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#hostIPC - */ - readonly hostIpc?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#hostNetwork - */ - readonly hostNetwork?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#hostPID - */ - readonly hostPid?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#hostUsers - */ - readonly hostUsers?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#hostname - */ - readonly hostname?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#imagePullSecrets - */ - readonly imagePullSecrets?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#initContainers - */ - readonly initContainers?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#nodeName - */ - readonly nodeName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#os - */ - readonly os?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#overhead - */ - readonly overhead?: { [key: string]: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead }; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#preemptionPolicy - */ - readonly preemptionPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#priority - */ - readonly priority?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#priorityClassName - */ - readonly priorityClassName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#readinessGates - */ - readonly readinessGates?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#runtimeClassName - */ - readonly runtimeClassName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#schedulerName - */ - readonly schedulerName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#securityContext - */ - readonly securityContext?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#serviceAccountName - */ - readonly serviceAccountName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#setHostnameAsFQDN - */ - readonly setHostnameAsFqdn?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#shareProcessNamespace - */ - readonly shareProcessNamespace?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#subdomain - */ - readonly subdomain?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#tolerations - */ - readonly tolerations?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec#volumes - */ - readonly volumes?: any; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'activeDeadlineSeconds': obj.activeDeadlineSeconds, - 'affinity': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity(obj.affinity), - 'automountServiceAccountToken': obj.automountServiceAccountToken, - 'containers': obj.containers?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers(y)), - 'dnsConfig': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig(obj.dnsConfig), - 'dnsPolicy': obj.dnsPolicy, - 'enableServiceLinks': obj.enableServiceLinks, - 'ephemeralContainers': obj.ephemeralContainers?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers(y)), - 'hostAliases': obj.hostAliases?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases(y)), - 'hostIPC': obj.hostIpc, - 'hostNetwork': obj.hostNetwork, - 'hostPID': obj.hostPid, - 'hostUsers': obj.hostUsers, - 'hostname': obj.hostname, - 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets(y)), - 'initContainers': obj.initContainers?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers(y)), - 'nodeName': obj.nodeName, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'os': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs(obj.os), - 'overhead': ((obj.overhead) === undefined) ? undefined : (Object.entries(obj.overhead).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'preemptionPolicy': obj.preemptionPolicy, - 'priority': obj.priority, - 'priorityClassName': obj.priorityClassName, - 'readinessGates': obj.readinessGates?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates(y)), - 'restartPolicy': obj.restartPolicy, - 'runtimeClassName': obj.runtimeClassName, - 'schedulerName': obj.schedulerName, - 'securityContext': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'serviceAccountName': obj.serviceAccountName, - 'setHostnameAsFQDN': obj.setHostnameAsFqdn, - 'shareProcessNamespace': obj.shareProcessNamespace, - 'subdomain': obj.subdomain, - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'tolerations': obj.tolerations?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints(y)), - 'volumes': obj.volumes, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions - */ -export interface AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions { - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions(obj: AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes#containerName - */ - readonly containerName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes#values - */ - readonly values: number[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes(obj: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnExitCodes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions#status - */ - readonly status: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions(obj: AnalysisTemplateSpecMetricsProviderJobSpecPodFailurePolicyRulesOnPodConditions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'status': obj.status, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity#nodeAffinity - */ - readonly nodeAffinity?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity#podAffinity - */ - readonly podAffinity?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#args - */ - readonly args?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#command - */ - readonly command?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#env - */ - readonly env?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#envFrom - */ - readonly envFrom?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#image - */ - readonly image?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#lifecycle - */ - readonly lifecycle?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#livenessProbe - */ - readonly livenessProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#ports - */ - readonly ports?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#readinessProbe - */ - readonly readinessProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#resources - */ - readonly resources?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#securityContext - */ - readonly securityContext?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#startupProbe - */ - readonly startupProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#volumeDevices - */ - readonly volumeDevices?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#volumeMounts - */ - readonly volumeMounts?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts(y)), - 'readinessProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe(obj.readinessProbe), - 'resources': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources(obj.resources), - 'securityContext': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig#nameservers - */ - readonly nameservers?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig#options - */ - readonly options?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig#searches - */ - readonly searches?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nameservers': obj.nameservers?.map(y => y), - 'options': obj.options?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions(y)), - 'searches': obj.searches?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#args - */ - readonly args?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#command - */ - readonly command?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#env - */ - readonly env?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#envFrom - */ - readonly envFrom?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#image - */ - readonly image?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#lifecycle - */ - readonly lifecycle?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#livenessProbe - */ - readonly livenessProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#ports - */ - readonly ports?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#readinessProbe - */ - readonly readinessProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#resources - */ - readonly resources?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#securityContext - */ - readonly securityContext?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#startupProbe - */ - readonly startupProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#targetContainerName - */ - readonly targetContainerName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#volumeDevices - */ - readonly volumeDevices?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#volumeMounts - */ - readonly volumeMounts?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts(y)), - 'readinessProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe(obj.readinessProbe), - 'resources': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources(obj.resources), - 'securityContext': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'targetContainerName': obj.targetContainerName, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases#hostnames - */ - readonly hostnames?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases#ip - */ - readonly ip?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecHostAliases | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hostnames': obj.hostnames?.map(y => y), - 'ip': obj.ip, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecImagePullSecrets | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#args - */ - readonly args?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#command - */ - readonly command?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#env - */ - readonly env?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#envFrom - */ - readonly envFrom?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#image - */ - readonly image?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#lifecycle - */ - readonly lifecycle?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#livenessProbe - */ - readonly livenessProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#ports - */ - readonly ports?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#readinessProbe - */ - readonly readinessProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#resources - */ - readonly resources?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#securityContext - */ - readonly securityContext?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#startupProbe - */ - readonly startupProbe?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#volumeDevices - */ - readonly volumeDevices?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#volumeMounts - */ - readonly volumeMounts?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts(y)), - 'readinessProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe(obj.readinessProbe), - 'resources': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources(obj.resources), - 'securityContext': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecOverhead(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates#conditionType - */ - readonly conditionType: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecReadinessGates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'conditionType': obj.conditionType, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#seccompProfile - */ - readonly seccompProfile?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#sysctls - */ - readonly sysctls?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext#windowsOptions - */ - readonly windowsOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls(y)), - 'windowsOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations#effect - */ - readonly effect?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations#key - */ - readonly key?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations#operator - */ - readonly operator?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#labelSelector - */ - readonly labelSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#maxSkew - */ - readonly maxSkew: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#minDomains - */ - readonly minDomains?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#topologyKey - */ - readonly topologyKey: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv#value - */ - readonly value?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv#valueFrom - */ - readonly valueFrom?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom#configMapRef - */ - readonly configMapRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom#secretRef - */ - readonly secretRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle#postStart - */ - readonly postStart?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle#preStop - */ - readonly preStop?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources#limits - */ - readonly limits?: any; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources#requests - */ - readonly requests?: any; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits, - 'requests': obj.requests, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#capabilities - */ - readonly capabilities?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecDnsConfigOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv#value - */ - readonly value?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv#valueFrom - */ - readonly valueFrom?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom#configMapRef - */ - readonly configMapRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom#secretRef - */ - readonly secretRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle#postStart - */ - readonly postStart?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle#preStop - */ - readonly preStop?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources#limits - */ - readonly limits?: any; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources#requests - */ - readonly requests?: any; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits, - 'requests': obj.requests, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#capabilities - */ - readonly capabilities?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv#value - */ - readonly value?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv#valueFrom - */ - readonly valueFrom?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom#configMapRef - */ - readonly configMapRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom#secretRef - */ - readonly secretRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle#postStart - */ - readonly postStart?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle#preStop - */ - readonly preStop?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources#limits - */ - readonly limits?: any; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources#requests - */ - readonly requests?: any; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits, - 'requests': obj.requests, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#capabilities - */ - readonly capabilities?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#grpc - */ - readonly grpc?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextSysctls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet(obj.httpGet), - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet(obj.httpGet), - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet(obj.httpGet), - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet(obj.httpGet), - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet(obj.httpGet), - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop#exec - */ - readonly exec?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet(obj.httpGet), - 'tcpSocket': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket#port - */ - readonly port: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort - */ -export class AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { - return new AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: AnalysisTemplateSpecMetricsProviderJobSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - - -/** - * - * - * @schema Rollout - */ -export class Rollout extends ApiObject { - /** - * Returns the apiVersion and kind for "Rollout" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'argoproj.io/v1alpha1', - kind: 'Rollout', - } - - /** - * Renders a Kubernetes manifest for "Rollout". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: RolloutProps): any { - return { - ...Rollout.GVK, - ...toJson_RolloutProps(props), - }; - } - - /** - * Defines a "Rollout" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: RolloutProps) { - super(scope, id, { - ...Rollout.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...Rollout.GVK, - ...toJson_RolloutProps(resolved), - }; - } -} - -/** - * @schema Rollout - */ -export interface RolloutProps { - /** - * @schema Rollout#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * @schema Rollout#spec - */ - readonly spec: RolloutSpec; - -} - -/** - * Converts an object of type 'RolloutProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutProps(obj: RolloutProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_RolloutSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpec - */ -export interface RolloutSpec { - /** - * @schema RolloutSpec#analysis - */ - readonly analysis?: RolloutSpecAnalysis; - - /** - * @schema RolloutSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - - /** - * @schema RolloutSpec#paused - */ - readonly paused?: boolean; - - /** - * @schema RolloutSpec#progressDeadlineAbort - */ - readonly progressDeadlineAbort?: boolean; - - /** - * @schema RolloutSpec#progressDeadlineSeconds - */ - readonly progressDeadlineSeconds?: number; - - /** - * @schema RolloutSpec#replicas - */ - readonly replicas?: number; - - /** - * @schema RolloutSpec#restartAt - */ - readonly restartAt?: Date; - - /** - * @schema RolloutSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - - /** - * @schema RolloutSpec#rollbackWindow - */ - readonly rollbackWindow?: RolloutSpecRollbackWindow; - - /** - * @schema RolloutSpec#selector - */ - readonly selector?: RolloutSpecSelector; - - /** - * @schema RolloutSpec#strategy - */ - readonly strategy?: RolloutSpecStrategy; - - /** - * @schema RolloutSpec#template - */ - readonly template?: RolloutSpecTemplate; - - /** - * @schema RolloutSpec#workloadRef - */ - readonly workloadRef?: RolloutSpecWorkloadRef; - -} - -/** - * Converts an object of type 'RolloutSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpec(obj: RolloutSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analysis': toJson_RolloutSpecAnalysis(obj.analysis), - 'minReadySeconds': obj.minReadySeconds, - 'paused': obj.paused, - 'progressDeadlineAbort': obj.progressDeadlineAbort, - 'progressDeadlineSeconds': obj.progressDeadlineSeconds, - 'replicas': obj.replicas, - 'restartAt': obj.restartAt?.toISOString(), - 'revisionHistoryLimit': obj.revisionHistoryLimit, - 'rollbackWindow': toJson_RolloutSpecRollbackWindow(obj.rollbackWindow), - 'selector': toJson_RolloutSpecSelector(obj.selector), - 'strategy': toJson_RolloutSpecStrategy(obj.strategy), - 'template': toJson_RolloutSpecTemplate(obj.template), - 'workloadRef': toJson_RolloutSpecWorkloadRef(obj.workloadRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecAnalysis - */ -export interface RolloutSpecAnalysis { - /** - * @schema RolloutSpecAnalysis#successfulRunHistoryLimit - */ - readonly successfulRunHistoryLimit?: number; - - /** - * @schema RolloutSpecAnalysis#unsuccessfulRunHistoryLimit - */ - readonly unsuccessfulRunHistoryLimit?: number; - -} - -/** - * Converts an object of type 'RolloutSpecAnalysis' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecAnalysis(obj: RolloutSpecAnalysis | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'successfulRunHistoryLimit': obj.successfulRunHistoryLimit, - 'unsuccessfulRunHistoryLimit': obj.unsuccessfulRunHistoryLimit, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecRollbackWindow - */ -export interface RolloutSpecRollbackWindow { - /** - * @schema RolloutSpecRollbackWindow#revisions - */ - readonly revisions?: number; - -} - -/** - * Converts an object of type 'RolloutSpecRollbackWindow' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecRollbackWindow(obj: RolloutSpecRollbackWindow | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'revisions': obj.revisions, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecSelector - */ -export interface RolloutSpecSelector { - /** - * @schema RolloutSpecSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecSelector(obj: RolloutSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategy - */ -export interface RolloutSpecStrategy { - /** - * @schema RolloutSpecStrategy#blueGreen - */ - readonly blueGreen?: RolloutSpecStrategyBlueGreen; - - /** - * @schema RolloutSpecStrategy#canary - */ - readonly canary?: RolloutSpecStrategyCanary; - -} - -/** - * Converts an object of type 'RolloutSpecStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategy(obj: RolloutSpecStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'blueGreen': toJson_RolloutSpecStrategyBlueGreen(obj.blueGreen), - 'canary': toJson_RolloutSpecStrategyCanary(obj.canary), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplate - */ -export interface RolloutSpecTemplate { - /** - * @schema RolloutSpecTemplate#metadata - */ - readonly metadata?: RolloutSpecTemplateMetadata; - - /** - * @schema RolloutSpecTemplate#spec - */ - readonly spec?: RolloutSpecTemplateSpec; - -} - -/** - * Converts an object of type 'RolloutSpecTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplate(obj: RolloutSpecTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_RolloutSpecTemplateMetadata(obj.metadata), - 'spec': toJson_RolloutSpecTemplateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecWorkloadRef - */ -export interface RolloutSpecWorkloadRef { - /** - * @schema RolloutSpecWorkloadRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema RolloutSpecWorkloadRef#kind - */ - readonly kind?: string; - - /** - * @schema RolloutSpecWorkloadRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'RolloutSpecWorkloadRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecWorkloadRef(obj: RolloutSpecWorkloadRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecSelectorMatchExpressions - */ -export interface RolloutSpecSelectorMatchExpressions { - /** - * @schema RolloutSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecSelectorMatchExpressions(obj: RolloutSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreen - */ -export interface RolloutSpecStrategyBlueGreen { - /** - * @schema RolloutSpecStrategyBlueGreen#abortScaleDownDelaySeconds - */ - readonly abortScaleDownDelaySeconds?: number; - - /** - * @schema RolloutSpecStrategyBlueGreen#activeMetadata - */ - readonly activeMetadata?: RolloutSpecStrategyBlueGreenActiveMetadata; - - /** - * @schema RolloutSpecStrategyBlueGreen#activeService - */ - readonly activeService: string; - - /** - * @schema RolloutSpecStrategyBlueGreen#antiAffinity - */ - readonly antiAffinity?: RolloutSpecStrategyBlueGreenAntiAffinity; - - /** - * @schema RolloutSpecStrategyBlueGreen#autoPromotionEnabled - */ - readonly autoPromotionEnabled?: boolean; - - /** - * @schema RolloutSpecStrategyBlueGreen#autoPromotionSeconds - */ - readonly autoPromotionSeconds?: number; - - /** - * @schema RolloutSpecStrategyBlueGreen#maxUnavailable - */ - readonly maxUnavailable?: RolloutSpecStrategyBlueGreenMaxUnavailable; - - /** - * @schema RolloutSpecStrategyBlueGreen#postPromotionAnalysis - */ - readonly postPromotionAnalysis?: RolloutSpecStrategyBlueGreenPostPromotionAnalysis; - - /** - * @schema RolloutSpecStrategyBlueGreen#prePromotionAnalysis - */ - readonly prePromotionAnalysis?: RolloutSpecStrategyBlueGreenPrePromotionAnalysis; - - /** - * @schema RolloutSpecStrategyBlueGreen#previewMetadata - */ - readonly previewMetadata?: RolloutSpecStrategyBlueGreenPreviewMetadata; - - /** - * @schema RolloutSpecStrategyBlueGreen#previewReplicaCount - */ - readonly previewReplicaCount?: number; - - /** - * @schema RolloutSpecStrategyBlueGreen#previewService - */ - readonly previewService?: string; - - /** - * @schema RolloutSpecStrategyBlueGreen#scaleDownDelayRevisionLimit - */ - readonly scaleDownDelayRevisionLimit?: number; - - /** - * @schema RolloutSpecStrategyBlueGreen#scaleDownDelaySeconds - */ - readonly scaleDownDelaySeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreen' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreen(obj: RolloutSpecStrategyBlueGreen | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'abortScaleDownDelaySeconds': obj.abortScaleDownDelaySeconds, - 'activeMetadata': toJson_RolloutSpecStrategyBlueGreenActiveMetadata(obj.activeMetadata), - 'activeService': obj.activeService, - 'antiAffinity': toJson_RolloutSpecStrategyBlueGreenAntiAffinity(obj.antiAffinity), - 'autoPromotionEnabled': obj.autoPromotionEnabled, - 'autoPromotionSeconds': obj.autoPromotionSeconds, - 'maxUnavailable': obj.maxUnavailable?.value, - 'postPromotionAnalysis': toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysis(obj.postPromotionAnalysis), - 'prePromotionAnalysis': toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysis(obj.prePromotionAnalysis), - 'previewMetadata': toJson_RolloutSpecStrategyBlueGreenPreviewMetadata(obj.previewMetadata), - 'previewReplicaCount': obj.previewReplicaCount, - 'previewService': obj.previewService, - 'scaleDownDelayRevisionLimit': obj.scaleDownDelayRevisionLimit, - 'scaleDownDelaySeconds': obj.scaleDownDelaySeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanary - */ -export interface RolloutSpecStrategyCanary { - /** - * @schema RolloutSpecStrategyCanary#abortScaleDownDelaySeconds - */ - readonly abortScaleDownDelaySeconds?: number; - - /** - * @schema RolloutSpecStrategyCanary#analysis - */ - readonly analysis?: RolloutSpecStrategyCanaryAnalysis; - - /** - * @schema RolloutSpecStrategyCanary#antiAffinity - */ - readonly antiAffinity?: RolloutSpecStrategyCanaryAntiAffinity; - - /** - * @schema RolloutSpecStrategyCanary#canaryMetadata - */ - readonly canaryMetadata?: RolloutSpecStrategyCanaryCanaryMetadata; - - /** - * @schema RolloutSpecStrategyCanary#canaryService - */ - readonly canaryService?: string; - - /** - * @schema RolloutSpecStrategyCanary#dynamicStableScale - */ - readonly dynamicStableScale?: boolean; - - /** - * @schema RolloutSpecStrategyCanary#maxSurge - */ - readonly maxSurge?: RolloutSpecStrategyCanaryMaxSurge; - - /** - * @schema RolloutSpecStrategyCanary#maxUnavailable - */ - readonly maxUnavailable?: RolloutSpecStrategyCanaryMaxUnavailable; - - /** - * @schema RolloutSpecStrategyCanary#minPodsPerReplicaSet - */ - readonly minPodsPerReplicaSet?: number; - - /** - * @schema RolloutSpecStrategyCanary#pingPong - */ - readonly pingPong?: RolloutSpecStrategyCanaryPingPong; - - /** - * @schema RolloutSpecStrategyCanary#scaleDownDelayRevisionLimit - */ - readonly scaleDownDelayRevisionLimit?: number; - - /** - * @schema RolloutSpecStrategyCanary#scaleDownDelaySeconds - */ - readonly scaleDownDelaySeconds?: number; - - /** - * @schema RolloutSpecStrategyCanary#stableMetadata - */ - readonly stableMetadata?: RolloutSpecStrategyCanaryStableMetadata; - - /** - * @schema RolloutSpecStrategyCanary#stableService - */ - readonly stableService?: string; - - /** - * @schema RolloutSpecStrategyCanary#steps - */ - readonly steps?: RolloutSpecStrategyCanarySteps[]; - - /** - * @schema RolloutSpecStrategyCanary#trafficRouting - */ - readonly trafficRouting?: RolloutSpecStrategyCanaryTrafficRouting; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanary' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanary(obj: RolloutSpecStrategyCanary | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'abortScaleDownDelaySeconds': obj.abortScaleDownDelaySeconds, - 'analysis': toJson_RolloutSpecStrategyCanaryAnalysis(obj.analysis), - 'antiAffinity': toJson_RolloutSpecStrategyCanaryAntiAffinity(obj.antiAffinity), - 'canaryMetadata': toJson_RolloutSpecStrategyCanaryCanaryMetadata(obj.canaryMetadata), - 'canaryService': obj.canaryService, - 'dynamicStableScale': obj.dynamicStableScale, - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - 'minPodsPerReplicaSet': obj.minPodsPerReplicaSet, - 'pingPong': toJson_RolloutSpecStrategyCanaryPingPong(obj.pingPong), - 'scaleDownDelayRevisionLimit': obj.scaleDownDelayRevisionLimit, - 'scaleDownDelaySeconds': obj.scaleDownDelaySeconds, - 'stableMetadata': toJson_RolloutSpecStrategyCanaryStableMetadata(obj.stableMetadata), - 'stableService': obj.stableService, - 'steps': obj.steps?.map(y => toJson_RolloutSpecStrategyCanarySteps(y)), - 'trafficRouting': toJson_RolloutSpecStrategyCanaryTrafficRouting(obj.trafficRouting), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateMetadata - */ -export interface RolloutSpecTemplateMetadata { - /** - * @schema RolloutSpecTemplateMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecTemplateMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateMetadata(obj: RolloutSpecTemplateMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpec - */ -export interface RolloutSpecTemplateSpec { - /** - * @schema RolloutSpecTemplateSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpec#affinity - */ - readonly affinity?: RolloutSpecTemplateSpecAffinity; - - /** - * @schema RolloutSpecTemplateSpec#automountServiceAccountToken - */ - readonly automountServiceAccountToken?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#containers - */ - readonly containers: RolloutSpecTemplateSpecContainers[]; - - /** - * @schema RolloutSpecTemplateSpec#dnsConfig - */ - readonly dnsConfig?: RolloutSpecTemplateSpecDnsConfig; - - /** - * @schema RolloutSpecTemplateSpec#dnsPolicy - */ - readonly dnsPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpec#enableServiceLinks - */ - readonly enableServiceLinks?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#ephemeralContainers - */ - readonly ephemeralContainers?: RolloutSpecTemplateSpecEphemeralContainers[]; - - /** - * @schema RolloutSpecTemplateSpec#hostAliases - */ - readonly hostAliases?: RolloutSpecTemplateSpecHostAliases[]; - - /** - * @schema RolloutSpecTemplateSpec#hostIPC - */ - readonly hostIpc?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#hostNetwork - */ - readonly hostNetwork?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#hostPID - */ - readonly hostPid?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#hostUsers - */ - readonly hostUsers?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#hostname - */ - readonly hostname?: string; - - /** - * @schema RolloutSpecTemplateSpec#imagePullSecrets - */ - readonly imagePullSecrets?: RolloutSpecTemplateSpecImagePullSecrets[]; - - /** - * @schema RolloutSpecTemplateSpec#initContainers - */ - readonly initContainers?: RolloutSpecTemplateSpecInitContainers[]; - - /** - * @schema RolloutSpecTemplateSpec#nodeName - */ - readonly nodeName?: string; - - /** - * @schema RolloutSpecTemplateSpec#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * @schema RolloutSpecTemplateSpec#os - */ - readonly os?: RolloutSpecTemplateSpecOs; - - /** - * @schema RolloutSpecTemplateSpec#overhead - */ - readonly overhead?: { [key: string]: RolloutSpecTemplateSpecOverhead }; - - /** - * @schema RolloutSpecTemplateSpec#preemptionPolicy - */ - readonly preemptionPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpec#priority - */ - readonly priority?: number; - - /** - * @schema RolloutSpecTemplateSpec#priorityClassName - */ - readonly priorityClassName?: string; - - /** - * @schema RolloutSpecTemplateSpec#readinessGates - */ - readonly readinessGates?: RolloutSpecTemplateSpecReadinessGates[]; - - /** - * @schema RolloutSpecTemplateSpec#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpec#runtimeClassName - */ - readonly runtimeClassName?: string; - - /** - * @schema RolloutSpecTemplateSpec#schedulerName - */ - readonly schedulerName?: string; - - /** - * @schema RolloutSpecTemplateSpec#securityContext - */ - readonly securityContext?: RolloutSpecTemplateSpecSecurityContext; - - /** - * @schema RolloutSpecTemplateSpec#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * @schema RolloutSpecTemplateSpec#serviceAccountName - */ - readonly serviceAccountName?: string; - - /** - * @schema RolloutSpecTemplateSpec#setHostnameAsFQDN - */ - readonly setHostnameAsFqdn?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#shareProcessNamespace - */ - readonly shareProcessNamespace?: boolean; - - /** - * @schema RolloutSpecTemplateSpec#subdomain - */ - readonly subdomain?: string; - - /** - * @schema RolloutSpecTemplateSpec#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpec#tolerations - */ - readonly tolerations?: RolloutSpecTemplateSpecTolerations[]; - - /** - * @schema RolloutSpecTemplateSpec#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: RolloutSpecTemplateSpecTopologySpreadConstraints[]; - - /** - * @schema RolloutSpecTemplateSpec#volumes - */ - readonly volumes?: any[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpec(obj: RolloutSpecTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'activeDeadlineSeconds': obj.activeDeadlineSeconds, - 'affinity': toJson_RolloutSpecTemplateSpecAffinity(obj.affinity), - 'automountServiceAccountToken': obj.automountServiceAccountToken, - 'containers': obj.containers?.map(y => toJson_RolloutSpecTemplateSpecContainers(y)), - 'dnsConfig': toJson_RolloutSpecTemplateSpecDnsConfig(obj.dnsConfig), - 'dnsPolicy': obj.dnsPolicy, - 'enableServiceLinks': obj.enableServiceLinks, - 'ephemeralContainers': obj.ephemeralContainers?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainers(y)), - 'hostAliases': obj.hostAliases?.map(y => toJson_RolloutSpecTemplateSpecHostAliases(y)), - 'hostIPC': obj.hostIpc, - 'hostNetwork': obj.hostNetwork, - 'hostPID': obj.hostPid, - 'hostUsers': obj.hostUsers, - 'hostname': obj.hostname, - 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_RolloutSpecTemplateSpecImagePullSecrets(y)), - 'initContainers': obj.initContainers?.map(y => toJson_RolloutSpecTemplateSpecInitContainers(y)), - 'nodeName': obj.nodeName, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'os': toJson_RolloutSpecTemplateSpecOs(obj.os), - 'overhead': ((obj.overhead) === undefined) ? undefined : (Object.entries(obj.overhead).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'preemptionPolicy': obj.preemptionPolicy, - 'priority': obj.priority, - 'priorityClassName': obj.priorityClassName, - 'readinessGates': obj.readinessGates?.map(y => toJson_RolloutSpecTemplateSpecReadinessGates(y)), - 'restartPolicy': obj.restartPolicy, - 'runtimeClassName': obj.runtimeClassName, - 'schedulerName': obj.schedulerName, - 'securityContext': toJson_RolloutSpecTemplateSpecSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'serviceAccountName': obj.serviceAccountName, - 'setHostnameAsFQDN': obj.setHostnameAsFqdn, - 'shareProcessNamespace': obj.shareProcessNamespace, - 'subdomain': obj.subdomain, - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'tolerations': obj.tolerations?.map(y => toJson_RolloutSpecTemplateSpecTolerations(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_RolloutSpecTemplateSpecTopologySpreadConstraints(y)), - 'volumes': obj.volumes?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenActiveMetadata - */ -export interface RolloutSpecStrategyBlueGreenActiveMetadata { - /** - * @schema RolloutSpecStrategyBlueGreenActiveMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyBlueGreenActiveMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenActiveMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenActiveMetadata(obj: RolloutSpecStrategyBlueGreenActiveMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenAntiAffinity - */ -export interface RolloutSpecStrategyBlueGreenAntiAffinity { - /** - * @schema RolloutSpecStrategyBlueGreenAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution; - - /** - * @schema RolloutSpecStrategyBlueGreenAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: any; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenAntiAffinity(obj: RolloutSpecStrategyBlueGreenAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': toJson_RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj.preferredDuringSchedulingIgnoredDuringExecution), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenMaxUnavailable - */ -export class RolloutSpecStrategyBlueGreenMaxUnavailable { - public static fromNumber(value: number): RolloutSpecStrategyBlueGreenMaxUnavailable { - return new RolloutSpecStrategyBlueGreenMaxUnavailable(value); - } - public static fromString(value: string): RolloutSpecStrategyBlueGreenMaxUnavailable { - return new RolloutSpecStrategyBlueGreenMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysis - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysis { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysis#analysisRunMetadata - */ - readonly analysisRunMetadata?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysis#args - */ - readonly args?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs[]; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysis#dryRun - */ - readonly dryRun?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun[]; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysis#measurementRetention - */ - readonly measurementRetention?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention[]; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysis#templates - */ - readonly templates?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysis' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysis(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysis | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analysisRunMetadata': toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata(obj.analysisRunMetadata), - 'args': obj.args?.map(y => toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs(y)), - 'dryRun': obj.dryRun?.map(y => toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun(y)), - 'measurementRetention': obj.measurementRetention?.map(y => toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention(y)), - 'templates': obj.templates?.map(y => toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysis - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysis { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysis#analysisRunMetadata - */ - readonly analysisRunMetadata?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysis#args - */ - readonly args?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs[]; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysis#dryRun - */ - readonly dryRun?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun[]; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysis#measurementRetention - */ - readonly measurementRetention?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention[]; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysis#templates - */ - readonly templates?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysis' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysis(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysis | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analysisRunMetadata': toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata(obj.analysisRunMetadata), - 'args': obj.args?.map(y => toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs(y)), - 'dryRun': obj.dryRun?.map(y => toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun(y)), - 'measurementRetention': obj.measurementRetention?.map(y => toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention(y)), - 'templates': obj.templates?.map(y => toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPreviewMetadata - */ -export interface RolloutSpecStrategyBlueGreenPreviewMetadata { - /** - * @schema RolloutSpecStrategyBlueGreenPreviewMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyBlueGreenPreviewMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPreviewMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPreviewMetadata(obj: RolloutSpecStrategyBlueGreenPreviewMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysis - */ -export interface RolloutSpecStrategyCanaryAnalysis { - /** - * @schema RolloutSpecStrategyCanaryAnalysis#analysisRunMetadata - */ - readonly analysisRunMetadata?: RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata; - - /** - * @schema RolloutSpecStrategyCanaryAnalysis#args - */ - readonly args?: RolloutSpecStrategyCanaryAnalysisArgs[]; - - /** - * @schema RolloutSpecStrategyCanaryAnalysis#dryRun - */ - readonly dryRun?: RolloutSpecStrategyCanaryAnalysisDryRun[]; - - /** - * @schema RolloutSpecStrategyCanaryAnalysis#measurementRetention - */ - readonly measurementRetention?: RolloutSpecStrategyCanaryAnalysisMeasurementRetention[]; - - /** - * @schema RolloutSpecStrategyCanaryAnalysis#startingStep - */ - readonly startingStep?: number; - - /** - * @schema RolloutSpecStrategyCanaryAnalysis#templates - */ - readonly templates?: RolloutSpecStrategyCanaryAnalysisTemplates[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysis' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysis(obj: RolloutSpecStrategyCanaryAnalysis | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analysisRunMetadata': toJson_RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata(obj.analysisRunMetadata), - 'args': obj.args?.map(y => toJson_RolloutSpecStrategyCanaryAnalysisArgs(y)), - 'dryRun': obj.dryRun?.map(y => toJson_RolloutSpecStrategyCanaryAnalysisDryRun(y)), - 'measurementRetention': obj.measurementRetention?.map(y => toJson_RolloutSpecStrategyCanaryAnalysisMeasurementRetention(y)), - 'startingStep': obj.startingStep, - 'templates': obj.templates?.map(y => toJson_RolloutSpecStrategyCanaryAnalysisTemplates(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAntiAffinity - */ -export interface RolloutSpecStrategyCanaryAntiAffinity { - /** - * @schema RolloutSpecStrategyCanaryAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution; - - /** - * @schema RolloutSpecStrategyCanaryAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: any; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAntiAffinity(obj: RolloutSpecStrategyCanaryAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': toJson_RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj.preferredDuringSchedulingIgnoredDuringExecution), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryCanaryMetadata - */ -export interface RolloutSpecStrategyCanaryCanaryMetadata { - /** - * @schema RolloutSpecStrategyCanaryCanaryMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyCanaryCanaryMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryCanaryMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryCanaryMetadata(obj: RolloutSpecStrategyCanaryCanaryMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryMaxSurge - */ -export class RolloutSpecStrategyCanaryMaxSurge { - public static fromNumber(value: number): RolloutSpecStrategyCanaryMaxSurge { - return new RolloutSpecStrategyCanaryMaxSurge(value); - } - public static fromString(value: string): RolloutSpecStrategyCanaryMaxSurge { - return new RolloutSpecStrategyCanaryMaxSurge(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecStrategyCanaryMaxUnavailable - */ -export class RolloutSpecStrategyCanaryMaxUnavailable { - public static fromNumber(value: number): RolloutSpecStrategyCanaryMaxUnavailable { - return new RolloutSpecStrategyCanaryMaxUnavailable(value); - } - public static fromString(value: string): RolloutSpecStrategyCanaryMaxUnavailable { - return new RolloutSpecStrategyCanaryMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecStrategyCanaryPingPong - */ -export interface RolloutSpecStrategyCanaryPingPong { - /** - * @schema RolloutSpecStrategyCanaryPingPong#pingService - */ - readonly pingService: string; - - /** - * @schema RolloutSpecStrategyCanaryPingPong#pongService - */ - readonly pongService: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryPingPong' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryPingPong(obj: RolloutSpecStrategyCanaryPingPong | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'pingService': obj.pingService, - 'pongService': obj.pongService, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStableMetadata - */ -export interface RolloutSpecStrategyCanaryStableMetadata { - /** - * @schema RolloutSpecStrategyCanaryStableMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyCanaryStableMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStableMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStableMetadata(obj: RolloutSpecStrategyCanaryStableMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanarySteps - */ -export interface RolloutSpecStrategyCanarySteps { - /** - * @schema RolloutSpecStrategyCanarySteps#analysis - */ - readonly analysis?: RolloutSpecStrategyCanaryStepsAnalysis; - - /** - * @schema RolloutSpecStrategyCanarySteps#experiment - */ - readonly experiment?: RolloutSpecStrategyCanaryStepsExperiment; - - /** - * @schema RolloutSpecStrategyCanarySteps#pause - */ - readonly pause?: RolloutSpecStrategyCanaryStepsPause; - - /** - * @schema RolloutSpecStrategyCanarySteps#setCanaryScale - */ - readonly setCanaryScale?: RolloutSpecStrategyCanaryStepsSetCanaryScale; - - /** - * @schema RolloutSpecStrategyCanarySteps#setHeaderRoute - */ - readonly setHeaderRoute?: RolloutSpecStrategyCanaryStepsSetHeaderRoute; - - /** - * @schema RolloutSpecStrategyCanarySteps#setMirrorRoute - */ - readonly setMirrorRoute?: RolloutSpecStrategyCanaryStepsSetMirrorRoute; - - /** - * @schema RolloutSpecStrategyCanarySteps#setWeight - */ - readonly setWeight?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanarySteps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanarySteps(obj: RolloutSpecStrategyCanarySteps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analysis': toJson_RolloutSpecStrategyCanaryStepsAnalysis(obj.analysis), - 'experiment': toJson_RolloutSpecStrategyCanaryStepsExperiment(obj.experiment), - 'pause': toJson_RolloutSpecStrategyCanaryStepsPause(obj.pause), - 'setCanaryScale': toJson_RolloutSpecStrategyCanaryStepsSetCanaryScale(obj.setCanaryScale), - 'setHeaderRoute': toJson_RolloutSpecStrategyCanaryStepsSetHeaderRoute(obj.setHeaderRoute), - 'setMirrorRoute': toJson_RolloutSpecStrategyCanaryStepsSetMirrorRoute(obj.setMirrorRoute), - 'setWeight': obj.setWeight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRouting - */ -export interface RolloutSpecStrategyCanaryTrafficRouting { - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#alb - */ - readonly alb?: RolloutSpecStrategyCanaryTrafficRoutingAlb; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#ambassador - */ - readonly ambassador?: RolloutSpecStrategyCanaryTrafficRoutingAmbassador; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#apisix - */ - readonly apisix?: RolloutSpecStrategyCanaryTrafficRoutingApisix; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#appMesh - */ - readonly appMesh?: RolloutSpecStrategyCanaryTrafficRoutingAppMesh; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#istio - */ - readonly istio?: RolloutSpecStrategyCanaryTrafficRoutingIstio; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#managedRoutes - */ - readonly managedRoutes?: RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes[]; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#nginx - */ - readonly nginx?: RolloutSpecStrategyCanaryTrafficRoutingNginx; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#plugins - */ - readonly plugins?: any; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#smi - */ - readonly smi?: RolloutSpecStrategyCanaryTrafficRoutingSmi; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRouting#traefik - */ - readonly traefik?: RolloutSpecStrategyCanaryTrafficRoutingTraefik; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRouting' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRouting(obj: RolloutSpecStrategyCanaryTrafficRouting | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'alb': toJson_RolloutSpecStrategyCanaryTrafficRoutingAlb(obj.alb), - 'ambassador': toJson_RolloutSpecStrategyCanaryTrafficRoutingAmbassador(obj.ambassador), - 'apisix': toJson_RolloutSpecStrategyCanaryTrafficRoutingApisix(obj.apisix), - 'appMesh': toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMesh(obj.appMesh), - 'istio': toJson_RolloutSpecStrategyCanaryTrafficRoutingIstio(obj.istio), - 'managedRoutes': obj.managedRoutes?.map(y => toJson_RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes(y)), - 'nginx': toJson_RolloutSpecStrategyCanaryTrafficRoutingNginx(obj.nginx), - 'plugins': obj.plugins, - 'smi': toJson_RolloutSpecStrategyCanaryTrafficRoutingSmi(obj.smi), - 'traefik': toJson_RolloutSpecStrategyCanaryTrafficRoutingTraefik(obj.traefik), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinity - */ -export interface RolloutSpecTemplateSpecAffinity { - /** - * @schema RolloutSpecTemplateSpecAffinity#nodeAffinity - */ - readonly nodeAffinity?: RolloutSpecTemplateSpecAffinityNodeAffinity; - - /** - * @schema RolloutSpecTemplateSpecAffinity#podAffinity - */ - readonly podAffinity?: RolloutSpecTemplateSpecAffinityPodAffinity; - - /** - * @schema RolloutSpecTemplateSpecAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: RolloutSpecTemplateSpecAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinity(obj: RolloutSpecTemplateSpecAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_RolloutSpecTemplateSpecAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_RolloutSpecTemplateSpecAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainers - */ -export interface RolloutSpecTemplateSpecContainers { - /** - * @schema RolloutSpecTemplateSpecContainers#args - */ - readonly args?: string[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#command - */ - readonly command?: string[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#env - */ - readonly env?: RolloutSpecTemplateSpecContainersEnv[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#envFrom - */ - readonly envFrom?: RolloutSpecTemplateSpecContainersEnvFrom[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#image - */ - readonly image?: string; - - /** - * @schema RolloutSpecTemplateSpecContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecContainers#lifecycle - */ - readonly lifecycle?: RolloutSpecTemplateSpecContainersLifecycle; - - /** - * @schema RolloutSpecTemplateSpecContainers#livenessProbe - */ - readonly livenessProbe?: RolloutSpecTemplateSpecContainersLivenessProbe; - - /** - * @schema RolloutSpecTemplateSpecContainers#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainers#ports - */ - readonly ports?: RolloutSpecTemplateSpecContainersPorts[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#readinessProbe - */ - readonly readinessProbe?: RolloutSpecTemplateSpecContainersReadinessProbe; - - /** - * @schema RolloutSpecTemplateSpecContainers#resources - */ - readonly resources?: RolloutSpecTemplateSpecContainersResources; - - /** - * @schema RolloutSpecTemplateSpecContainers#securityContext - */ - readonly securityContext?: RolloutSpecTemplateSpecContainersSecurityContext; - - /** - * @schema RolloutSpecTemplateSpecContainers#startupProbe - */ - readonly startupProbe?: RolloutSpecTemplateSpecContainersStartupProbe; - - /** - * @schema RolloutSpecTemplateSpecContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema RolloutSpecTemplateSpecContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainers#volumeDevices - */ - readonly volumeDevices?: RolloutSpecTemplateSpecContainersVolumeDevices[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#volumeMounts - */ - readonly volumeMounts?: RolloutSpecTemplateSpecContainersVolumeMounts[]; - - /** - * @schema RolloutSpecTemplateSpecContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainers(obj: RolloutSpecTemplateSpecContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_RolloutSpecTemplateSpecContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_RolloutSpecTemplateSpecContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_RolloutSpecTemplateSpecContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_RolloutSpecTemplateSpecContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_RolloutSpecTemplateSpecContainersPorts(y)), - 'readinessProbe': toJson_RolloutSpecTemplateSpecContainersReadinessProbe(obj.readinessProbe), - 'resources': toJson_RolloutSpecTemplateSpecContainersResources(obj.resources), - 'securityContext': toJson_RolloutSpecTemplateSpecContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_RolloutSpecTemplateSpecContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_RolloutSpecTemplateSpecContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_RolloutSpecTemplateSpecContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecDnsConfig - */ -export interface RolloutSpecTemplateSpecDnsConfig { - /** - * @schema RolloutSpecTemplateSpecDnsConfig#nameservers - */ - readonly nameservers?: string[]; - - /** - * @schema RolloutSpecTemplateSpecDnsConfig#options - */ - readonly options?: RolloutSpecTemplateSpecDnsConfigOptions[]; - - /** - * @schema RolloutSpecTemplateSpecDnsConfig#searches - */ - readonly searches?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecDnsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecDnsConfig(obj: RolloutSpecTemplateSpecDnsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nameservers': obj.nameservers?.map(y => y), - 'options': obj.options?.map(y => toJson_RolloutSpecTemplateSpecDnsConfigOptions(y)), - 'searches': obj.searches?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainers - */ -export interface RolloutSpecTemplateSpecEphemeralContainers { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#args - */ - readonly args?: string[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#command - */ - readonly command?: string[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#env - */ - readonly env?: RolloutSpecTemplateSpecEphemeralContainersEnv[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#envFrom - */ - readonly envFrom?: RolloutSpecTemplateSpecEphemeralContainersEnvFrom[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#image - */ - readonly image?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#lifecycle - */ - readonly lifecycle?: RolloutSpecTemplateSpecEphemeralContainersLifecycle; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#livenessProbe - */ - readonly livenessProbe?: RolloutSpecTemplateSpecEphemeralContainersLivenessProbe; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#ports - */ - readonly ports?: RolloutSpecTemplateSpecEphemeralContainersPorts[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#readinessProbe - */ - readonly readinessProbe?: RolloutSpecTemplateSpecEphemeralContainersReadinessProbe; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#resources - */ - readonly resources?: RolloutSpecTemplateSpecEphemeralContainersResources; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#securityContext - */ - readonly securityContext?: RolloutSpecTemplateSpecEphemeralContainersSecurityContext; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#startupProbe - */ - readonly startupProbe?: RolloutSpecTemplateSpecEphemeralContainersStartupProbe; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#targetContainerName - */ - readonly targetContainerName?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#volumeDevices - */ - readonly volumeDevices?: RolloutSpecTemplateSpecEphemeralContainersVolumeDevices[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#volumeMounts - */ - readonly volumeMounts?: RolloutSpecTemplateSpecEphemeralContainersVolumeMounts[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainers(obj: RolloutSpecTemplateSpecEphemeralContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersPorts(y)), - 'readinessProbe': toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbe(obj.readinessProbe), - 'resources': toJson_RolloutSpecTemplateSpecEphemeralContainersResources(obj.resources), - 'securityContext': toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'targetContainerName': obj.targetContainerName, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecHostAliases - */ -export interface RolloutSpecTemplateSpecHostAliases { - /** - * @schema RolloutSpecTemplateSpecHostAliases#hostnames - */ - readonly hostnames?: string[]; - - /** - * @schema RolloutSpecTemplateSpecHostAliases#ip - */ - readonly ip?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecHostAliases' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecHostAliases(obj: RolloutSpecTemplateSpecHostAliases | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hostnames': obj.hostnames?.map(y => y), - 'ip': obj.ip, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecImagePullSecrets - */ -export interface RolloutSpecTemplateSpecImagePullSecrets { - /** - * @schema RolloutSpecTemplateSpecImagePullSecrets#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecImagePullSecrets' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecImagePullSecrets(obj: RolloutSpecTemplateSpecImagePullSecrets | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainers - */ -export interface RolloutSpecTemplateSpecInitContainers { - /** - * @schema RolloutSpecTemplateSpecInitContainers#args - */ - readonly args?: string[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#command - */ - readonly command?: string[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#env - */ - readonly env?: RolloutSpecTemplateSpecInitContainersEnv[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#envFrom - */ - readonly envFrom?: RolloutSpecTemplateSpecInitContainersEnvFrom[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#image - */ - readonly image?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#lifecycle - */ - readonly lifecycle?: RolloutSpecTemplateSpecInitContainersLifecycle; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#livenessProbe - */ - readonly livenessProbe?: RolloutSpecTemplateSpecInitContainersLivenessProbe; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#ports - */ - readonly ports?: RolloutSpecTemplateSpecInitContainersPorts[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#readinessProbe - */ - readonly readinessProbe?: RolloutSpecTemplateSpecInitContainersReadinessProbe; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#resources - */ - readonly resources?: RolloutSpecTemplateSpecInitContainersResources; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#securityContext - */ - readonly securityContext?: RolloutSpecTemplateSpecInitContainersSecurityContext; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#startupProbe - */ - readonly startupProbe?: RolloutSpecTemplateSpecInitContainersStartupProbe; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#volumeDevices - */ - readonly volumeDevices?: RolloutSpecTemplateSpecInitContainersVolumeDevices[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#volumeMounts - */ - readonly volumeMounts?: RolloutSpecTemplateSpecInitContainersVolumeMounts[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainers(obj: RolloutSpecTemplateSpecInitContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_RolloutSpecTemplateSpecInitContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_RolloutSpecTemplateSpecInitContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_RolloutSpecTemplateSpecInitContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_RolloutSpecTemplateSpecInitContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_RolloutSpecTemplateSpecInitContainersPorts(y)), - 'readinessProbe': toJson_RolloutSpecTemplateSpecInitContainersReadinessProbe(obj.readinessProbe), - 'resources': toJson_RolloutSpecTemplateSpecInitContainersResources(obj.resources), - 'securityContext': toJson_RolloutSpecTemplateSpecInitContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_RolloutSpecTemplateSpecInitContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_RolloutSpecTemplateSpecInitContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_RolloutSpecTemplateSpecInitContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecOs - */ -export interface RolloutSpecTemplateSpecOs { - /** - * @schema RolloutSpecTemplateSpecOs#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecOs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecOs(obj: RolloutSpecTemplateSpecOs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecOverhead - */ -export class RolloutSpecTemplateSpecOverhead { - public static fromNumber(value: number): RolloutSpecTemplateSpecOverhead { - return new RolloutSpecTemplateSpecOverhead(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecOverhead { - return new RolloutSpecTemplateSpecOverhead(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecReadinessGates - */ -export interface RolloutSpecTemplateSpecReadinessGates { - /** - * @schema RolloutSpecTemplateSpecReadinessGates#conditionType - */ - readonly conditionType: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecReadinessGates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecReadinessGates(obj: RolloutSpecTemplateSpecReadinessGates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'conditionType': obj.conditionType, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecSecurityContext - */ -export interface RolloutSpecTemplateSpecSecurityContext { - /** - * @schema RolloutSpecTemplateSpecSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: RolloutSpecTemplateSpecSecurityContextSeLinuxOptions; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#seccompProfile - */ - readonly seccompProfile?: RolloutSpecTemplateSpecSecurityContextSeccompProfile; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#sysctls - */ - readonly sysctls?: RolloutSpecTemplateSpecSecurityContextSysctls[]; - - /** - * @schema RolloutSpecTemplateSpecSecurityContext#windowsOptions - */ - readonly windowsOptions?: RolloutSpecTemplateSpecSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecSecurityContext(obj: RolloutSpecTemplateSpecSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_RolloutSpecTemplateSpecSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_RolloutSpecTemplateSpecSecurityContextSeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_RolloutSpecTemplateSpecSecurityContextSysctls(y)), - 'windowsOptions': toJson_RolloutSpecTemplateSpecSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecTolerations - */ -export interface RolloutSpecTemplateSpecTolerations { - /** - * @schema RolloutSpecTemplateSpecTolerations#effect - */ - readonly effect?: string; - - /** - * @schema RolloutSpecTemplateSpecTolerations#key - */ - readonly key?: string; - - /** - * @schema RolloutSpecTemplateSpecTolerations#operator - */ - readonly operator?: string; - - /** - * @schema RolloutSpecTemplateSpecTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecTolerations(obj: RolloutSpecTemplateSpecTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints - */ -export interface RolloutSpecTemplateSpecTopologySpreadConstraints { - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#labelSelector - */ - readonly labelSelector?: RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#maxSkew - */ - readonly maxSkew: number; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#minDomains - */ - readonly minDomains?: number; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#topologyKey - */ - readonly topologyKey: string; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraints#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecTopologySpreadConstraints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecTopologySpreadConstraints(obj: RolloutSpecTemplateSpecTopologySpreadConstraints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecStrategyBlueGreenAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisAnalysisRunMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs#valueFrom - */ - readonly valueFrom?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisDryRun | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention#limit - */ - readonly limit: number; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisMeasurementRetention | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limit': obj.limit, - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates#templateName - */ - readonly templateName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterScope': obj.clusterScope, - 'templateName': obj.templateName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisAnalysisRunMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs#valueFrom - */ - readonly valueFrom?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisDryRun | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention#limit - */ - readonly limit: number; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisMeasurementRetention | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limit': obj.limit, - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates#templateName - */ - readonly templateName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterScope': obj.clusterScope, - 'templateName': obj.templateName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata - */ -export interface RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata { - /** - * @schema RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata(obj: RolloutSpecStrategyCanaryAnalysisAnalysisRunMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisArgs - */ -export interface RolloutSpecStrategyCanaryAnalysisArgs { - /** - * @schema RolloutSpecStrategyCanaryAnalysisArgs#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryAnalysisArgs#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecStrategyCanaryAnalysisArgs#valueFrom - */ - readonly valueFrom?: RolloutSpecStrategyCanaryAnalysisArgsValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisArgs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisArgs(obj: RolloutSpecStrategyCanaryAnalysisArgs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecStrategyCanaryAnalysisArgsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisDryRun - */ -export interface RolloutSpecStrategyCanaryAnalysisDryRun { - /** - * @schema RolloutSpecStrategyCanaryAnalysisDryRun#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisDryRun' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisDryRun(obj: RolloutSpecStrategyCanaryAnalysisDryRun | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisMeasurementRetention - */ -export interface RolloutSpecStrategyCanaryAnalysisMeasurementRetention { - /** - * @schema RolloutSpecStrategyCanaryAnalysisMeasurementRetention#limit - */ - readonly limit: number; - - /** - * @schema RolloutSpecStrategyCanaryAnalysisMeasurementRetention#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisMeasurementRetention' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisMeasurementRetention(obj: RolloutSpecStrategyCanaryAnalysisMeasurementRetention | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limit': obj.limit, - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisTemplates - */ -export interface RolloutSpecStrategyCanaryAnalysisTemplates { - /** - * @schema RolloutSpecStrategyCanaryAnalysisTemplates#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * @schema RolloutSpecStrategyCanaryAnalysisTemplates#templateName - */ - readonly templateName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisTemplates(obj: RolloutSpecStrategyCanaryAnalysisTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterScope': obj.clusterScope, - 'templateName': obj.templateName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecStrategyCanaryAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysis - */ -export interface RolloutSpecStrategyCanaryStepsAnalysis { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysis#analysisRunMetadata - */ - readonly analysisRunMetadata?: RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysis#args - */ - readonly args?: RolloutSpecStrategyCanaryStepsAnalysisArgs[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysis#dryRun - */ - readonly dryRun?: RolloutSpecStrategyCanaryStepsAnalysisDryRun[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysis#measurementRetention - */ - readonly measurementRetention?: RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysis#templates - */ - readonly templates?: RolloutSpecStrategyCanaryStepsAnalysisTemplates[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysis' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysis(obj: RolloutSpecStrategyCanaryStepsAnalysis | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analysisRunMetadata': toJson_RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata(obj.analysisRunMetadata), - 'args': obj.args?.map(y => toJson_RolloutSpecStrategyCanaryStepsAnalysisArgs(y)), - 'dryRun': obj.dryRun?.map(y => toJson_RolloutSpecStrategyCanaryStepsAnalysisDryRun(y)), - 'measurementRetention': obj.measurementRetention?.map(y => toJson_RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention(y)), - 'templates': obj.templates?.map(y => toJson_RolloutSpecStrategyCanaryStepsAnalysisTemplates(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperiment - */ -export interface RolloutSpecStrategyCanaryStepsExperiment { - /** - * @schema RolloutSpecStrategyCanaryStepsExperiment#analyses - */ - readonly analyses?: RolloutSpecStrategyCanaryStepsExperimentAnalyses[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperiment#duration - */ - readonly duration?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperiment#templates - */ - readonly templates: RolloutSpecStrategyCanaryStepsExperimentTemplates[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperiment' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperiment(obj: RolloutSpecStrategyCanaryStepsExperiment | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'analyses': obj.analyses?.map(y => toJson_RolloutSpecStrategyCanaryStepsExperimentAnalyses(y)), - 'duration': obj.duration, - 'templates': obj.templates?.map(y => toJson_RolloutSpecStrategyCanaryStepsExperimentTemplates(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsPause - */ -export interface RolloutSpecStrategyCanaryStepsPause { - /** - * @schema RolloutSpecStrategyCanaryStepsPause#duration - */ - readonly duration?: RolloutSpecStrategyCanaryStepsPauseDuration; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsPause' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsPause(obj: RolloutSpecStrategyCanaryStepsPause | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'duration': obj.duration?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetCanaryScale - */ -export interface RolloutSpecStrategyCanaryStepsSetCanaryScale { - /** - * @schema RolloutSpecStrategyCanaryStepsSetCanaryScale#matchTrafficWeight - */ - readonly matchTrafficWeight?: boolean; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetCanaryScale#replicas - */ - readonly replicas?: number; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetCanaryScale#weight - */ - readonly weight?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetCanaryScale' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetCanaryScale(obj: RolloutSpecStrategyCanaryStepsSetCanaryScale | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchTrafficWeight': obj.matchTrafficWeight, - 'replicas': obj.replicas, - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRoute - */ -export interface RolloutSpecStrategyCanaryStepsSetHeaderRoute { - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRoute#match - */ - readonly match?: RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRoute#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetHeaderRoute' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetHeaderRoute(obj: RolloutSpecStrategyCanaryStepsSetHeaderRoute | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'match': obj.match?.map(y => toJson_RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch(y)), - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRoute - */ -export interface RolloutSpecStrategyCanaryStepsSetMirrorRoute { - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRoute#match - */ - readonly match?: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRoute#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRoute#percentage - */ - readonly percentage?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetMirrorRoute' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetMirrorRoute(obj: RolloutSpecStrategyCanaryStepsSetMirrorRoute | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'match': obj.match?.map(y => toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch(y)), - 'name': obj.name, - 'percentage': obj.percentage, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAlb { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb#annotationPrefix - */ - readonly annotationPrefix?: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb#ingress - */ - readonly ingress?: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb#ingresses - */ - readonly ingresses?: string[]; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb#rootService - */ - readonly rootService?: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb#servicePort - */ - readonly servicePort: number; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlb#stickinessConfig - */ - readonly stickinessConfig?: RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAlb' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAlb(obj: RolloutSpecStrategyCanaryTrafficRoutingAlb | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotationPrefix': obj.annotationPrefix, - 'ingress': obj.ingress, - 'ingresses': obj.ingresses?.map(y => y), - 'rootService': obj.rootService, - 'servicePort': obj.servicePort, - 'stickinessConfig': toJson_RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig(obj.stickinessConfig), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAmbassador - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAmbassador { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAmbassador#mappings - */ - readonly mappings: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAmbassador' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAmbassador(obj: RolloutSpecStrategyCanaryTrafficRoutingAmbassador | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mappings': obj.mappings?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingApisix - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingApisix { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingApisix#route - */ - readonly route?: RolloutSpecStrategyCanaryTrafficRoutingApisixRoute; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingApisix' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingApisix(obj: RolloutSpecStrategyCanaryTrafficRoutingApisix | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'route': toJson_RolloutSpecStrategyCanaryTrafficRoutingApisixRoute(obj.route), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMesh - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAppMesh { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMesh#virtualNodeGroup - */ - readonly virtualNodeGroup?: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMesh#virtualService - */ - readonly virtualService?: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAppMesh' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMesh(obj: RolloutSpecStrategyCanaryTrafficRoutingAppMesh | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'virtualNodeGroup': toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup(obj.virtualNodeGroup), - 'virtualService': toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService(obj.virtualService), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstio - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstio { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstio#destinationRule - */ - readonly destinationRule?: RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstio#virtualService - */ - readonly virtualService?: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstio#virtualServices - */ - readonly virtualServices?: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstio' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstio(obj: RolloutSpecStrategyCanaryTrafficRoutingIstio | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'destinationRule': toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule(obj.destinationRule), - 'virtualService': toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService(obj.virtualService), - 'virtualServices': obj.virtualServices?.map(y => toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes(obj: RolloutSpecStrategyCanaryTrafficRoutingManagedRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingNginx - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingNginx { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingNginx#additionalIngressAnnotations - */ - readonly additionalIngressAnnotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingNginx#annotationPrefix - */ - readonly annotationPrefix?: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingNginx#stableIngress - */ - readonly stableIngress?: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingNginx#stableIngresses - */ - readonly stableIngresses?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingNginx' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingNginx(obj: RolloutSpecStrategyCanaryTrafficRoutingNginx | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'additionalIngressAnnotations': ((obj.additionalIngressAnnotations) === undefined) ? undefined : (Object.entries(obj.additionalIngressAnnotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'annotationPrefix': obj.annotationPrefix, - 'stableIngress': obj.stableIngress, - 'stableIngresses': obj.stableIngresses?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingSmi - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingSmi { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingSmi#rootService - */ - readonly rootService?: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingSmi#trafficSplitName - */ - readonly trafficSplitName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingSmi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingSmi(obj: RolloutSpecStrategyCanaryTrafficRoutingSmi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rootService': obj.rootService, - 'trafficSplitName': obj.trafficSplitName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingTraefik - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingTraefik { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingTraefik#weightedTraefikServiceName - */ - readonly weightedTraefikServiceName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingTraefik' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingTraefik(obj: RolloutSpecStrategyCanaryTrafficRoutingTraefik | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'weightedTraefikServiceName': obj.weightedTraefikServiceName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinity - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinity { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinity(obj: RolloutSpecTemplateSpecAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinity - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinity { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinity(obj: RolloutSpecTemplateSpecAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinity - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinity { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinity(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnv - */ -export interface RolloutSpecTemplateSpecContainersEnv { - /** - * @schema RolloutSpecTemplateSpecContainersEnv#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnv#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnv#valueFrom - */ - readonly valueFrom?: RolloutSpecTemplateSpecContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnv(obj: RolloutSpecTemplateSpecContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecTemplateSpecContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvFrom - */ -export interface RolloutSpecTemplateSpecContainersEnvFrom { - /** - * @schema RolloutSpecTemplateSpecContainersEnvFrom#configMapRef - */ - readonly configMapRef?: RolloutSpecTemplateSpecContainersEnvFromConfigMapRef; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvFrom#secretRef - */ - readonly secretRef?: RolloutSpecTemplateSpecContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvFrom(obj: RolloutSpecTemplateSpecContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_RolloutSpecTemplateSpecContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_RolloutSpecTemplateSpecContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecycle - */ -export interface RolloutSpecTemplateSpecContainersLifecycle { - /** - * @schema RolloutSpecTemplateSpecContainersLifecycle#postStart - */ - readonly postStart?: RolloutSpecTemplateSpecContainersLifecyclePostStart; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecycle#preStop - */ - readonly preStop?: RolloutSpecTemplateSpecContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecycle(obj: RolloutSpecTemplateSpecContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_RolloutSpecTemplateSpecContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_RolloutSpecTemplateSpecContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe - */ -export interface RolloutSpecTemplateSpecContainersLivenessProbe { - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecContainersLivenessProbeExec; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecContainersLivenessProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecContainersLivenessProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLivenessProbe(obj: RolloutSpecTemplateSpecContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersPorts - */ -export interface RolloutSpecTemplateSpecContainersPorts { - /** - * @schema RolloutSpecTemplateSpecContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema RolloutSpecTemplateSpecContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersPorts#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersPorts(obj: RolloutSpecTemplateSpecContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe - */ -export interface RolloutSpecTemplateSpecContainersReadinessProbe { - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecContainersReadinessProbeExec; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecContainersReadinessProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecContainersReadinessProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersReadinessProbe(obj: RolloutSpecTemplateSpecContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersResources - */ -export interface RolloutSpecTemplateSpecContainersResources { - /** - * @schema RolloutSpecTemplateSpecContainersResources#limits - */ - // By default cdk8s will generate type 'any' here when it needs to be: - - // '{ [key:string]: string }' - - // I've manually updated it to guard from accidentally passing the type - // 'Quantity' to limits/requests which is what the k8s PodSpec construct expects. - // If this file is ever regenerated make sure to update this back. - readonly limits?: { [key: string]: string }; - - /** - * @schema RolloutSpecTemplateSpecContainersResources#requests - */ - readonly requests?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersResources(obj: RolloutSpecTemplateSpecContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits, - 'requests': obj.requests, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersSecurityContext - */ -export interface RolloutSpecTemplateSpecContainersSecurityContext { - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#capabilities - */ - readonly capabilities?: RolloutSpecTemplateSpecContainersSecurityContextCapabilities; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersSecurityContext(obj: RolloutSpecTemplateSpecContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_RolloutSpecTemplateSpecContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbe - */ -export interface RolloutSpecTemplateSpecContainersStartupProbe { - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecContainersStartupProbeExec; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecContainersStartupProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecContainersStartupProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecContainersStartupProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersStartupProbe(obj: RolloutSpecTemplateSpecContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersVolumeDevices - */ -export interface RolloutSpecTemplateSpecContainersVolumeDevices { - /** - * @schema RolloutSpecTemplateSpecContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema RolloutSpecTemplateSpecContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersVolumeDevices(obj: RolloutSpecTemplateSpecContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts - */ -export interface RolloutSpecTemplateSpecContainersVolumeMounts { - /** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersVolumeMounts(obj: RolloutSpecTemplateSpecContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecDnsConfigOptions - */ -export interface RolloutSpecTemplateSpecDnsConfigOptions { - /** - * @schema RolloutSpecTemplateSpecDnsConfigOptions#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecDnsConfigOptions#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecDnsConfigOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecDnsConfigOptions(obj: RolloutSpecTemplateSpecDnsConfigOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnv - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnv { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnv#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnv#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnv#valueFrom - */ - readonly valueFrom?: RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnv(obj: RolloutSpecTemplateSpecEphemeralContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFrom - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvFrom { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFrom#configMapRef - */ - readonly configMapRef?: RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFrom#secretRef - */ - readonly secretRef?: RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvFrom(obj: RolloutSpecTemplateSpecEphemeralContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecycle - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecycle { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecycle#postStart - */ - readonly postStart?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecycle#preStop - */ - readonly preStop?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecycle(obj: RolloutSpecTemplateSpecEphemeralContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLivenessProbe { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbe(obj: RolloutSpecTemplateSpecEphemeralContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersPorts - */ -export interface RolloutSpecTemplateSpecEphemeralContainersPorts { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersPorts#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersPorts(obj: RolloutSpecTemplateSpecEphemeralContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe - */ -export interface RolloutSpecTemplateSpecEphemeralContainersReadinessProbe { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbe(obj: RolloutSpecTemplateSpecEphemeralContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersResources - */ -export interface RolloutSpecTemplateSpecEphemeralContainersResources { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersResources#limits - */ - readonly limits?: any; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersResources#requests - */ - readonly requests?: any; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersResources(obj: RolloutSpecTemplateSpecEphemeralContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits, - 'requests': obj.requests, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext - */ -export interface RolloutSpecTemplateSpecEphemeralContainersSecurityContext { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#capabilities - */ - readonly capabilities?: RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContext(obj: RolloutSpecTemplateSpecEphemeralContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe - */ -export interface RolloutSpecTemplateSpecEphemeralContainersStartupProbe { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbe(obj: RolloutSpecTemplateSpecEphemeralContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeDevices - */ -export interface RolloutSpecTemplateSpecEphemeralContainersVolumeDevices { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersVolumeDevices(obj: RolloutSpecTemplateSpecEphemeralContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts - */ -export interface RolloutSpecTemplateSpecEphemeralContainersVolumeMounts { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersVolumeMounts(obj: RolloutSpecTemplateSpecEphemeralContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnv - */ -export interface RolloutSpecTemplateSpecInitContainersEnv { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnv#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnv#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnv#valueFrom - */ - readonly valueFrom?: RolloutSpecTemplateSpecInitContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnv(obj: RolloutSpecTemplateSpecInitContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecTemplateSpecInitContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvFrom - */ -export interface RolloutSpecTemplateSpecInitContainersEnvFrom { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFrom#configMapRef - */ - readonly configMapRef?: RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFrom#secretRef - */ - readonly secretRef?: RolloutSpecTemplateSpecInitContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvFrom(obj: RolloutSpecTemplateSpecInitContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_RolloutSpecTemplateSpecInitContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecycle - */ -export interface RolloutSpecTemplateSpecInitContainersLifecycle { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecycle#postStart - */ - readonly postStart?: RolloutSpecTemplateSpecInitContainersLifecyclePostStart; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecycle#preStop - */ - readonly preStop?: RolloutSpecTemplateSpecInitContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecycle(obj: RolloutSpecTemplateSpecInitContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe - */ -export interface RolloutSpecTemplateSpecInitContainersLivenessProbe { - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecInitContainersLivenessProbeExec; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLivenessProbe(obj: RolloutSpecTemplateSpecInitContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersPorts - */ -export interface RolloutSpecTemplateSpecInitContainersPorts { - /** - * @schema RolloutSpecTemplateSpecInitContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersPorts#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersPorts(obj: RolloutSpecTemplateSpecInitContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe - */ -export interface RolloutSpecTemplateSpecInitContainersReadinessProbe { - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecInitContainersReadinessProbeExec; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersReadinessProbe(obj: RolloutSpecTemplateSpecInitContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersResources - */ -export interface RolloutSpecTemplateSpecInitContainersResources { - /** - * @schema RolloutSpecTemplateSpecInitContainersResources#limits - */ - readonly limits?: any; - - /** - * @schema RolloutSpecTemplateSpecInitContainersResources#requests - */ - readonly requests?: any; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersResources(obj: RolloutSpecTemplateSpecInitContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits, - 'requests': obj.requests, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext - */ -export interface RolloutSpecTemplateSpecInitContainersSecurityContext { - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#capabilities - */ - readonly capabilities?: RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersSecurityContext(obj: RolloutSpecTemplateSpecInitContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe - */ -export interface RolloutSpecTemplateSpecInitContainersStartupProbe { - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#exec - */ - readonly exec?: RolloutSpecTemplateSpecInitContainersStartupProbeExec; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#grpc - */ - readonly grpc?: RolloutSpecTemplateSpecInitContainersStartupProbeGrpc; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersStartupProbe(obj: RolloutSpecTemplateSpecInitContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecInitContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_RolloutSpecTemplateSpecInitContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersVolumeDevices - */ -export interface RolloutSpecTemplateSpecInitContainersVolumeDevices { - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersVolumeDevices(obj: RolloutSpecTemplateSpecInitContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts - */ -export interface RolloutSpecTemplateSpecInitContainersVolumeMounts { - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersVolumeMounts(obj: RolloutSpecTemplateSpecInitContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecSecurityContextSeLinuxOptions - */ -export interface RolloutSpecTemplateSpecSecurityContextSeLinuxOptions { - /** - * @schema RolloutSpecTemplateSpecSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecSecurityContextSeLinuxOptions(obj: RolloutSpecTemplateSpecSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecSecurityContextSeccompProfile - */ -export interface RolloutSpecTemplateSpecSecurityContextSeccompProfile { - /** - * @schema RolloutSpecTemplateSpecSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecSecurityContextSeccompProfile(obj: RolloutSpecTemplateSpecSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecSecurityContextSysctls - */ -export interface RolloutSpecTemplateSpecSecurityContextSysctls { - /** - * @schema RolloutSpecTemplateSpecSecurityContextSysctls#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextSysctls#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecSecurityContextSysctls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecSecurityContextSysctls(obj: RolloutSpecTemplateSpecSecurityContextSysctls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecSecurityContextWindowsOptions - */ -export interface RolloutSpecTemplateSpecSecurityContextWindowsOptions { - /** - * @schema RolloutSpecTemplateSpecSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema RolloutSpecTemplateSpecSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecSecurityContextWindowsOptions(obj: RolloutSpecTemplateSpecSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector - */ -export interface RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector { - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector(obj: RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef; - - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom#podTemplateHashValue - */ - readonly podTemplateHashValue?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef(obj.fieldRef), - 'podTemplateHashValue': obj.podTemplateHashValue, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef; - - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom#podTemplateHashValue - */ - readonly podTemplateHashValue?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef(obj.fieldRef), - 'podTemplateHashValue': obj.podTemplateHashValue, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisArgsValueFrom - */ -export interface RolloutSpecStrategyCanaryAnalysisArgsValueFrom { - /** - * @schema RolloutSpecStrategyCanaryAnalysisArgsValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef; - - /** - * @schema RolloutSpecStrategyCanaryAnalysisArgsValueFrom#podTemplateHashValue - */ - readonly podTemplateHashValue?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisArgsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisArgsValueFrom(obj: RolloutSpecStrategyCanaryAnalysisArgsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef(obj.fieldRef), - 'podTemplateHashValue': obj.podTemplateHashValue, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata(obj: RolloutSpecStrategyCanaryStepsAnalysisAnalysisRunMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgs - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisArgs { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgs#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgs#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgs#valueFrom - */ - readonly valueFrom?: RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisArgs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisArgs(obj: RolloutSpecStrategyCanaryStepsAnalysisArgs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisDryRun - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisDryRun { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisDryRun#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisDryRun' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisDryRun(obj: RolloutSpecStrategyCanaryStepsAnalysisDryRun | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention#limit - */ - readonly limit: number; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention#metricName - */ - readonly metricName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention(obj: RolloutSpecStrategyCanaryStepsAnalysisMeasurementRetention | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limit': obj.limit, - 'metricName': obj.metricName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisTemplates - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisTemplates { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisTemplates#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisTemplates#templateName - */ - readonly templateName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisTemplates(obj: RolloutSpecStrategyCanaryStepsAnalysisTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterScope': obj.clusterScope, - 'templateName': obj.templateName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalyses - */ -export interface RolloutSpecStrategyCanaryStepsExperimentAnalyses { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalyses#args - */ - readonly args?: RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalyses#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalyses#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalyses#requiredForCompletion - */ - readonly requiredForCompletion?: boolean; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalyses#templateName - */ - readonly templateName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentAnalyses' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentAnalyses(obj: RolloutSpecStrategyCanaryStepsExperimentAnalyses | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => toJson_RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs(y)), - 'clusterScope': obj.clusterScope, - 'name': obj.name, - 'requiredForCompletion': obj.requiredForCompletion, - 'templateName': obj.templateName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates - */ -export interface RolloutSpecStrategyCanaryStepsExperimentTemplates { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#metadata - */ - readonly metadata?: RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#replicas - */ - readonly replicas?: number; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#selector - */ - readonly selector?: RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#service - */ - readonly service?: RolloutSpecStrategyCanaryStepsExperimentTemplatesService; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#specRef - */ - readonly specRef: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplates#weight - */ - readonly weight?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentTemplates(obj: RolloutSpecStrategyCanaryStepsExperimentTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata(obj.metadata), - 'name': obj.name, - 'replicas': obj.replicas, - 'selector': toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector(obj.selector), - 'service': toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesService(obj.service), - 'specRef': obj.specRef, - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsPauseDuration - */ -export class RolloutSpecStrategyCanaryStepsPauseDuration { - public static fromNumber(value: number): RolloutSpecStrategyCanaryStepsPauseDuration { - return new RolloutSpecStrategyCanaryStepsPauseDuration(value); - } - public static fromString(value: string): RolloutSpecStrategyCanaryStepsPauseDuration { - return new RolloutSpecStrategyCanaryStepsPauseDuration(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch - */ -export interface RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch { - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch#headerName - */ - readonly headerName: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch#headerValue - */ - readonly headerValue: RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch(obj: RolloutSpecStrategyCanaryStepsSetHeaderRouteMatch | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'headerName': obj.headerName, - 'headerValue': toJson_RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue(obj.headerValue), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch - */ -export interface RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch { - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch#headers - */ - readonly headers?: { [key: string]: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders }; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch#method - */ - readonly method?: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch#path - */ - readonly path?: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch(obj: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatch | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'headers': ((obj.headers) === undefined) ? undefined : (Object.entries(obj.headers).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders(i[1]) }), {})), - 'method': toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod(obj.method), - 'path': toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath(obj.path), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig#durationSeconds - */ - readonly durationSeconds: number; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig#enabled - */ - readonly enabled: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig(obj: RolloutSpecStrategyCanaryTrafficRoutingAlbStickinessConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'durationSeconds': obj.durationSeconds, - 'enabled': obj.enabled, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingApisixRoute - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingApisixRoute { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingApisixRoute#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingApisixRoute#rules - */ - readonly rules?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingApisixRoute' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingApisixRoute(obj: RolloutSpecStrategyCanaryTrafficRoutingApisixRoute | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'rules': obj.rules?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup#canaryVirtualNodeRef - */ - readonly canaryVirtualNodeRef: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup#stableVirtualNodeRef - */ - readonly stableVirtualNodeRef: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup(obj: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroup | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'canaryVirtualNodeRef': toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef(obj.canaryVirtualNodeRef), - 'stableVirtualNodeRef': toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef(obj.stableVirtualNodeRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService#routes - */ - readonly routes?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService(obj: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualService | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'routes': obj.routes?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule#canarySubsetName - */ - readonly canarySubsetName: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule#stableSubsetName - */ - readonly stableSubsetName: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioDestinationRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'canarySubsetName': obj.canarySubsetName, - 'name': obj.name, - 'stableSubsetName': obj.stableSubsetName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService#routes - */ - readonly routes?: string[]; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService#tcpRoutes - */ - readonly tcpRoutes?: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes[]; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService#tlsRoutes - */ - readonly tlsRoutes?: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualService | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'routes': obj.routes?.map(y => y), - 'tcpRoutes': obj.tcpRoutes?.map(y => toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes(y)), - 'tlsRoutes': obj.tlsRoutes?.map(y => toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices#routes - */ - readonly routes?: string[]; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices#tcpRoutes - */ - readonly tcpRoutes?: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes[]; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices#tlsRoutes - */ - readonly tlsRoutes?: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'routes': obj.routes?.map(y => y), - 'tcpRoutes': obj.tcpRoutes?.map(y => toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes(y)), - 'tlsRoutes': obj.tlsRoutes?.map(y => toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvValueFrom - */ -export interface RolloutSpecTemplateSpecContainersEnvValueFrom { - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecTemplateSpecContainersEnvValueFromFieldRef; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvValueFrom(obj: RolloutSpecTemplateSpecContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_RolloutSpecTemplateSpecContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvFromConfigMapRef - */ -export interface RolloutSpecTemplateSpecContainersEnvFromConfigMapRef { - /** - * @schema RolloutSpecTemplateSpecContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvFromConfigMapRef(obj: RolloutSpecTemplateSpecContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvFromSecretRef - */ -export interface RolloutSpecTemplateSpecContainersEnvFromSecretRef { - /** - * @schema RolloutSpecTemplateSpecContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvFromSecretRef(obj: RolloutSpecTemplateSpecContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStart - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePostStart { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStart#exec - */ - readonly exec?: RolloutSpecTemplateSpecContainersLifecyclePostStartExec; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePostStart(obj: RolloutSpecTemplateSpecContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet(obj.httpGet), - 'tcpSocket': toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStop - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePreStop { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStop#exec - */ - readonly exec?: RolloutSpecTemplateSpecContainersLifecyclePreStopExec; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePreStop(obj: RolloutSpecTemplateSpecContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet(obj.httpGet), - 'tcpSocket': toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeExec - */ -export interface RolloutSpecTemplateSpecContainersLivenessProbeExec { - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLivenessProbeExec(obj: RolloutSpecTemplateSpecContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeGrpc - */ -export interface RolloutSpecTemplateSpecContainersLivenessProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLivenessProbeGrpc(obj: RolloutSpecTemplateSpecContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGet - */ -export interface RolloutSpecTemplateSpecContainersLivenessProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLivenessProbeHttpGet(obj: RolloutSpecTemplateSpecContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket(obj: RolloutSpecTemplateSpecContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeExec - */ -export interface RolloutSpecTemplateSpecContainersReadinessProbeExec { - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersReadinessProbeExec(obj: RolloutSpecTemplateSpecContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeGrpc - */ -export interface RolloutSpecTemplateSpecContainersReadinessProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersReadinessProbeGrpc(obj: RolloutSpecTemplateSpecContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGet - */ -export interface RolloutSpecTemplateSpecContainersReadinessProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersReadinessProbeHttpGet(obj: RolloutSpecTemplateSpecContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket(obj: RolloutSpecTemplateSpecContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersSecurityContextCapabilities - */ -export interface RolloutSpecTemplateSpecContainersSecurityContextCapabilities { - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersSecurityContextCapabilities(obj: RolloutSpecTemplateSpecContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions - */ -export interface RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions { - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions(obj: RolloutSpecTemplateSpecContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile - */ -export interface RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile { - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile(obj: RolloutSpecTemplateSpecContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions - */ -export interface RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions { - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions(obj: RolloutSpecTemplateSpecContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeExec - */ -export interface RolloutSpecTemplateSpecContainersStartupProbeExec { - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersStartupProbeExec(obj: RolloutSpecTemplateSpecContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeGrpc - */ -export interface RolloutSpecTemplateSpecContainersStartupProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersStartupProbeGrpc(obj: RolloutSpecTemplateSpecContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGet - */ -export interface RolloutSpecTemplateSpecContainersStartupProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersStartupProbeHttpGet(obj: RolloutSpecTemplateSpecContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecContainersStartupProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersStartupProbeTcpSocket(obj: RolloutSpecTemplateSpecContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom(obj: RolloutSpecTemplateSpecEphemeralContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef(obj: RolloutSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef(obj: RolloutSpecTemplateSpecEphemeralContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart#exec - */ - readonly exec?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet(obj.httpGet), - 'tcpSocket': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop#exec - */ - readonly exec?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet(obj.httpGet), - 'tcpSocket': toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec(obj: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc(obj: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet(obj: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket(obj: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec - */ -export interface RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec(obj: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc - */ -export interface RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc(obj: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet - */ -export interface RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet(obj: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket(obj: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities - */ -export interface RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities(obj: RolloutSpecTemplateSpecEphemeralContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions - */ -export interface RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions(obj: RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile - */ -export interface RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile(obj: RolloutSpecTemplateSpecEphemeralContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions - */ -export interface RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions(obj: RolloutSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec - */ -export interface RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec(obj: RolloutSpecTemplateSpecEphemeralContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc - */ -export interface RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc(obj: RolloutSpecTemplateSpecEphemeralContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet - */ -export interface RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet(obj: RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket(obj: RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFrom - */ -export interface RolloutSpecTemplateSpecInitContainersEnvValueFrom { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvValueFrom(obj: RolloutSpecTemplateSpecInitContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef - */ -export interface RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef(obj: RolloutSpecTemplateSpecInitContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvFromSecretRef - */ -export interface RolloutSpecTemplateSpecInitContainersEnvFromSecretRef { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvFromSecretRef(obj: RolloutSpecTemplateSpecInitContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStart - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePostStart { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStart#exec - */ - readonly exec?: RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStart(obj: RolloutSpecTemplateSpecInitContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet(obj.httpGet), - 'tcpSocket': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStop - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePreStop { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStop#exec - */ - readonly exec?: RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStop(obj: RolloutSpecTemplateSpecInitContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet(obj.httpGet), - 'tcpSocket': toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeExec - */ -export interface RolloutSpecTemplateSpecInitContainersLivenessProbeExec { - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeExec(obj: RolloutSpecTemplateSpecInitContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc - */ -export interface RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc(obj: RolloutSpecTemplateSpecInitContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet - */ -export interface RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet(obj: RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket(obj: RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeExec - */ -export interface RolloutSpecTemplateSpecInitContainersReadinessProbeExec { - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeExec(obj: RolloutSpecTemplateSpecInitContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc - */ -export interface RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc(obj: RolloutSpecTemplateSpecInitContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet - */ -export interface RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet(obj: RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket(obj: RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities - */ -export interface RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities { - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities(obj: RolloutSpecTemplateSpecInitContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions - */ -export interface RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions { - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions(obj: RolloutSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile - */ -export interface RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile { - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile(obj: RolloutSpecTemplateSpecInitContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions - */ -export interface RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions { - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions(obj: RolloutSpecTemplateSpecInitContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeExec - */ -export interface RolloutSpecTemplateSpecInitContainersStartupProbeExec { - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersStartupProbeExec(obj: RolloutSpecTemplateSpecInitContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeGrpc - */ -export interface RolloutSpecTemplateSpecInitContainersStartupProbeGrpc { - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersStartupProbeGrpc(obj: RolloutSpecTemplateSpecInitContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet - */ -export interface RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet { - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet(obj: RolloutSpecTemplateSpecInitContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket - */ -export interface RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket { - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket(obj: RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions(obj: RolloutSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef - */ -export interface RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef { - /** - * @schema RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef(obj: RolloutSpecStrategyBlueGreenPostPromotionAnalysisArgsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef - */ -export interface RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef { - /** - * @schema RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef(obj: RolloutSpecStrategyBlueGreenPrePromotionAnalysisArgsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef - */ -export interface RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef { - /** - * @schema RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef(obj: RolloutSpecStrategyCanaryAnalysisArgsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef; - - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom#podTemplateHashValue - */ - readonly podTemplateHashValue?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom(obj: RolloutSpecStrategyCanaryStepsAnalysisArgsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef(obj.fieldRef), - 'podTemplateHashValue': obj.podTemplateHashValue, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs - */ -export interface RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs#name - */ - readonly name: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs#value - */ - readonly value?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs#valueFrom - */ - readonly valueFrom?: RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs(obj: RolloutSpecStrategyCanaryStepsExperimentAnalysesArgs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata - */ -export interface RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata(obj: RolloutSpecStrategyCanaryStepsExperimentTemplatesMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector - */ -export interface RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector(obj: RolloutSpecStrategyCanaryStepsExperimentTemplatesSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesService - */ -export interface RolloutSpecStrategyCanaryStepsExperimentTemplatesService { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesService#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentTemplatesService' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesService(obj: RolloutSpecStrategyCanaryStepsExperimentTemplatesService | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue - */ -export interface RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue { - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue#exact - */ - readonly exact?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue#regex - */ - readonly regex?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue(obj: RolloutSpecStrategyCanaryStepsSetHeaderRouteMatchHeaderValue | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exact': obj.exact, - 'prefix': obj.prefix, - 'regex': obj.regex, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders - */ -export interface RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders { - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders#exact - */ - readonly exact?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders#regex - */ - readonly regex?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders(obj: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exact': obj.exact, - 'prefix': obj.prefix, - 'regex': obj.regex, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod - */ -export interface RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod { - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod#exact - */ - readonly exact?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod#regex - */ - readonly regex?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod(obj: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchMethod | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exact': obj.exact, - 'prefix': obj.prefix, - 'regex': obj.regex, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath - */ -export interface RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath { - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath#exact - */ - readonly exact?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath#prefix - */ - readonly prefix?: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath#regex - */ - readonly regex?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath(obj: RolloutSpecStrategyCanaryStepsSetMirrorRouteMatchPath | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exact': obj.exact, - 'prefix': obj.prefix, - 'regex': obj.regex, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef(obj: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupCanaryVirtualNodeRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef(obj: RolloutSpecStrategyCanaryTrafficRoutingAppMeshVirtualNodeGroupStableVirtualNodeRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes#port - */ - readonly port?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTcpRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes#port - */ - readonly port?: number; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes#sniHosts - */ - readonly sniHosts?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServiceTlsRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'sniHosts': obj.sniHosts?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes#port - */ - readonly port?: number; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTcpRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes - */ -export interface RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes { - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes#port - */ - readonly port?: number; - - /** - * @schema RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes#sniHosts - */ - readonly sniHosts?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes(obj: RolloutSpecStrategyCanaryTrafficRoutingIstioVirtualServicesTlsRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'sniHosts': obj.sniHosts?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef - */ -export interface RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef { - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef(obj: RolloutSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromFieldRef - */ -export interface RolloutSpecTemplateSpecContainersEnvValueFromFieldRef { - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvValueFromFieldRef(obj: RolloutSpecTemplateSpecContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef - */ -export interface RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef { - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef(obj: RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef - */ -export interface RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef { - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef(obj: RolloutSpecTemplateSpecContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartExec - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePostStartExec { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartExec(obj: RolloutSpecTemplateSpecContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet(obj: RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket(obj: RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopExec - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePreStopExec { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopExec(obj: RolloutSpecTemplateSpecContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet(obj: RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket(obj: RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort { - return new RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort { - return new RolloutSpecTemplateSpecContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort { - return new RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort { - return new RolloutSpecTemplateSpecContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort { - return new RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort { - return new RolloutSpecTemplateSpecContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort { - return new RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort { - return new RolloutSpecTemplateSpecContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef(obj: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef(obj: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef(obj: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef - */ -export interface RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef(obj: RolloutSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef - */ -export interface RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef(obj: RolloutSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef - */ -export interface RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef(obj: RolloutSpecTemplateSpecInitContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef - */ -export interface RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef(obj: RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef - */ -export interface RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef { - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef(obj: RolloutSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec(obj: RolloutSpecTemplateSpecInitContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet(obj: RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket(obj: RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec(obj: RolloutSpecTemplateSpecInitContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet(obj: RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket#port - */ - readonly port: RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket(obj: RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort - */ -export class RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort - */ -export class RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef - */ -export interface RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef { - /** - * @schema RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef(obj: RolloutSpecStrategyCanaryStepsAnalysisArgsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom - */ -export interface RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom#fieldRef - */ - readonly fieldRef?: RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom#podTemplateHashValue - */ - readonly podTemplateHashValue?: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom(obj: RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef(obj.fieldRef), - 'podTemplateHashValue': obj.podTemplateHashValue, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions - */ -export interface RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions(obj: RolloutSpecStrategyCanaryStepsExperimentTemplatesSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: RolloutSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: RolloutSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor - */ -export class RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor { - return new RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor { - return new RolloutSpecTemplateSpecContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort - */ -export class RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { - return new RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { - return new RolloutSpecTemplateSpecContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort - */ -export class RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { - return new RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { - return new RolloutSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort - */ -export class RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { - return new RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { - return new RolloutSpecTemplateSpecContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort - */ -export class RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { - return new RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { - return new RolloutSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor - */ -export class RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor { - return new RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor { - return new RolloutSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort - */ -export class RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { - return new RolloutSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor - */ -export class RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new RolloutSpecTemplateSpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort - */ -export class RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort - */ -export class RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders(obj: RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort - */ -export class RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort - */ -export class RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { - return new RolloutSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef - */ -export interface RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef { - /** - * @schema RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef(obj: RolloutSpecStrategyCanaryStepsExperimentAnalysesArgsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: RolloutSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - diff --git a/.devops/aws/src/imports/cert-manager.io.ts b/.devops/aws/src/imports/cert-manager.io.ts deleted file mode 100644 index f234d17..0000000 --- a/.devops/aws/src/imports/cert-manager.io.ts +++ /dev/null @@ -1,4993 +0,0 @@ -// generated by cdk8s -import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - - -/** - * A Certificate resource should be created to ensure an up to date and signed X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`. - The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`). - * - * @schema Certificate - */ -export class Certificate extends ApiObject { - /** - * Returns the apiVersion and kind for "Certificate" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'cert-manager.io/v1', - kind: 'Certificate', - } - - /** - * Renders a Kubernetes manifest for "Certificate". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: CertificateProps = {}): any { - return { - ...Certificate.GVK, - ...toJson_CertificateProps(props), - }; - } - - /** - * Defines a "Certificate" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: CertificateProps = {}) { - super(scope, id, { - ...Certificate.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...Certificate.GVK, - ...toJson_CertificateProps(resolved), - }; - } -} - -/** - * A Certificate resource should be created to ensure an up to date and signed X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`. - * The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`). - * - * @schema Certificate - */ -export interface CertificateProps { - /** - * @schema Certificate#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * Specification of the desired state of the Certificate resource. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema Certificate#spec - */ - readonly spec?: CertificateSpec; - -} - -/** - * Converts an object of type 'CertificateProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateProps(obj: CertificateProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_CertificateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Specification of the desired state of the Certificate resource. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema CertificateSpec - */ -export interface CertificateSpec { - /** - * Defines extra output formats of the private key and signed certificate chain to be written to this Certificate's target Secret. - * This is an Alpha Feature and is only enabled with the `--feature-gates=AdditionalCertificateOutputFormats=true` option set on both the controller and webhook components. - * - * @schema CertificateSpec#additionalOutputFormats - */ - readonly additionalOutputFormats?: CertificateSpecAdditionalOutputFormats[]; - - /** - * Requested common name X509 certificate subject attribute. More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 NOTE: TLS clients will ignore this value when any subject alternative name is set (see https://tools.ietf.org/html/rfc6125#section-6.4.4). - * Should have a length of 64 characters or fewer to avoid generating invalid CSRs. Cannot be set if the `literalSubject` field is set. - * - * @schema CertificateSpec#commonName - */ - readonly commonName?: string; - - /** - * Requested DNS subject alternative names. - * - * @schema CertificateSpec#dnsNames - */ - readonly dnsNames?: string[]; - - /** - * Requested 'duration' (i.e. lifetime) of the Certificate. Note that the issuer may choose to ignore the requested duration, just like any other requested attribute. - * If unset, this defaults to 90 days. Minimum accepted duration is 1 hour. Value must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration. - * - * @schema CertificateSpec#duration - */ - readonly duration?: string; - - /** - * Requested email subject alternative names. - * - * @schema CertificateSpec#emailAddresses - */ - readonly emailAddresses?: string[]; - - /** - * Whether the KeyUsage and ExtKeyUsage extensions should be set in the encoded CSR. - * This option defaults to true, and should only be disabled if the target issuer does not support CSRs with these X509 KeyUsage/ ExtKeyUsage extensions. - * - * @schema CertificateSpec#encodeUsagesInRequest - */ - readonly encodeUsagesInRequest?: boolean; - - /** - * Requested IP address subject alternative names. - * - * @schema CertificateSpec#ipAddresses - */ - readonly ipAddresses?: string[]; - - /** - * Requested basic constraints isCA value. The isCA value is used to set the `isCA` field on the created CertificateRequest resources. Note that the issuer may choose to ignore the requested isCA value, just like any other requested attribute. - * If true, this will automatically add the `cert sign` usage to the list of requested `usages`. - * - * @schema CertificateSpec#isCA - */ - readonly isCa?: boolean; - - /** - * Reference to the issuer responsible for issuing the certificate. If the issuer is namespace-scoped, it must be in the same namespace as the Certificate. If the issuer is cluster-scoped, it can be used from any namespace. - * The `name` field of the reference must always be specified. - * - * @schema CertificateSpec#issuerRef - */ - readonly issuerRef: CertificateSpecIssuerRef; - - /** - * Additional keystore output formats to be stored in the Certificate's Secret. - * - * @schema CertificateSpec#keystores - */ - readonly keystores?: CertificateSpecKeystores; - - /** - * Requested X.509 certificate subject, represented using the LDAP "String Representation of a Distinguished Name" [1]. Important: the LDAP string format also specifies the order of the attributes in the subject, this is important when issuing certs for LDAP authentication. Example: `CN=foo,DC=corp,DC=example,DC=com` More info [1]: https://datatracker.ietf.org/doc/html/rfc4514 More info: https://github.com/cert-manager/cert-manager/issues/3203 More info: https://github.com/cert-manager/cert-manager/issues/4424 - * Cannot be set if the `subject` or `commonName` field is set. This is an Alpha Feature and is only enabled with the `--feature-gates=LiteralCertificateSubject=true` option set on both the controller and webhook components. - * - * @schema CertificateSpec#literalSubject - */ - readonly literalSubject?: string; - - /** - * Private key options. These include the key algorithm and size, the used encoding and the rotation policy. - * - * @schema CertificateSpec#privateKey - */ - readonly privateKey?: CertificateSpecPrivateKey; - - /** - * How long before the currently issued certificate's expiry cert-manager should renew the certificate. For example, if a certificate is valid for 60 minutes, and `renewBefore=10m`, cert-manager will begin to attempt to renew the certificate 50 minutes after it was issued (i.e. when there are 10 minutes remaining until the certificate is no longer valid). - * NOTE: The actual lifetime of the issued certificate is used to determine the renewal time. If an issuer returns a certificate with a different lifetime than the one requested, cert-manager will use the lifetime of the issued certificate. - * If unset, this defaults to 1/3 of the issued certificate's lifetime. Minimum accepted value is 5 minutes. Value must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration. - * - * @schema CertificateSpec#renewBefore - */ - readonly renewBefore?: string; - - /** - * The maximum number of CertificateRequest revisions that are maintained in the Certificate's history. Each revision represents a single `CertificateRequest` created by this Certificate, either when it was created, renewed, or Spec was changed. Revisions will be removed by oldest first if the number of revisions exceeds this number. - * If set, revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`), revisions will not be garbage collected. Default value is `nil`. - * - * @schema CertificateSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - - /** - * Name of the Secret resource that will be automatically created and managed by this Certificate resource. It will be populated with a private key and certificate, signed by the denoted issuer. The Secret resource lives in the same namespace as the Certificate resource. - * - * @schema CertificateSpec#secretName - */ - readonly secretName: string; - - /** - * Defines annotations and labels to be copied to the Certificate's Secret. Labels and annotations on the Secret will be changed as they appear on the SecretTemplate when added or removed. SecretTemplate annotations are added in conjunction with, and cannot overwrite, the base set of annotations cert-manager sets on the Certificate's Secret. - * - * @schema CertificateSpec#secretTemplate - */ - readonly secretTemplate?: CertificateSpecSecretTemplate; - - /** - * Requested set of X509 certificate subject attributes. More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 - * The common name attribute is specified separately in the `commonName` field. Cannot be set if the `literalSubject` field is set. - * - * @schema CertificateSpec#subject - */ - readonly subject?: CertificateSpecSubject; - - /** - * Requested URI subject alternative names. - * - * @schema CertificateSpec#uris - */ - readonly uris?: string[]; - - /** - * Requested key usages and extended key usages. These usages are used to set the `usages` field on the created CertificateRequest resources. If `encodeUsagesInRequest` is unset or set to `true`, the usages will additionally be encoded in the `request` field which contains the CSR blob. - * If unset, defaults to `digital signature` and `key encipherment`. - * - * @schema CertificateSpec#usages - */ - readonly usages?: CertificateSpecUsages[]; - -} - -/** - * Converts an object of type 'CertificateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpec(obj: CertificateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'additionalOutputFormats': obj.additionalOutputFormats?.map(y => toJson_CertificateSpecAdditionalOutputFormats(y)), - 'commonName': obj.commonName, - 'dnsNames': obj.dnsNames?.map(y => y), - 'duration': obj.duration, - 'emailAddresses': obj.emailAddresses?.map(y => y), - 'encodeUsagesInRequest': obj.encodeUsagesInRequest, - 'ipAddresses': obj.ipAddresses?.map(y => y), - 'isCA': obj.isCa, - 'issuerRef': toJson_CertificateSpecIssuerRef(obj.issuerRef), - 'keystores': toJson_CertificateSpecKeystores(obj.keystores), - 'literalSubject': obj.literalSubject, - 'privateKey': toJson_CertificateSpecPrivateKey(obj.privateKey), - 'renewBefore': obj.renewBefore, - 'revisionHistoryLimit': obj.revisionHistoryLimit, - 'secretName': obj.secretName, - 'secretTemplate': toJson_CertificateSpecSecretTemplate(obj.secretTemplate), - 'subject': toJson_CertificateSpecSubject(obj.subject), - 'uris': obj.uris?.map(y => y), - 'usages': obj.usages?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CertificateAdditionalOutputFormat defines an additional output format of a Certificate resource. These contain supplementary data formats of the signed certificate chain and paired private key. - * - * @schema CertificateSpecAdditionalOutputFormats - */ -export interface CertificateSpecAdditionalOutputFormats { - /** - * Type is the name of the format type that should be written to the Certificate's target Secret. - * - * @schema CertificateSpecAdditionalOutputFormats#type - */ - readonly type: CertificateSpecAdditionalOutputFormatsType; - -} - -/** - * Converts an object of type 'CertificateSpecAdditionalOutputFormats' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecAdditionalOutputFormats(obj: CertificateSpecAdditionalOutputFormats | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Reference to the issuer responsible for issuing the certificate. If the issuer is namespace-scoped, it must be in the same namespace as the Certificate. If the issuer is cluster-scoped, it can be used from any namespace. - * The `name` field of the reference must always be specified. - * - * @schema CertificateSpecIssuerRef - */ -export interface CertificateSpecIssuerRef { - /** - * Group of the resource being referred to. - * - * @schema CertificateSpecIssuerRef#group - */ - readonly group?: string; - - /** - * Kind of the resource being referred to. - * - * @schema CertificateSpecIssuerRef#kind - */ - readonly kind?: string; - - /** - * Name of the resource being referred to. - * - * @schema CertificateSpecIssuerRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'CertificateSpecIssuerRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecIssuerRef(obj: CertificateSpecIssuerRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Additional keystore output formats to be stored in the Certificate's Secret. - * - * @schema CertificateSpecKeystores - */ -export interface CertificateSpecKeystores { - /** - * JKS configures options for storing a JKS keystore in the `spec.secretName` Secret resource. - * - * @schema CertificateSpecKeystores#jks - */ - readonly jks?: CertificateSpecKeystoresJks; - - /** - * PKCS12 configures options for storing a PKCS12 keystore in the `spec.secretName` Secret resource. - * - * @schema CertificateSpecKeystores#pkcs12 - */ - readonly pkcs12?: CertificateSpecKeystoresPkcs12; - -} - -/** - * Converts an object of type 'CertificateSpecKeystores' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecKeystores(obj: CertificateSpecKeystores | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'jks': toJson_CertificateSpecKeystoresJks(obj.jks), - 'pkcs12': toJson_CertificateSpecKeystoresPkcs12(obj.pkcs12), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Private key options. These include the key algorithm and size, the used encoding and the rotation policy. - * - * @schema CertificateSpecPrivateKey - */ -export interface CertificateSpecPrivateKey { - /** - * Algorithm is the private key algorithm of the corresponding private key for this certificate. - * If provided, allowed values are either `RSA`, `ECDSA` or `Ed25519`. If `algorithm` is specified and `size` is not provided, key size of 2048 will be used for `RSA` key algorithm and key size of 256 will be used for `ECDSA` key algorithm. key size is ignored when using the `Ed25519` key algorithm. - * - * @schema CertificateSpecPrivateKey#algorithm - */ - readonly algorithm?: CertificateSpecPrivateKeyAlgorithm; - - /** - * The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. - * If provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1 and PKCS#8, respectively. Defaults to `PKCS1` if not specified. - * - * @default PKCS1` if not specified. - * @schema CertificateSpecPrivateKey#encoding - */ - readonly encoding?: CertificateSpecPrivateKeyEncoding; - - /** - * RotationPolicy controls how private keys should be regenerated when a re-issuance is being processed. - * If set to `Never`, a private key will only be generated if one does not already exist in the target `spec.secretName`. If one does exists but it does not have the correct algorithm or size, a warning will be raised to await user intervention. If set to `Always`, a private key matching the specified requirements will be generated whenever a re-issuance occurs. Default is `Never` for backward compatibility. - * - * @default Never` for backward compatibility. - * @schema CertificateSpecPrivateKey#rotationPolicy - */ - readonly rotationPolicy?: CertificateSpecPrivateKeyRotationPolicy; - - /** - * Size is the key bit size of the corresponding private key for this certificate. - * If `algorithm` is set to `RSA`, valid values are `2048`, `4096` or `8192`, and will default to `2048` if not specified. If `algorithm` is set to `ECDSA`, valid values are `256`, `384` or `521`, and will default to `256` if not specified. If `algorithm` is set to `Ed25519`, Size is ignored. No other values are allowed. - * - * @schema CertificateSpecPrivateKey#size - */ - readonly size?: number; - -} - -/** - * Converts an object of type 'CertificateSpecPrivateKey' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecPrivateKey(obj: CertificateSpecPrivateKey | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'algorithm': obj.algorithm, - 'encoding': obj.encoding, - 'rotationPolicy': obj.rotationPolicy, - 'size': obj.size, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Defines annotations and labels to be copied to the Certificate's Secret. Labels and annotations on the Secret will be changed as they appear on the SecretTemplate when added or removed. SecretTemplate annotations are added in conjunction with, and cannot overwrite, the base set of annotations cert-manager sets on the Certificate's Secret. - * - * @schema CertificateSpecSecretTemplate - */ -export interface CertificateSpecSecretTemplate { - /** - * Annotations is a key value map to be copied to the target Kubernetes Secret. - * - * @schema CertificateSpecSecretTemplate#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * Labels is a key value map to be copied to the target Kubernetes Secret. - * - * @schema CertificateSpecSecretTemplate#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'CertificateSpecSecretTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecSecretTemplate(obj: CertificateSpecSecretTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Requested set of X509 certificate subject attributes. More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 - * The common name attribute is specified separately in the `commonName` field. Cannot be set if the `literalSubject` field is set. - * - * @schema CertificateSpecSubject - */ -export interface CertificateSpecSubject { - /** - * Countries to be used on the Certificate. - * - * @schema CertificateSpecSubject#countries - */ - readonly countries?: string[]; - - /** - * Cities to be used on the Certificate. - * - * @schema CertificateSpecSubject#localities - */ - readonly localities?: string[]; - - /** - * Organizational Units to be used on the Certificate. - * - * @schema CertificateSpecSubject#organizationalUnits - */ - readonly organizationalUnits?: string[]; - - /** - * Organizations to be used on the Certificate. - * - * @schema CertificateSpecSubject#organizations - */ - readonly organizations?: string[]; - - /** - * Postal codes to be used on the Certificate. - * - * @schema CertificateSpecSubject#postalCodes - */ - readonly postalCodes?: string[]; - - /** - * State/Provinces to be used on the Certificate. - * - * @schema CertificateSpecSubject#provinces - */ - readonly provinces?: string[]; - - /** - * Serial number to be used on the Certificate. - * - * @schema CertificateSpecSubject#serialNumber - */ - readonly serialNumber?: string; - - /** - * Street addresses to be used on the Certificate. - * - * @schema CertificateSpecSubject#streetAddresses - */ - readonly streetAddresses?: string[]; - -} - -/** - * Converts an object of type 'CertificateSpecSubject' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecSubject(obj: CertificateSpecSubject | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'countries': obj.countries?.map(y => y), - 'localities': obj.localities?.map(y => y), - 'organizationalUnits': obj.organizationalUnits?.map(y => y), - 'organizations': obj.organizations?.map(y => y), - 'postalCodes': obj.postalCodes?.map(y => y), - 'provinces': obj.provinces?.map(y => y), - 'serialNumber': obj.serialNumber, - 'streetAddresses': obj.streetAddresses?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * KeyUsage specifies valid usage contexts for keys. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - * Valid KeyUsage values are as follows: "signing", "digital signature", "content commitment", "key encipherment", "key agreement", "data encipherment", "cert sign", "crl sign", "encipher only", "decipher only", "any", "server auth", "client auth", "code signing", "email protection", "s/mime", "ipsec end system", "ipsec tunnel", "ipsec user", "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" - * - * @schema CertificateSpecUsages - */ -export enum CertificateSpecUsages { - /** signing */ - SIGNING = "signing", - /** digital signature */ - DIGITAL_SIGNATURE = "digital signature", - /** content commitment */ - CONTENT_COMMITMENT = "content commitment", - /** key encipherment */ - KEY_ENCIPHERMENT = "key encipherment", - /** key agreement */ - KEY_AGREEMENT = "key agreement", - /** data encipherment */ - DATA_ENCIPHERMENT = "data encipherment", - /** cert sign */ - CERT_SIGN = "cert sign", - /** crl sign */ - CRL_SIGN = "crl sign", - /** encipher only */ - ENCIPHER_ONLY = "encipher only", - /** decipher only */ - DECIPHER_ONLY = "decipher only", - /** any */ - ANY = "any", - /** server auth */ - SERVER_AUTH = "server auth", - /** client auth */ - CLIENT_AUTH = "client auth", - /** code signing */ - CODE_SIGNING = "code signing", - /** email protection */ - EMAIL_PROTECTION = "email protection", - /** s/mime */ - S_FORWARD_SLASH_MIME = "s/mime", - /** ipsec end system */ - IPSEC_END_SYSTEM = "ipsec end system", - /** ipsec tunnel */ - IPSEC_TUNNEL = "ipsec tunnel", - /** ipsec user */ - IPSEC_USER = "ipsec user", - /** timestamping */ - TIMESTAMPING = "timestamping", - /** ocsp signing */ - OCSP_SIGNING = "ocsp signing", - /** microsoft sgc */ - MICROSOFT_SGC = "microsoft sgc", - /** netscape sgc */ - NETSCAPE_SGC = "netscape sgc", -} - -/** - * Type is the name of the format type that should be written to the Certificate's target Secret. - * - * @schema CertificateSpecAdditionalOutputFormatsType - */ -export enum CertificateSpecAdditionalOutputFormatsType { - /** DER */ - DER = "DER", - /** CombinedPEM */ - COMBINED_PEM = "CombinedPEM", -} - -/** - * JKS configures options for storing a JKS keystore in the `spec.secretName` Secret resource. - * - * @schema CertificateSpecKeystoresJks - */ -export interface CertificateSpecKeystoresJks { - /** - * Create enables JKS keystore creation for the Certificate. If true, a file named `keystore.jks` will be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef`. The keystore file will be updated immediately. If the issuer provided a CA certificate, a file named `truststore.jks` will also be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef` containing the issuing Certificate Authority - * - * @schema CertificateSpecKeystoresJks#create - */ - readonly create: boolean; - - /** - * PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the JKS keystore. - * - * @schema CertificateSpecKeystoresJks#passwordSecretRef - */ - readonly passwordSecretRef: CertificateSpecKeystoresJksPasswordSecretRef; - -} - -/** - * Converts an object of type 'CertificateSpecKeystoresJks' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecKeystoresJks(obj: CertificateSpecKeystoresJks | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'create': obj.create, - 'passwordSecretRef': toJson_CertificateSpecKeystoresJksPasswordSecretRef(obj.passwordSecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PKCS12 configures options for storing a PKCS12 keystore in the `spec.secretName` Secret resource. - * - * @schema CertificateSpecKeystoresPkcs12 - */ -export interface CertificateSpecKeystoresPkcs12 { - /** - * Create enables PKCS12 keystore creation for the Certificate. If true, a file named `keystore.p12` will be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef`. The keystore file will be updated immediately. If the issuer provided a CA certificate, a file named `truststore.p12` will also be created in the target Secret resource, encrypted using the password stored in `passwordSecretRef` containing the issuing Certificate Authority - * - * @schema CertificateSpecKeystoresPkcs12#create - */ - readonly create: boolean; - - /** - * PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the PKCS12 keystore. - * - * @schema CertificateSpecKeystoresPkcs12#passwordSecretRef - */ - readonly passwordSecretRef: CertificateSpecKeystoresPkcs12PasswordSecretRef; - -} - -/** - * Converts an object of type 'CertificateSpecKeystoresPkcs12' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecKeystoresPkcs12(obj: CertificateSpecKeystoresPkcs12 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'create': obj.create, - 'passwordSecretRef': toJson_CertificateSpecKeystoresPkcs12PasswordSecretRef(obj.passwordSecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Algorithm is the private key algorithm of the corresponding private key for this certificate. - * If provided, allowed values are either `RSA`, `ECDSA` or `Ed25519`. If `algorithm` is specified and `size` is not provided, key size of 2048 will be used for `RSA` key algorithm and key size of 256 will be used for `ECDSA` key algorithm. key size is ignored when using the `Ed25519` key algorithm. - * - * @schema CertificateSpecPrivateKeyAlgorithm - */ -export enum CertificateSpecPrivateKeyAlgorithm { - /** RSA */ - RSA = "RSA", - /** ECDSA */ - ECDSA = "ECDSA", - /** Ed25519 */ - ED25519 = "Ed25519", -} - -/** - * The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. - * If provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1 and PKCS#8, respectively. Defaults to `PKCS1` if not specified. - * - * @default PKCS1` if not specified. - * @schema CertificateSpecPrivateKeyEncoding - */ -export enum CertificateSpecPrivateKeyEncoding { - /** PKCS1 */ - PKCS1 = "PKCS1", - /** PKCS8 */ - PKCS8 = "PKCS8", -} - -/** - * RotationPolicy controls how private keys should be regenerated when a re-issuance is being processed. - * If set to `Never`, a private key will only be generated if one does not already exist in the target `spec.secretName`. If one does exists but it does not have the correct algorithm or size, a warning will be raised to await user intervention. If set to `Always`, a private key matching the specified requirements will be generated whenever a re-issuance occurs. Default is `Never` for backward compatibility. - * - * @default Never` for backward compatibility. - * @schema CertificateSpecPrivateKeyRotationPolicy - */ -export enum CertificateSpecPrivateKeyRotationPolicy { - /** Never */ - NEVER = "Never", - /** Always */ - ALWAYS = "Always", -} - -/** - * PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the JKS keystore. - * - * @schema CertificateSpecKeystoresJksPasswordSecretRef - */ -export interface CertificateSpecKeystoresJksPasswordSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema CertificateSpecKeystoresJksPasswordSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema CertificateSpecKeystoresJksPasswordSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'CertificateSpecKeystoresJksPasswordSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecKeystoresJksPasswordSecretRef(obj: CertificateSpecKeystoresJksPasswordSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the PKCS12 keystore. - * - * @schema CertificateSpecKeystoresPkcs12PasswordSecretRef - */ -export interface CertificateSpecKeystoresPkcs12PasswordSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema CertificateSpecKeystoresPkcs12PasswordSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema CertificateSpecKeystoresPkcs12PasswordSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'CertificateSpecKeystoresPkcs12PasswordSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSpecKeystoresPkcs12PasswordSecretRef(obj: CertificateSpecKeystoresPkcs12PasswordSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - - -/** - * An Issuer represents a certificate issuing authority which can be referenced as part of `issuerRef` fields. It is scoped to a single namespace and can therefore only be referenced by resources within the same namespace. - * - * @schema Issuer - */ -export class Issuer extends ApiObject { - /** - * Returns the apiVersion and kind for "Issuer" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'cert-manager.io/v1', - kind: 'Issuer', - } - - /** - * Renders a Kubernetes manifest for "Issuer". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: IssuerProps): any { - return { - ...Issuer.GVK, - ...toJson_IssuerProps(props), - }; - } - - /** - * Defines a "Issuer" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: IssuerProps) { - super(scope, id, { - ...Issuer.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...Issuer.GVK, - ...toJson_IssuerProps(resolved), - }; - } -} - -/** - * An Issuer represents a certificate issuing authority which can be referenced as part of `issuerRef` fields. It is scoped to a single namespace and can therefore only be referenced by resources within the same namespace. - * - * @schema Issuer - */ -export interface IssuerProps { - /** - * @schema Issuer#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * Desired state of the Issuer resource. - * - * @schema Issuer#spec - */ - readonly spec: IssuerSpec; - -} - -/** - * Converts an object of type 'IssuerProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerProps(obj: IssuerProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_IssuerSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Desired state of the Issuer resource. - * - * @schema IssuerSpec - */ -export interface IssuerSpec { - /** - * ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates. - * - * @schema IssuerSpec#acme - */ - readonly acme?: IssuerSpecAcme; - - /** - * CA configures this issuer to sign certificates using a signing CA keypair stored in a Secret resource. This is used to build internal PKIs that are managed by cert-manager. - * - * @schema IssuerSpec#ca - */ - readonly ca?: IssuerSpecCa; - - /** - * SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object. - * - * @schema IssuerSpec#selfSigned - */ - readonly selfSigned?: IssuerSpecSelfSigned; - - /** - * Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend. - * - * @schema IssuerSpec#vault - */ - readonly vault?: IssuerSpecVault; - - /** - * Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone. - * - * @schema IssuerSpec#venafi - */ - readonly venafi?: IssuerSpecVenafi; - -} - -/** - * Converts an object of type 'IssuerSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpec(obj: IssuerSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'acme': toJson_IssuerSpecAcme(obj.acme), - 'ca': toJson_IssuerSpecCa(obj.ca), - 'selfSigned': toJson_IssuerSpecSelfSigned(obj.selfSigned), - 'vault': toJson_IssuerSpecVault(obj.vault), - 'venafi': toJson_IssuerSpecVenafi(obj.venafi), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates. - * - * @schema IssuerSpecAcme - */ -export interface IssuerSpecAcme { - /** - * Base64-encoded bundle of PEM CAs which can be used to validate the certificate chain presented by the ACME server. Mutually exclusive with SkipTLSVerify; prefer using CABundle to prevent various kinds of security vulnerabilities. If CABundle and SkipTLSVerify are unset, the system certificate bundle inside the container is used to validate the TLS connection. - * - * @schema IssuerSpecAcme#caBundle - */ - readonly caBundle?: string; - - /** - * Enables or disables generating a new ACME account key. If true, the Issuer resource will *not* request a new account but will expect the account key to be supplied via an existing secret. If false, the cert-manager system will generate a new ACME account key for the Issuer. Defaults to false. - * - * @default false. - * @schema IssuerSpecAcme#disableAccountKeyGeneration - */ - readonly disableAccountKeyGeneration?: boolean; - - /** - * Email is the email address to be associated with the ACME account. This field is optional, but it is strongly recommended to be set. It will be used to contact you in case of issues with your account or certificates, including expiry notification emails. This field may be updated after the account is initially registered. - * - * @schema IssuerSpecAcme#email - */ - readonly email?: string; - - /** - * Enables requesting a Not After date on certificates that matches the duration of the certificate. This is not supported by all ACME servers like Let's Encrypt. If set to true when the ACME server does not support it it will create an error on the Order. Defaults to false. - * - * @default false. - * @schema IssuerSpecAcme#enableDurationFeature - */ - readonly enableDurationFeature?: boolean; - - /** - * ExternalAccountBinding is a reference to a CA external account of the ACME server. If set, upon registration cert-manager will attempt to associate the given external account credentials with the registered ACME account. - * - * @schema IssuerSpecAcme#externalAccountBinding - */ - readonly externalAccountBinding?: IssuerSpecAcmeExternalAccountBinding; - - /** - * PreferredChain is the chain to use if the ACME server outputs multiple. PreferredChain is no guarantee that this one gets delivered by the ACME endpoint. For example, for Let's Encrypt's DST crosssign you would use: "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA. This value picks the first certificate bundle in the ACME alternative chains that has a certificate with this value as its issuer's CN - * - * @schema IssuerSpecAcme#preferredChain - */ - readonly preferredChain?: string; - - /** - * PrivateKey is the name of a Kubernetes Secret resource that will be used to store the automatically generated ACME account private key. Optionally, a `key` may be specified to select a specific entry within the named Secret resource. If `key` is not specified, a default of `tls.key` will be used. - * - * @schema IssuerSpecAcme#privateKeySecretRef - */ - readonly privateKeySecretRef: IssuerSpecAcmePrivateKeySecretRef; - - /** - * Server is the URL used to access the ACME server's 'directory' endpoint. For example, for Let's Encrypt's staging endpoint, you would use: "https://acme-staging-v02.api.letsencrypt.org/directory". Only ACME v2 endpoints (i.e. RFC 8555) are supported. - * - * @schema IssuerSpecAcme#server - */ - readonly server: string; - - /** - * INSECURE: Enables or disables validation of the ACME server TLS certificate. If true, requests to the ACME server will not have the TLS certificate chain validated. Mutually exclusive with CABundle; prefer using CABundle to prevent various kinds of security vulnerabilities. Only enable this option in development environments. If CABundle and SkipTLSVerify are unset, the system certificate bundle inside the container is used to validate the TLS connection. Defaults to false. - * - * @default false. - * @schema IssuerSpecAcme#skipTLSVerify - */ - readonly skipTlsVerify?: boolean; - - /** - * Solvers is a list of challenge solvers that will be used to solve ACME challenges for the matching domains. Solver configurations must be provided in order to obtain certificates from an ACME server. For more information, see: https://cert-manager.io/docs/configuration/acme/ - * - * @schema IssuerSpecAcme#solvers - */ - readonly solvers?: IssuerSpecAcmeSolvers[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcme' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcme(obj: IssuerSpecAcme | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'caBundle': obj.caBundle, - 'disableAccountKeyGeneration': obj.disableAccountKeyGeneration, - 'email': obj.email, - 'enableDurationFeature': obj.enableDurationFeature, - 'externalAccountBinding': toJson_IssuerSpecAcmeExternalAccountBinding(obj.externalAccountBinding), - 'preferredChain': obj.preferredChain, - 'privateKeySecretRef': toJson_IssuerSpecAcmePrivateKeySecretRef(obj.privateKeySecretRef), - 'server': obj.server, - 'skipTLSVerify': obj.skipTlsVerify, - 'solvers': obj.solvers?.map(y => toJson_IssuerSpecAcmeSolvers(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CA configures this issuer to sign certificates using a signing CA keypair stored in a Secret resource. This is used to build internal PKIs that are managed by cert-manager. - * - * @schema IssuerSpecCa - */ -export interface IssuerSpecCa { - /** - * The CRL distribution points is an X.509 v3 certificate extension which identifies the location of the CRL from which the revocation of this certificate can be checked. If not set, certificates will be issued without distribution points set. - * - * @schema IssuerSpecCa#crlDistributionPoints - */ - readonly crlDistributionPoints?: string[]; - - /** - * The OCSP server list is an X.509 v3 extension that defines a list of URLs of OCSP responders. The OCSP responders can be queried for the revocation status of an issued certificate. If not set, the certificate will be issued with no OCSP servers set. For example, an OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org". - * - * @schema IssuerSpecCa#ocspServers - */ - readonly ocspServers?: string[]; - - /** - * SecretName is the name of the secret used to sign Certificates issued by this Issuer. - * - * @schema IssuerSpecCa#secretName - */ - readonly secretName: string; - -} - -/** - * Converts an object of type 'IssuerSpecCa' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecCa(obj: IssuerSpecCa | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'crlDistributionPoints': obj.crlDistributionPoints?.map(y => y), - 'ocspServers': obj.ocspServers?.map(y => y), - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object. - * - * @schema IssuerSpecSelfSigned - */ -export interface IssuerSpecSelfSigned { - /** - * The CRL distribution points is an X.509 v3 certificate extension which identifies the location of the CRL from which the revocation of this certificate can be checked. If not set certificate will be issued without CDP. Values are strings. - * - * @schema IssuerSpecSelfSigned#crlDistributionPoints - */ - readonly crlDistributionPoints?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecSelfSigned' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecSelfSigned(obj: IssuerSpecSelfSigned | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'crlDistributionPoints': obj.crlDistributionPoints?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend. - * - * @schema IssuerSpecVault - */ -export interface IssuerSpecVault { - /** - * Auth configures how cert-manager authenticates with the Vault server. - * - * @schema IssuerSpecVault#auth - */ - readonly auth: IssuerSpecVaultAuth; - - /** - * Base64-encoded bundle of PEM CAs which will be used to validate the certificate chain presented by Vault. Only used if using HTTPS to connect to Vault and ignored for HTTP connections. Mutually exclusive with CABundleSecretRef. If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in the cert-manager controller container is used to validate the TLS connection. - * - * @schema IssuerSpecVault#caBundle - */ - readonly caBundle?: string; - - /** - * Reference to a Secret containing a bundle of PEM-encoded CAs to use when verifying the certificate chain presented by Vault when using HTTPS. Mutually exclusive with CABundle. If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in the cert-manager controller container is used to validate the TLS connection. If no key for the Secret is specified, cert-manager will default to 'ca.crt'. - * - * @schema IssuerSpecVault#caBundleSecretRef - */ - readonly caBundleSecretRef?: IssuerSpecVaultCaBundleSecretRef; - - /** - * Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1" More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces - * - * @schema IssuerSpecVault#namespace - */ - readonly namespace?: string; - - /** - * Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g: "my_pki_mount/sign/my-role-name". - * - * @schema IssuerSpecVault#path - */ - readonly path: string; - - /** - * Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200". - * - * @schema IssuerSpecVault#server - */ - readonly server: string; - -} - -/** - * Converts an object of type 'IssuerSpecVault' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVault(obj: IssuerSpecVault | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'auth': toJson_IssuerSpecVaultAuth(obj.auth), - 'caBundle': obj.caBundle, - 'caBundleSecretRef': toJson_IssuerSpecVaultCaBundleSecretRef(obj.caBundleSecretRef), - 'namespace': obj.namespace, - 'path': obj.path, - 'server': obj.server, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone. - * - * @schema IssuerSpecVenafi - */ -export interface IssuerSpecVenafi { - /** - * Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified. - * - * @schema IssuerSpecVenafi#cloud - */ - readonly cloud?: IssuerSpecVenafiCloud; - - /** - * TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified. - * - * @schema IssuerSpecVenafi#tpp - */ - readonly tpp?: IssuerSpecVenafiTpp; - - /** - * Zone is the Venafi Policy Zone to use for this issuer. All requests made to the Venafi platform will be restricted by the named zone policy. This field is required. - * - * @schema IssuerSpecVenafi#zone - */ - readonly zone: string; - -} - -/** - * Converts an object of type 'IssuerSpecVenafi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVenafi(obj: IssuerSpecVenafi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cloud': toJson_IssuerSpecVenafiCloud(obj.cloud), - 'tpp': toJson_IssuerSpecVenafiTpp(obj.tpp), - 'zone': obj.zone, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ExternalAccountBinding is a reference to a CA external account of the ACME server. If set, upon registration cert-manager will attempt to associate the given external account credentials with the registered ACME account. - * - * @schema IssuerSpecAcmeExternalAccountBinding - */ -export interface IssuerSpecAcmeExternalAccountBinding { - /** - * Deprecated: keyAlgorithm field exists for historical compatibility reasons and should not be used. The algorithm is now hardcoded to HS256 in golang/x/crypto/acme. - * - * @schema IssuerSpecAcmeExternalAccountBinding#keyAlgorithm - */ - readonly keyAlgorithm?: IssuerSpecAcmeExternalAccountBindingKeyAlgorithm; - - /** - * keyID is the ID of the CA key that the External Account is bound to. - * - * @schema IssuerSpecAcmeExternalAccountBinding#keyID - */ - readonly keyId: string; - - /** - * keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes Secret which holds the symmetric MAC key of the External Account Binding. The `key` is the index string that is paired with the key data in the Secret and should not be confused with the key data itself, or indeed with the External Account Binding keyID above. The secret key stored in the Secret **must** be un-padded, base64 URL encoded data. - * - * @schema IssuerSpecAcmeExternalAccountBinding#keySecretRef - */ - readonly keySecretRef: IssuerSpecAcmeExternalAccountBindingKeySecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeExternalAccountBinding' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeExternalAccountBinding(obj: IssuerSpecAcmeExternalAccountBinding | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'keyAlgorithm': obj.keyAlgorithm, - 'keyID': obj.keyId, - 'keySecretRef': toJson_IssuerSpecAcmeExternalAccountBindingKeySecretRef(obj.keySecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PrivateKey is the name of a Kubernetes Secret resource that will be used to store the automatically generated ACME account private key. Optionally, a `key` may be specified to select a specific entry within the named Secret resource. If `key` is not specified, a default of `tls.key` will be used. - * - * @schema IssuerSpecAcmePrivateKeySecretRef - */ -export interface IssuerSpecAcmePrivateKeySecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmePrivateKeySecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmePrivateKeySecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmePrivateKeySecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmePrivateKeySecretRef(obj: IssuerSpecAcmePrivateKeySecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided. - * - * @schema IssuerSpecAcmeSolvers - */ -export interface IssuerSpecAcmeSolvers { - /** - * Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow. - * - * @schema IssuerSpecAcmeSolvers#dns01 - */ - readonly dns01?: IssuerSpecAcmeSolversDns01; - - /** - * Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism. - * - * @schema IssuerSpecAcmeSolvers#http01 - */ - readonly http01?: IssuerSpecAcmeSolversHttp01; - - /** - * Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead. - * - * @schema IssuerSpecAcmeSolvers#selector - */ - readonly selector?: IssuerSpecAcmeSolversSelector; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolvers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolvers(obj: IssuerSpecAcmeSolvers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'dns01': toJson_IssuerSpecAcmeSolversDns01(obj.dns01), - 'http01': toJson_IssuerSpecAcmeSolversHttp01(obj.http01), - 'selector': toJson_IssuerSpecAcmeSolversSelector(obj.selector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Auth configures how cert-manager authenticates with the Vault server. - * - * @schema IssuerSpecVaultAuth - */ -export interface IssuerSpecVaultAuth { - /** - * AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. - * - * @schema IssuerSpecVaultAuth#appRole - */ - readonly appRole?: IssuerSpecVaultAuthAppRole; - - /** - * Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. - * - * @schema IssuerSpecVaultAuth#kubernetes - */ - readonly kubernetes?: IssuerSpecVaultAuthKubernetes; - - /** - * TokenSecretRef authenticates with Vault by presenting a token. - * - * @schema IssuerSpecVaultAuth#tokenSecretRef - */ - readonly tokenSecretRef?: IssuerSpecVaultAuthTokenSecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuth' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuth(obj: IssuerSpecVaultAuth | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appRole': toJson_IssuerSpecVaultAuthAppRole(obj.appRole), - 'kubernetes': toJson_IssuerSpecVaultAuthKubernetes(obj.kubernetes), - 'tokenSecretRef': toJson_IssuerSpecVaultAuthTokenSecretRef(obj.tokenSecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Reference to a Secret containing a bundle of PEM-encoded CAs to use when verifying the certificate chain presented by Vault when using HTTPS. Mutually exclusive with CABundle. If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in the cert-manager controller container is used to validate the TLS connection. If no key for the Secret is specified, cert-manager will default to 'ca.crt'. - * - * @schema IssuerSpecVaultCaBundleSecretRef - */ -export interface IssuerSpecVaultCaBundleSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecVaultCaBundleSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecVaultCaBundleSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVaultCaBundleSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultCaBundleSecretRef(obj: IssuerSpecVaultCaBundleSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified. - * - * @schema IssuerSpecVenafiCloud - */ -export interface IssuerSpecVenafiCloud { - /** - * APITokenSecretRef is a secret key selector for the Venafi Cloud API token. - * - * @schema IssuerSpecVenafiCloud#apiTokenSecretRef - */ - readonly apiTokenSecretRef: IssuerSpecVenafiCloudApiTokenSecretRef; - - /** - * URL is the base URL for Venafi Cloud. Defaults to "https://api.venafi.cloud/v1". - * - * @default https://api.venafi.cloud/v1". - * @schema IssuerSpecVenafiCloud#url - */ - readonly url?: string; - -} - -/** - * Converts an object of type 'IssuerSpecVenafiCloud' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVenafiCloud(obj: IssuerSpecVenafiCloud | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiTokenSecretRef': toJson_IssuerSpecVenafiCloudApiTokenSecretRef(obj.apiTokenSecretRef), - 'url': obj.url, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified. - * - * @schema IssuerSpecVenafiTpp - */ -export interface IssuerSpecVenafiTpp { - /** - * Base64-encoded bundle of PEM CAs which will be used to validate the certificate chain presented by the TPP server. Only used if using HTTPS; ignored for HTTP. If undefined, the certificate bundle in the cert-manager controller container is used to validate the chain. - * - * @schema IssuerSpecVenafiTpp#caBundle - */ - readonly caBundle?: string; - - /** - * CredentialsRef is a reference to a Secret containing the username and password for the TPP server. The secret must contain two keys, 'username' and 'password'. - * - * @schema IssuerSpecVenafiTpp#credentialsRef - */ - readonly credentialsRef: IssuerSpecVenafiTppCredentialsRef; - - /** - * URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, for example: "https://tpp.example.com/vedsdk". - * - * @schema IssuerSpecVenafiTpp#url - */ - readonly url: string; - -} - -/** - * Converts an object of type 'IssuerSpecVenafiTpp' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVenafiTpp(obj: IssuerSpecVenafiTpp | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'caBundle': obj.caBundle, - 'credentialsRef': toJson_IssuerSpecVenafiTppCredentialsRef(obj.credentialsRef), - 'url': obj.url, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Deprecated: keyAlgorithm field exists for historical compatibility reasons and should not be used. The algorithm is now hardcoded to HS256 in golang/x/crypto/acme. - * - * @schema IssuerSpecAcmeExternalAccountBindingKeyAlgorithm - */ -export enum IssuerSpecAcmeExternalAccountBindingKeyAlgorithm { - /** HS256 */ - HS256 = "HS256", - /** HS384 */ - HS384 = "HS384", - /** HS512 */ - HS512 = "HS512", -} - -/** - * keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes Secret which holds the symmetric MAC key of the External Account Binding. The `key` is the index string that is paired with the key data in the Secret and should not be confused with the key data itself, or indeed with the External Account Binding keyID above. The secret key stored in the Secret **must** be un-padded, base64 URL encoded data. - * - * @schema IssuerSpecAcmeExternalAccountBindingKeySecretRef - */ -export interface IssuerSpecAcmeExternalAccountBindingKeySecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeExternalAccountBindingKeySecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeExternalAccountBindingKeySecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeExternalAccountBindingKeySecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeExternalAccountBindingKeySecretRef(obj: IssuerSpecAcmeExternalAccountBindingKeySecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow. - * - * @schema IssuerSpecAcmeSolversDns01 - */ -export interface IssuerSpecAcmeSolversDns01 { - /** - * Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#acmeDNS - */ - readonly acmeDns?: IssuerSpecAcmeSolversDns01AcmeDns; - - /** - * Use the Akamai DNS zone management API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#akamai - */ - readonly akamai?: IssuerSpecAcmeSolversDns01Akamai; - - /** - * Use the Microsoft Azure DNS API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#azureDNS - */ - readonly azureDns?: IssuerSpecAcmeSolversDns01AzureDns; - - /** - * Use the Google Cloud DNS API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#cloudDNS - */ - readonly cloudDns?: IssuerSpecAcmeSolversDns01CloudDns; - - /** - * Use the Cloudflare API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#cloudflare - */ - readonly cloudflare?: IssuerSpecAcmeSolversDns01Cloudflare; - - /** - * CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones. - * - * @schema IssuerSpecAcmeSolversDns01#cnameStrategy - */ - readonly cnameStrategy?: IssuerSpecAcmeSolversDns01CnameStrategy; - - /** - * Use the DigitalOcean DNS API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#digitalocean - */ - readonly digitalocean?: IssuerSpecAcmeSolversDns01Digitalocean; - - /** - * Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#rfc2136 - */ - readonly rfc2136?: IssuerSpecAcmeSolversDns01Rfc2136; - - /** - * Use the AWS Route53 API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#route53 - */ - readonly route53?: IssuerSpecAcmeSolversDns01Route53; - - /** - * Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01#webhook - */ - readonly webhook?: IssuerSpecAcmeSolversDns01Webhook; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01(obj: IssuerSpecAcmeSolversDns01 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'acmeDNS': toJson_IssuerSpecAcmeSolversDns01AcmeDns(obj.acmeDns), - 'akamai': toJson_IssuerSpecAcmeSolversDns01Akamai(obj.akamai), - 'azureDNS': toJson_IssuerSpecAcmeSolversDns01AzureDns(obj.azureDns), - 'cloudDNS': toJson_IssuerSpecAcmeSolversDns01CloudDns(obj.cloudDns), - 'cloudflare': toJson_IssuerSpecAcmeSolversDns01Cloudflare(obj.cloudflare), - 'cnameStrategy': obj.cnameStrategy, - 'digitalocean': toJson_IssuerSpecAcmeSolversDns01Digitalocean(obj.digitalocean), - 'rfc2136': toJson_IssuerSpecAcmeSolversDns01Rfc2136(obj.rfc2136), - 'route53': toJson_IssuerSpecAcmeSolversDns01Route53(obj.route53), - 'webhook': toJson_IssuerSpecAcmeSolversDns01Webhook(obj.webhook), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism. - * - * @schema IssuerSpecAcmeSolversHttp01 - */ -export interface IssuerSpecAcmeSolversHttp01 { - /** - * The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future. - * - * @schema IssuerSpecAcmeSolversHttp01#gatewayHTTPRoute - */ - readonly gatewayHttpRoute?: IssuerSpecAcmeSolversHttp01GatewayHttpRoute; - - /** - * The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed. - * - * @schema IssuerSpecAcmeSolversHttp01#ingress - */ - readonly ingress?: IssuerSpecAcmeSolversHttp01Ingress; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01(obj: IssuerSpecAcmeSolversHttp01 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gatewayHTTPRoute': toJson_IssuerSpecAcmeSolversHttp01GatewayHttpRoute(obj.gatewayHttpRoute), - 'ingress': toJson_IssuerSpecAcmeSolversHttp01Ingress(obj.ingress), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Selector selects a set of DNSNames on the Certificate resource that should be solved using this challenge solver. If not specified, the solver will be treated as the 'default' solver with the lowest priority, i.e. if any other solver has a more specific match, it will be used instead. - * - * @schema IssuerSpecAcmeSolversSelector - */ -export interface IssuerSpecAcmeSolversSelector { - /** - * List of DNSNames that this solver will be used to solve. If specified and a match is found, a dnsNames selector will take precedence over a dnsZones selector. If multiple solvers match with the same dnsNames value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected. - * - * @schema IssuerSpecAcmeSolversSelector#dnsNames - */ - readonly dnsNames?: string[]; - - /** - * List of DNSZones that this solver will be used to solve. The most specific DNS zone match specified here will take precedence over other DNS zone matches, so a solver specifying sys.example.com will be selected over one specifying example.com for the domain www.sys.example.com. If multiple solvers match with the same dnsZones value, the solver with the most matching labels in matchLabels will be selected. If neither has more matches, the solver defined earlier in the list will be selected. - * - * @schema IssuerSpecAcmeSolversSelector#dnsZones - */ - readonly dnsZones?: string[]; - - /** - * A label selector that is used to refine the set of certificate's that this challenge solver will apply to. - * - * @schema IssuerSpecAcmeSolversSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversSelector(obj: IssuerSpecAcmeSolversSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'dnsNames': obj.dnsNames?.map(y => y), - 'dnsZones': obj.dnsZones?.map(y => y), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. - * - * @schema IssuerSpecVaultAuthAppRole - */ -export interface IssuerSpecVaultAuthAppRole { - /** - * Path where the App Role authentication backend is mounted in Vault, e.g: "approle" - * - * @schema IssuerSpecVaultAuthAppRole#path - */ - readonly path: string; - - /** - * RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. - * - * @schema IssuerSpecVaultAuthAppRole#roleId - */ - readonly roleId: string; - - /** - * Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. - * - * @schema IssuerSpecVaultAuthAppRole#secretRef - */ - readonly secretRef: IssuerSpecVaultAuthAppRoleSecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuthAppRole' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuthAppRole(obj: IssuerSpecVaultAuthAppRole | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'roleId': obj.roleId, - 'secretRef': toJson_IssuerSpecVaultAuthAppRoleSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. - * - * @schema IssuerSpecVaultAuthKubernetes - */ -export interface IssuerSpecVaultAuthKubernetes { - /** - * The Vault mountPath here is the mount path to use when authenticating with Vault. For example, setting a value to `/v1/auth/foo`, will use the path `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the default value "/v1/auth/kubernetes" will be used. - * - * @schema IssuerSpecVaultAuthKubernetes#mountPath - */ - readonly mountPath?: string; - - /** - * A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. - * - * @schema IssuerSpecVaultAuthKubernetes#role - */ - readonly role: string; - - /** - * The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported. - * - * @schema IssuerSpecVaultAuthKubernetes#secretRef - */ - readonly secretRef?: IssuerSpecVaultAuthKubernetesSecretRef; - - /** - * A reference to a service account that will be used to request a bound token (also known as "projected token"). Compared to using "secretRef", using this field means that you don't rely on statically bound tokens. To use this field, you must configure an RBAC rule to let cert-manager request a token. - * - * @schema IssuerSpecVaultAuthKubernetes#serviceAccountRef - */ - readonly serviceAccountRef?: IssuerSpecVaultAuthKubernetesServiceAccountRef; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuthKubernetes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuthKubernetes(obj: IssuerSpecVaultAuthKubernetes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'role': obj.role, - 'secretRef': toJson_IssuerSpecVaultAuthKubernetesSecretRef(obj.secretRef), - 'serviceAccountRef': toJson_IssuerSpecVaultAuthKubernetesServiceAccountRef(obj.serviceAccountRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TokenSecretRef authenticates with Vault by presenting a token. - * - * @schema IssuerSpecVaultAuthTokenSecretRef - */ -export interface IssuerSpecVaultAuthTokenSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecVaultAuthTokenSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecVaultAuthTokenSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuthTokenSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuthTokenSecretRef(obj: IssuerSpecVaultAuthTokenSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * APITokenSecretRef is a secret key selector for the Venafi Cloud API token. - * - * @schema IssuerSpecVenafiCloudApiTokenSecretRef - */ -export interface IssuerSpecVenafiCloudApiTokenSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecVenafiCloudApiTokenSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecVenafiCloudApiTokenSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVenafiCloudApiTokenSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVenafiCloudApiTokenSecretRef(obj: IssuerSpecVenafiCloudApiTokenSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CredentialsRef is a reference to a Secret containing the username and password for the TPP server. The secret must contain two keys, 'username' and 'password'. - * - * @schema IssuerSpecVenafiTppCredentialsRef - */ -export interface IssuerSpecVenafiTppCredentialsRef { - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecVenafiTppCredentialsRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVenafiTppCredentialsRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVenafiTppCredentialsRef(obj: IssuerSpecVenafiTppCredentialsRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01AcmeDns - */ -export interface IssuerSpecAcmeSolversDns01AcmeDns { - /** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01AcmeDns#accountSecretRef - */ - readonly accountSecretRef: IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef; - - /** - * @schema IssuerSpecAcmeSolversDns01AcmeDns#host - */ - readonly host: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AcmeDns' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AcmeDns(obj: IssuerSpecAcmeSolversDns01AcmeDns | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accountSecretRef': toJson_IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef(obj.accountSecretRef), - 'host': obj.host, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use the Akamai DNS zone management API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01Akamai - */ -export interface IssuerSpecAcmeSolversDns01Akamai { - /** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01Akamai#accessTokenSecretRef - */ - readonly accessTokenSecretRef: IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef; - - /** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01Akamai#clientSecretSecretRef - */ - readonly clientSecretSecretRef: IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef; - - /** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01Akamai#clientTokenSecretRef - */ - readonly clientTokenSecretRef: IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef; - - /** - * @schema IssuerSpecAcmeSolversDns01Akamai#serviceConsumerDomain - */ - readonly serviceConsumerDomain: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Akamai' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Akamai(obj: IssuerSpecAcmeSolversDns01Akamai | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessTokenSecretRef': toJson_IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef(obj.accessTokenSecretRef), - 'clientSecretSecretRef': toJson_IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef(obj.clientSecretSecretRef), - 'clientTokenSecretRef': toJson_IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef(obj.clientTokenSecretRef), - 'serviceConsumerDomain': obj.serviceConsumerDomain, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use the Microsoft Azure DNS API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01AzureDns - */ -export interface IssuerSpecAcmeSolversDns01AzureDns { - /** - * if both this and ClientSecret are left unset MSI will be used - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#clientID - */ - readonly clientId?: string; - - /** - * if both this and ClientID are left unset MSI will be used - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#clientSecretSecretRef - */ - readonly clientSecretSecretRef?: IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef; - - /** - * name of the Azure environment (default AzurePublicCloud) - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#environment - */ - readonly environment?: IssuerSpecAcmeSolversDns01AzureDnsEnvironment; - - /** - * name of the DNS zone that should be used - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#hostedZoneName - */ - readonly hostedZoneName?: string; - - /** - * managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#managedIdentity - */ - readonly managedIdentity?: IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity; - - /** - * resource group the DNS zone is located in - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#resourceGroupName - */ - readonly resourceGroupName: string; - - /** - * ID of the Azure subscription - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#subscriptionID - */ - readonly subscriptionId: string; - - /** - * when specifying ClientID and ClientSecret then this field is also needed - * - * @schema IssuerSpecAcmeSolversDns01AzureDns#tenantID - */ - readonly tenantId?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AzureDns' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AzureDns(obj: IssuerSpecAcmeSolversDns01AzureDns | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientID': obj.clientId, - 'clientSecretSecretRef': toJson_IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef(obj.clientSecretSecretRef), - 'environment': obj.environment, - 'hostedZoneName': obj.hostedZoneName, - 'managedIdentity': toJson_IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity(obj.managedIdentity), - 'resourceGroupName': obj.resourceGroupName, - 'subscriptionID': obj.subscriptionId, - 'tenantID': obj.tenantId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use the Google Cloud DNS API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01CloudDns - */ -export interface IssuerSpecAcmeSolversDns01CloudDns { - /** - * HostedZoneName is an optional field that tells cert-manager in which Cloud DNS zone the challenge record has to be created. If left empty cert-manager will automatically choose a zone. - * - * @schema IssuerSpecAcmeSolversDns01CloudDns#hostedZoneName - */ - readonly hostedZoneName?: string; - - /** - * @schema IssuerSpecAcmeSolversDns01CloudDns#project - */ - readonly project: string; - - /** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01CloudDns#serviceAccountSecretRef - */ - readonly serviceAccountSecretRef?: IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01CloudDns' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01CloudDns(obj: IssuerSpecAcmeSolversDns01CloudDns | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hostedZoneName': obj.hostedZoneName, - 'project': obj.project, - 'serviceAccountSecretRef': toJson_IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef(obj.serviceAccountSecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use the Cloudflare API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01Cloudflare - */ -export interface IssuerSpecAcmeSolversDns01Cloudflare { - /** - * API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions. - * - * @schema IssuerSpecAcmeSolversDns01Cloudflare#apiKeySecretRef - */ - readonly apiKeySecretRef?: IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef; - - /** - * API token used to authenticate with Cloudflare. - * - * @schema IssuerSpecAcmeSolversDns01Cloudflare#apiTokenSecretRef - */ - readonly apiTokenSecretRef?: IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef; - - /** - * Email of the account, only required when using API key based authentication. - * - * @schema IssuerSpecAcmeSolversDns01Cloudflare#email - */ - readonly email?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Cloudflare' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Cloudflare(obj: IssuerSpecAcmeSolversDns01Cloudflare | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiKeySecretRef': toJson_IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef(obj.apiKeySecretRef), - 'apiTokenSecretRef': toJson_IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef(obj.apiTokenSecretRef), - 'email': obj.email, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones. - * - * @schema IssuerSpecAcmeSolversDns01CnameStrategy - */ -export enum IssuerSpecAcmeSolversDns01CnameStrategy { - /** None */ - NONE = "None", - /** Follow */ - FOLLOW = "Follow", -} - -/** - * Use the DigitalOcean DNS API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01Digitalocean - */ -export interface IssuerSpecAcmeSolversDns01Digitalocean { - /** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01Digitalocean#tokenSecretRef - */ - readonly tokenSecretRef: IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Digitalocean' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Digitalocean(obj: IssuerSpecAcmeSolversDns01Digitalocean | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'tokenSecretRef': toJson_IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef(obj.tokenSecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136 - */ -export interface IssuerSpecAcmeSolversDns01Rfc2136 { - /** - * The IP address or hostname of an authoritative DNS server supporting RFC2136 in the form host:port. If the host is an IPv6 address it must be enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. This field is required. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136#nameserver - */ - readonly nameserver: string; - - /** - * The TSIG Algorithm configured in the DNS supporting RFC2136. Used only when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. Supported values are (case-insensitive): ``HMACMD5`` (default), ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136#tsigAlgorithm - */ - readonly tsigAlgorithm?: string; - - /** - * The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136#tsigKeyName - */ - readonly tsigKeyName?: string; - - /** - * The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136#tsigSecretSecretRef - */ - readonly tsigSecretSecretRef?: IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Rfc2136' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Rfc2136(obj: IssuerSpecAcmeSolversDns01Rfc2136 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nameserver': obj.nameserver, - 'tsigAlgorithm': obj.tsigAlgorithm, - 'tsigKeyName': obj.tsigKeyName, - 'tsigSecretSecretRef': toJson_IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef(obj.tsigSecretSecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Use the AWS Route53 API to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01Route53 - */ -export interface IssuerSpecAcmeSolversDns01Route53 { - /** - * The AccessKeyID is used for authentication. Cannot be set when SecretAccessKeyID is set. If neither the Access Key nor Key ID are set, we fall-back to using env vars, shared credentials file or AWS Instance metadata, see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials - * - * @schema IssuerSpecAcmeSolversDns01Route53#accessKeyID - */ - readonly accessKeyId?: string; - - /** - * The SecretAccessKey is used for authentication. If set, pull the AWS access key ID from a key within a Kubernetes Secret. Cannot be set when AccessKeyID is set. If neither the Access Key nor Key ID are set, we fall-back to using env vars, shared credentials file or AWS Instance metadata, see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials - * - * @schema IssuerSpecAcmeSolversDns01Route53#accessKeyIDSecretRef - */ - readonly accessKeyIdSecretRef?: IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef; - - /** - * If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call. - * - * @schema IssuerSpecAcmeSolversDns01Route53#hostedZoneID - */ - readonly hostedZoneId?: string; - - /** - * Always set the region when using AccessKeyID and SecretAccessKey - * - * @schema IssuerSpecAcmeSolversDns01Route53#region - */ - readonly region: string; - - /** - * Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata - * - * @schema IssuerSpecAcmeSolversDns01Route53#role - */ - readonly role?: string; - - /** - * The SecretAccessKey is used for authentication. If neither the Access Key nor Key ID are set, we fall-back to using env vars, shared credentials file or AWS Instance metadata, see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials - * - * @schema IssuerSpecAcmeSolversDns01Route53#secretAccessKeySecretRef - */ - readonly secretAccessKeySecretRef?: IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Route53' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Route53(obj: IssuerSpecAcmeSolversDns01Route53 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessKeyID': obj.accessKeyId, - 'accessKeyIDSecretRef': toJson_IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef(obj.accessKeyIdSecretRef), - 'hostedZoneID': obj.hostedZoneId, - 'region': obj.region, - 'role': obj.role, - 'secretAccessKeySecretRef': toJson_IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef(obj.secretAccessKeySecretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records. - * - * @schema IssuerSpecAcmeSolversDns01Webhook - */ -export interface IssuerSpecAcmeSolversDns01Webhook { - /** - * Additional configuration that should be passed to the webhook apiserver when challenges are processed. This can contain arbitrary JSON data. Secret values should not be specified in this stanza. If secret values are needed (e.g. credentials for a DNS service), you should use a SecretKeySelector to reference a Secret resource. For details on the schema of this field, consult the webhook provider implementation's documentation. - * - * @schema IssuerSpecAcmeSolversDns01Webhook#config - */ - readonly config?: any; - - /** - * The API group name that should be used when POSTing ChallengePayload resources to the webhook apiserver. This should be the same as the GroupName specified in the webhook provider implementation. - * - * @schema IssuerSpecAcmeSolversDns01Webhook#groupName - */ - readonly groupName: string; - - /** - * The name of the solver to use, as defined in the webhook provider implementation. This will typically be the name of the provider, e.g. 'cloudflare'. - * - * @schema IssuerSpecAcmeSolversDns01Webhook#solverName - */ - readonly solverName: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Webhook' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Webhook(obj: IssuerSpecAcmeSolversDns01Webhook | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'config': obj.config, - 'groupName': obj.groupName, - 'solverName': obj.solverName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future. - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRoute - */ -export interface IssuerSpecAcmeSolversHttp01GatewayHttpRoute { - /** - * Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges. - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRoute#labels - */ - readonly labels?: { [key: string]: string }; - - /** - * When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. cert-manager needs to know which parentRefs should be used when creating the HTTPRoute. Usually, the parentRef references a Gateway. See: https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRoute#parentRefs - */ - readonly parentRefs?: IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs[]; - - /** - * Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRoute#serviceType - */ - readonly serviceType?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01GatewayHttpRoute' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01GatewayHttpRoute(obj: IssuerSpecAcmeSolversHttp01GatewayHttpRoute | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'parentRefs': obj.parentRefs?.map(y => toJson_IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs(y)), - 'serviceType': obj.serviceType, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The ingress based HTTP01 challenge solver will solve challenges by creating or modifying Ingress resources in order to route requests for '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are provisioned by cert-manager for each Challenge to be completed. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress - */ -export interface IssuerSpecAcmeSolversHttp01Ingress { - /** - * This field configures the annotation `kubernetes.io/ingress.class` when creating Ingress resources to solve ACME challenges that use this challenge solver. Only one of `class`, `name` or `ingressClassName` may be specified. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress#class - */ - readonly class?: string; - - /** - * This field configures the field `ingressClassName` on the created Ingress resources used to solve ACME challenges that use this challenge solver. This is the recommended way of configuring the ingress class. Only one of `class`, `name` or `ingressClassName` may be specified. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress#ingressClassName - */ - readonly ingressClassName?: string; - - /** - * Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress#ingressTemplate - */ - readonly ingressTemplate?: IssuerSpecAcmeSolversHttp01IngressIngressTemplate; - - /** - * The name of the ingress resource that should have ACME challenge solving routes inserted into it in order to solve HTTP01 challenges. This is typically used in conjunction with ingress controllers like ingress-gce, which maintains a 1:1 mapping between external IPs and ingress resources. Only one of `class`, `name` or `ingressClassName` may be specified. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress#name - */ - readonly name?: string; - - /** - * Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress#podTemplate - */ - readonly podTemplate?: IssuerSpecAcmeSolversHttp01IngressPodTemplate; - - /** - * Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - * - * @schema IssuerSpecAcmeSolversHttp01Ingress#serviceType - */ - readonly serviceType?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01Ingress' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01Ingress(obj: IssuerSpecAcmeSolversHttp01Ingress | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'class': obj.class, - 'ingressClassName': obj.ingressClassName, - 'ingressTemplate': toJson_IssuerSpecAcmeSolversHttp01IngressIngressTemplate(obj.ingressTemplate), - 'name': obj.name, - 'podTemplate': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplate(obj.podTemplate), - 'serviceType': obj.serviceType, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. - * - * @schema IssuerSpecVaultAuthAppRoleSecretRef - */ -export interface IssuerSpecVaultAuthAppRoleSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecVaultAuthAppRoleSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecVaultAuthAppRoleSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuthAppRoleSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuthAppRoleSecretRef(obj: IssuerSpecVaultAuthAppRoleSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported. - * - * @schema IssuerSpecVaultAuthKubernetesSecretRef - */ -export interface IssuerSpecVaultAuthKubernetesSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecVaultAuthKubernetesSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecVaultAuthKubernetesSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuthKubernetesSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuthKubernetesSecretRef(obj: IssuerSpecVaultAuthKubernetesSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a service account that will be used to request a bound token (also known as "projected token"). Compared to using "secretRef", using this field means that you don't rely on statically bound tokens. To use this field, you must configure an RBAC rule to let cert-manager request a token. - * - * @schema IssuerSpecVaultAuthKubernetesServiceAccountRef - */ -export interface IssuerSpecVaultAuthKubernetesServiceAccountRef { - /** - * Name of the ServiceAccount used to request a token. - * - * @schema IssuerSpecVaultAuthKubernetesServiceAccountRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecVaultAuthKubernetesServiceAccountRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecVaultAuthKubernetesServiceAccountRef(obj: IssuerSpecVaultAuthKubernetesServiceAccountRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef - */ -export interface IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef(obj: IssuerSpecAcmeSolversDns01AcmeDnsAccountSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef - */ -export interface IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef(obj: IssuerSpecAcmeSolversDns01AkamaiAccessTokenSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef - */ -export interface IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef(obj: IssuerSpecAcmeSolversDns01AkamaiClientSecretSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef - */ -export interface IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef(obj: IssuerSpecAcmeSolversDns01AkamaiClientTokenSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * if both this and ClientID are left unset MSI will be used - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef - */ -export interface IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef(obj: IssuerSpecAcmeSolversDns01AzureDnsClientSecretSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * name of the Azure environment (default AzurePublicCloud) - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsEnvironment - */ -export enum IssuerSpecAcmeSolversDns01AzureDnsEnvironment { - /** AzurePublicCloud */ - AZURE_PUBLIC_CLOUD = "AzurePublicCloud", - /** AzureChinaCloud */ - AZURE_CHINA_CLOUD = "AzureChinaCloud", - /** AzureGermanCloud */ - AZURE_GERMAN_CLOUD = "AzureGermanCloud", - /** AzureUSGovernmentCloud */ - AZURE_US_GOVERNMENT_CLOUD = "AzureUSGovernmentCloud", -} - -/** - * managed identity configuration, can not be used at the same time as clientID, clientSecretSecretRef or tenantID - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity - */ -export interface IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity { - /** - * client ID of the managed identity, can not be used at the same time as resourceID - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity#clientID - */ - readonly clientId?: string; - - /** - * resource ID of the managed identity, can not be used at the same time as clientID - * - * @schema IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity#resourceID - */ - readonly resourceId?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity(obj: IssuerSpecAcmeSolversDns01AzureDnsManagedIdentity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientID': obj.clientId, - 'resourceID': obj.resourceId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef - */ -export interface IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef(obj: IssuerSpecAcmeSolversDns01CloudDnsServiceAccountSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * API key to use to authenticate with Cloudflare. Note: using an API token to authenticate is now the recommended method as it allows greater control of permissions. - * - * @schema IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef - */ -export interface IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef(obj: IssuerSpecAcmeSolversDns01CloudflareApiKeySecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * API token used to authenticate with Cloudflare. - * - * @schema IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef - */ -export interface IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef(obj: IssuerSpecAcmeSolversDns01CloudflareApiTokenSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - * - * @schema IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef - */ -export interface IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef(obj: IssuerSpecAcmeSolversDns01DigitaloceanTokenSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef - */ -export interface IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef(obj: IssuerSpecAcmeSolversDns01Rfc2136TsigSecretSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The SecretAccessKey is used for authentication. If set, pull the AWS access key ID from a key within a Kubernetes Secret. Cannot be set when AccessKeyID is set. If neither the Access Key nor Key ID are set, we fall-back to using env vars, shared credentials file or AWS Instance metadata, see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials - * - * @schema IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef - */ -export interface IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef(obj: IssuerSpecAcmeSolversDns01Route53AccessKeyIdSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The SecretAccessKey is used for authentication. If neither the Access Key nor Key ID are set, we fall-back to using env vars, shared credentials file or AWS Instance metadata, see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials - * - * @schema IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef - */ -export interface IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef { - /** - * The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - * - * @schema IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef#key - */ - readonly key?: string; - - /** - * Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef(obj: IssuerSpecAcmeSolversDns01Route53SecretAccessKeySecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ParentReference identifies an API object (usually a Gateway) that can be considered a parent of this resource (usually a route). There are two kinds of parent resources with "Core" support: - * * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) - * This API may be extended in the future to support additional kinds of parent resources. - * The API object must be valid in the cluster; the Group and Kind must be registered in the cluster for this reference to be valid. - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs - */ -export interface IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs { - /** - * Group is the group of the referent. When unspecified, "gateway.networking.k8s.io" is inferred. To set the core API group (such as for a "Service" kind referent), Group must be explicitly set to "" (empty string). - * Support: Core - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs#group - */ - readonly group?: string; - - /** - * Kind is kind of the referent. - * There are two kinds of parent resources with "Core" support: - * * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) - * Support for other resources is Implementation-Specific. - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs#kind - */ - readonly kind?: string; - - /** - * Name is the name of the referent. - * Support: Core - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs#name - */ - readonly name: string; - - /** - * Namespace is the namespace of the referent. When unspecified, this refers to the local namespace of the Route. - * Note that there are specific rules for ParentRefs which cross namespace boundaries. Cross-namespace references are only valid if they are explicitly allowed by something in the namespace they are referring to. For example: Gateway has the AllowedRoutes field, and ReferenceGrant provides a generic way to enable any other kind of cross-namespace reference. - * ParentRefs from a Route to a Service in the same namespace are "producer" routes, which apply default routing rules to inbound connections from any namespace to the Service. - * ParentRefs from a Route to a Service in a different namespace are "consumer" routes, and these routing rules are only applied to outbound connections originating from the same namespace as the Route, for which the intended destination of the connections are a Service targeted as a ParentRef of the Route. - * Support: Core - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs#namespace - */ - readonly namespace?: string; - - /** - * Port is the network port this Route targets. It can be interpreted differently based on the type of parent resource. - * When the parent resource is a Gateway, this targets all listeners listening on the specified port that also support this kind of Route(and select this Route). It's not recommended to set `Port` unless the networking behaviors specified in a Route must apply to a specific port as opposed to a listener(s) whose port(s) may be changed. When both Port and SectionName are specified, the name and port of the selected listener must match both specified values. - * When the parent resource is a Service, this targets a specific port in the Service spec. When both Port (experimental) and SectionName are specified, the name and port of the selected port must match both specified values. - * Implementations MAY choose to support other parent resources. Implementations supporting other types of parent resources MUST clearly document how/if Port is interpreted. - * For the purpose of status, an attachment is considered successful as long as the parent resource accepts it partially. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway. - * Support: Extended - * - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs#port - */ - readonly port?: number; - - /** - * SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following: - * * Gateway: Listener Name. When both Port (experimental) and SectionName are specified, the name and port of the selected listener must match both specified values. * Service: Port Name. When both Port (experimental) and SectionName are specified, the name and port of the selected listener must match both specified values. Note that attaching Routes to Services as Parents is part of experimental Mesh support and is not supported for any other purpose. - * Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted. - * When unspecified (empty string), this will reference the entire resource. For the purpose of status, an attachment is considered successful if at least one section in the parent resource accepts it. For example, Gateway listeners can restrict which Routes can attach to them by Route kind, namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from the referencing Route, the Route MUST be considered successfully attached. If no Gateway listeners accept attachment from this Route, the Route MUST be considered detached from the Gateway. - * Support: Core - * - * @schema IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs#sectionName - */ - readonly sectionName?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs(obj: IssuerSpecAcmeSolversHttp01GatewayHttpRouteParentRefs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - 'port': obj.port, - 'sectionName': obj.sectionName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges. - * - * @schema IssuerSpecAcmeSolversHttp01IngressIngressTemplate - */ -export interface IssuerSpecAcmeSolversHttp01IngressIngressTemplate { - /** - * ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressIngressTemplate#metadata - */ - readonly metadata?: IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressIngressTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressIngressTemplate(obj: IssuerSpecAcmeSolversHttp01IngressIngressTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata(obj.metadata), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplate - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplate { - /** - * ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplate#metadata - */ - readonly metadata?: IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata; - - /** - * PodSpec defines overrides for the HTTP01 challenge solver pod. Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. All other fields will be ignored. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplate#spec - */ - readonly spec?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplate(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata(obj.metadata), - 'spec': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ObjectMeta overrides for the ingress used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata - */ -export interface IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata { - /** - * Annotations that should be added to the created ACME HTTP01 solver ingress. - * - * @schema IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * Labels that should be added to the created ACME HTTP01 solver ingress. - * - * @schema IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata(obj: IssuerSpecAcmeSolversHttp01IngressIngressTemplateMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ObjectMeta overrides for the pod used to solve HTTP01 challenges. Only the 'labels' and 'annotations' fields may be set. If labels or annotations overlap with in-built values, the values here will override the in-built values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata { - /** - * Annotations that should be added to the create ACME HTTP01 solver pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * Labels that should be added to the created ACME HTTP01 solver pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata#labels - */ - readonly labels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSpec defines overrides for the HTTP01 challenge solver pod. Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. All other fields will be ignored. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec { - /** - * If specified, the pod's scheduling constraints - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec#affinity - */ - readonly affinity?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity; - - /** - * If specified, the pod's imagePullSecrets - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec#imagePullSecrets - */ - readonly imagePullSecrets?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets[]; - - /** - * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * If specified, the pod's priorityClassName. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec#priorityClassName - */ - readonly priorityClassName?: string; - - /** - * If specified, the pod's service account - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec#serviceAccountName - */ - readonly serviceAccountName?: string; - - /** - * If specified, the pod's tolerations. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec#tolerations - */ - readonly tolerations?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'affinity': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity(obj.affinity), - 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets(y)), - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'priorityClassName': obj.priorityClassName, - 'serviceAccountName': obj.serviceAccountName, - 'tolerations': obj.tolerations?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * If specified, the pod's scheduling constraints - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity { - /** - * Describes node affinity scheduling rules for the pod. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity#nodeAffinity - */ - readonly nodeAffinity?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity; - - /** - * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity#podAffinity - */ - readonly podAffinity?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity; - - /** - * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecImagePullSecrets | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations { - /** - * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations#effect - */ - readonly effect?: string; - - /** - * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations#key - */ - readonly key?: string; - - /** - * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * - * @default Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations#operator - */ - readonly operator?: string; - - /** - * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Describes node affinity scheduling rules for the pod. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * A node selector term, associated with the corresponding weight. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * Required. A list of node selector terms. The terms are ORed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * Required. A pod affinity term, associated with the corresponding weight. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * Required. A pod affinity term, associated with the corresponding weight. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector term, associated with the corresponding weight. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * A list of node selector requirements by node's labels. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * A list of node selector requirements by node's fields. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * A list of node selector requirements by node's labels. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * A list of node selector requirements by node's fields. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Required. A pod affinity term, associated with the corresponding weight. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Required. A pod affinity term, associated with the corresponding weight. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'namespaceSelector': toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * The label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * The label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * The label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * The label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over a set of resources, in this case pods. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * key is the label key that the selector applies to. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: IssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - diff --git a/.devops/aws/src/imports/datadoghq.com.ts b/.devops/aws/src/imports/datadoghq.com.ts deleted file mode 100644 index d707be2..0000000 --- a/.devops/aws/src/imports/datadoghq.com.ts +++ /dev/null @@ -1,147 +0,0 @@ -// generated by cdk8s -import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - - -/** - * DatadogMetric allows autoscaling on arbitrary Datadog query - * - * @schema DatadogMetric - */ -export class DatadogMetric extends ApiObject { - /** - * Returns the apiVersion and kind for "DatadogMetric" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'datadoghq.com/v1alpha1', - kind: 'DatadogMetric', - } - - /** - * Renders a Kubernetes manifest for "DatadogMetric". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: DatadogMetricProps = {}): any { - return { - ...DatadogMetric.GVK, - ...toJson_DatadogMetricProps(props), - }; - } - - /** - * Defines a "DatadogMetric" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: DatadogMetricProps = {}) { - super(scope, id, { - ...DatadogMetric.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...DatadogMetric.GVK, - ...toJson_DatadogMetricProps(resolved), - }; - } -} - -/** - * DatadogMetric allows autoscaling on arbitrary Datadog query - * - * @schema DatadogMetric - */ -export interface DatadogMetricProps { - /** - * @schema DatadogMetric#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * DatadogMetricSpec defines the desired state of DatadogMetric - * - * @schema DatadogMetric#spec - */ - readonly spec?: DatadogMetricSpec; - -} - -/** - * Converts an object of type 'DatadogMetricProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DatadogMetricProps(obj: DatadogMetricProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_DatadogMetricSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DatadogMetricSpec defines the desired state of DatadogMetric - * - * @schema DatadogMetricSpec - */ -export interface DatadogMetricSpec { - /** - * ExternalMetricName is reserved for internal use - * - * @schema DatadogMetricSpec#externalMetricName - */ - readonly externalMetricName?: string; - - /** - * MaxAge provides the max age for the metric query (overrides the default setting `external_metrics_provider.max_age`) - * - * @schema DatadogMetricSpec#maxAge - */ - readonly maxAge?: string; - - /** - * Query is the raw datadog query - * - * @schema DatadogMetricSpec#query - */ - readonly query?: string; - - /** - * TimeWindow provides the time window for the metric query, defaults to MaxAge. - * - * @schema DatadogMetricSpec#timeWindow - */ - readonly timeWindow?: string; - -} - -/** - * Converts an object of type 'DatadogMetricSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DatadogMetricSpec(obj: DatadogMetricSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'externalMetricName': obj.externalMetricName, - 'maxAge': obj.maxAge, - 'query': obj.query, - 'timeWindow': obj.timeWindow, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - diff --git a/.devops/aws/src/imports/k8s.d.ts b/.devops/aws/src/imports/k8s.d.ts deleted file mode 100644 index fed0b0f..0000000 --- a/.devops/aws/src/imports/k8s.d.ts +++ /dev/null @@ -1,19691 +0,0 @@ -import { ApiObject, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - -/** - * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration - */ -export declare class KubeMutatingWebhookConfiguration extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeMutatingWebhookConfigurationProps): any; - /** - * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeMutatingWebhookConfigurationProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList - */ -export declare class KubeMutatingWebhookConfigurationList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeMutatingWebhookConfigurationListProps): any; - /** - * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeMutatingWebhookConfigurationListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration - */ -export declare class KubeValidatingWebhookConfiguration extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeValidatingWebhookConfigurationProps): any; - /** - * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeValidatingWebhookConfigurationProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList - */ -export declare class KubeValidatingWebhookConfigurationList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeValidatingWebhookConfigurationListProps): any; - /** - * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeValidatingWebhookConfigurationListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * - Storage version of a specific resource. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion - */ -export declare class KubeStorageVersionV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeStorageVersionV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeStorageVersionV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * A list of StorageVersions. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList - */ -export declare class KubeStorageVersionListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeStorageVersionListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeStorageVersionListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - * - * @schema io.k8s.api.apps.v1.ControllerRevision - */ -export declare class KubeControllerRevision extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevision" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevision". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeControllerRevisionProps): any; - /** - * Defines a "io.k8s.api.apps.v1.ControllerRevision" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeControllerRevisionProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ControllerRevisionList is a resource containing a list of ControllerRevision objects. - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList - */ -export declare class KubeControllerRevisionList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevisionList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevisionList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeControllerRevisionListProps): any; - /** - * Defines a "io.k8s.api.apps.v1.ControllerRevisionList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeControllerRevisionListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * DaemonSet represents the configuration of a daemon set. - * - * @schema io.k8s.api.apps.v1.DaemonSet - */ -export declare class KubeDaemonSet extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSet" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSet". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeDaemonSetProps): any; - /** - * Defines a "io.k8s.api.apps.v1.DaemonSet" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeDaemonSetProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * DaemonSetList is a collection of daemon sets. - * - * @schema io.k8s.api.apps.v1.DaemonSetList - */ -export declare class KubeDaemonSetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSetList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeDaemonSetListProps): any; - /** - * Defines a "io.k8s.api.apps.v1.DaemonSetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeDaemonSetListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Deployment enables declarative updates for Pods and ReplicaSets. - * - * @schema io.k8s.api.apps.v1.Deployment - */ -export declare class KubeDeployment extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.Deployment" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.Deployment". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeDeploymentProps): any; - /** - * Defines a "io.k8s.api.apps.v1.Deployment" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeDeploymentProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * DeploymentList is a list of Deployments. - * - * @schema io.k8s.api.apps.v1.DeploymentList - */ -export declare class KubeDeploymentList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DeploymentList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DeploymentList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeDeploymentListProps): any; - /** - * Defines a "io.k8s.api.apps.v1.DeploymentList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeDeploymentListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ReplicaSet ensures that a specified number of pod replicas are running at any given time. - * - * @schema io.k8s.api.apps.v1.ReplicaSet - */ -export declare class KubeReplicaSet extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSet" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSet". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeReplicaSetProps): any; - /** - * Defines a "io.k8s.api.apps.v1.ReplicaSet" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeReplicaSetProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ReplicaSetList is a collection of ReplicaSets. - * - * @schema io.k8s.api.apps.v1.ReplicaSetList - */ -export declare class KubeReplicaSetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSetList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeReplicaSetListProps): any; - /** - * Defines a "io.k8s.api.apps.v1.ReplicaSetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeReplicaSetListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. -The StatefulSet guarantees that a given network identity will always map to the same storage identity. - * - * @schema io.k8s.api.apps.v1.StatefulSet - */ -export declare class KubeStatefulSet extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSet" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSet". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeStatefulSetProps): any; - /** - * Defines a "io.k8s.api.apps.v1.StatefulSet" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeStatefulSetProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * StatefulSetList is a collection of StatefulSets. - * - * @schema io.k8s.api.apps.v1.StatefulSetList - */ -export declare class KubeStatefulSetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSetList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeStatefulSetListProps): any; - /** - * Defines a "io.k8s.api.apps.v1.StatefulSetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeStatefulSetListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * TokenRequest requests a token for a given service account. - * - * @schema io.k8s.api.authentication.v1.TokenRequest - */ -export declare class KubeTokenRequest extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenRequest" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenRequest". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeTokenRequestProps): any; - /** - * Defines a "io.k8s.api.authentication.v1.TokenRequest" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeTokenRequestProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - * - * @schema io.k8s.api.authentication.v1.TokenReview - */ -export declare class KubeTokenReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenReview" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeTokenReviewProps): any; - /** - * Defines a "io.k8s.api.authentication.v1.TokenReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeTokenReviewProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview - */ -export declare class KubeLocalSubjectAccessReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.LocalSubjectAccessReview" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.LocalSubjectAccessReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeLocalSubjectAccessReviewProps): any; - /** - * Defines a "io.k8s.api.authorization.v1.LocalSubjectAccessReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeLocalSubjectAccessReviewProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview - */ -export declare class KubeSelfSubjectAccessReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectAccessReview" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectAccessReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeSelfSubjectAccessReviewProps): any; - /** - * Defines a "io.k8s.api.authorization.v1.SelfSubjectAccessReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeSelfSubjectAccessReviewProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview - */ -export declare class KubeSelfSubjectRulesReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectRulesReview" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectRulesReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeSelfSubjectRulesReviewProps): any; - /** - * Defines a "io.k8s.api.authorization.v1.SelfSubjectRulesReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeSelfSubjectRulesReviewProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * SubjectAccessReview checks whether or not a user or group can perform an action. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview - */ -export declare class KubeSubjectAccessReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SubjectAccessReview" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SubjectAccessReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeSubjectAccessReviewProps): any; - /** - * Defines a "io.k8s.api.authorization.v1.SubjectAccessReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeSubjectAccessReviewProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * configuration of a horizontal pod autoscaler. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler - */ -export declare class KubeHorizontalPodAutoscaler extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeHorizontalPodAutoscalerProps): any; - /** - * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeHorizontalPodAutoscalerProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList - */ -export declare class KubeHorizontalPodAutoscalerList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeHorizontalPodAutoscalerListProps): any; - /** - * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeHorizontalPodAutoscalerListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Scale represents a scaling request for a resource. - * - * @schema io.k8s.api.autoscaling.v1.Scale - */ -export declare class KubeScale extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.Scale" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.Scale". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeScaleProps): any; - /** - * Defines a "io.k8s.api.autoscaling.v1.Scale" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeScaleProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler - */ -export declare class KubeHorizontalPodAutoscalerV2Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeHorizontalPodAutoscalerV2Beta1Props): any; - /** - * Defines a "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeHorizontalPodAutoscalerV2Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList - */ -export declare class KubeHorizontalPodAutoscalerListV2Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeHorizontalPodAutoscalerListV2Beta1Props): any; - /** - * Defines a "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeHorizontalPodAutoscalerListV2Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler - */ -export declare class KubeHorizontalPodAutoscalerV2Beta2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeHorizontalPodAutoscalerV2Beta2Props): any; - /** - * Defines a "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeHorizontalPodAutoscalerV2Beta2Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList - */ -export declare class KubeHorizontalPodAutoscalerListV2Beta2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeHorizontalPodAutoscalerListV2Beta2Props): any; - /** - * Defines a "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeHorizontalPodAutoscalerListV2Beta2Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CronJob represents the configuration of a single cron job. - * - * @schema io.k8s.api.batch.v1.CronJob - */ -export declare class KubeCronJob extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJob" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJob". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeCronJobProps): any; - /** - * Defines a "io.k8s.api.batch.v1.CronJob" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeCronJobProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CronJobList is a collection of cron jobs. - * - * @schema io.k8s.api.batch.v1.CronJobList - */ -export declare class KubeCronJobList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJobList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJobList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCronJobListProps): any; - /** - * Defines a "io.k8s.api.batch.v1.CronJobList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeCronJobListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Job represents the configuration of a single job. - * - * @schema io.k8s.api.batch.v1.Job - */ -export declare class KubeJob extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.Job" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.Job". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeJobProps): any; - /** - * Defines a "io.k8s.api.batch.v1.Job" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeJobProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * JobList is a collection of jobs. - * - * @schema io.k8s.api.batch.v1.JobList - */ -export declare class KubeJobList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.JobList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.JobList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeJobListProps): any; - /** - * Defines a "io.k8s.api.batch.v1.JobList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeJobListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CronJob represents the configuration of a single cron job. - * - * @schema io.k8s.api.batch.v1beta1.CronJob - */ -export declare class KubeCronJobV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1beta1.CronJob" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1beta1.CronJob". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeCronJobV1Beta1Props): any; - /** - * Defines a "io.k8s.api.batch.v1beta1.CronJob" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeCronJobV1Beta1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CronJobList is a collection of cron jobs. - * - * @schema io.k8s.api.batch.v1beta1.CronJobList - */ -export declare class KubeCronJobListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1beta1.CronJobList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1beta1.CronJobList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCronJobListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.batch.v1beta1.CronJobList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeCronJobListV1Beta1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. - -Kubelets use this API to obtain: - 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). - 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). - -This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest - */ -export declare class KubeCertificateSigningRequest extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequest" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequest". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCertificateSigningRequestProps): any; - /** - * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequest" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCertificateSigningRequestProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CertificateSigningRequestList is a collection of CertificateSigningRequest objects - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList - */ -export declare class KubeCertificateSigningRequestList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequestList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequestList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCertificateSigningRequestListProps): any; - /** - * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequestList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCertificateSigningRequestListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Lease defines a lease concept. - * - * @schema io.k8s.api.coordination.v1.Lease - */ -export declare class KubeLease extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.Lease" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.Lease". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeLeaseProps): any; - /** - * Defines a "io.k8s.api.coordination.v1.Lease" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeLeaseProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * LeaseList is a list of Lease objects. - * - * @schema io.k8s.api.coordination.v1.LeaseList - */ -export declare class KubeLeaseList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.LeaseList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.LeaseList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeLeaseListProps): any; - /** - * Defines a "io.k8s.api.coordination.v1.LeaseList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeLeaseListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. - * - * @schema io.k8s.api.core.v1.Binding - */ -export declare class KubeBinding extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Binding" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Binding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeBindingProps): any; - /** - * Defines a "io.k8s.api.core.v1.Binding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeBindingProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatus - */ -export declare class KubeComponentStatus extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatus" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatus". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeComponentStatusProps): any; - /** - * Defines a "io.k8s.api.core.v1.ComponentStatus" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeComponentStatusProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatusList - */ -export declare class KubeComponentStatusList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatusList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatusList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeComponentStatusListProps): any; - /** - * Defines a "io.k8s.api.core.v1.ComponentStatusList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeComponentStatusListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ConfigMap holds configuration data for pods to consume. - * - * @schema io.k8s.api.core.v1.ConfigMap - */ -export declare class KubeConfigMap extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMap" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMap". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeConfigMapProps): any; - /** - * Defines a "io.k8s.api.core.v1.ConfigMap" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeConfigMapProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ConfigMapList is a resource containing a list of ConfigMap objects. - * - * @schema io.k8s.api.core.v1.ConfigMapList - */ -export declare class KubeConfigMapList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMapList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMapList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeConfigMapListProps): any; - /** - * Defines a "io.k8s.api.core.v1.ConfigMapList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeConfigMapListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Endpoints is a collection of endpoints that implement the actual service. Example: - Name: "mysvc", - Subsets: [ - { - Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - }, - { - Addresses: [{"ip": "10.10.3.3"}], - Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] - }, - ] - * - * @schema io.k8s.api.core.v1.Endpoints - */ -export declare class KubeEndpoints extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Endpoints" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Endpoints". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeEndpointsProps): any; - /** - * Defines a "io.k8s.api.core.v1.Endpoints" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeEndpointsProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EndpointsList is a list of endpoints. - * - * @schema io.k8s.api.core.v1.EndpointsList - */ -export declare class KubeEndpointsList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.EndpointsList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.EndpointsList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEndpointsListProps): any; - /** - * Defines a "io.k8s.api.core.v1.EndpointsList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEndpointsListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. - * - * @schema io.k8s.api.events.v1.Event - */ -export declare class KubeEvent extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.events.v1.Event" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.events.v1.Event". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEventProps): any; - /** - * Defines a "io.k8s.api.events.v1.Event" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEventProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EventList is a list of Event objects. - * - * @schema io.k8s.api.events.v1.EventList - */ -export declare class KubeEventList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.events.v1.EventList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.events.v1.EventList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEventListProps): any; - /** - * Defines a "io.k8s.api.events.v1.EventList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEventListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * LimitRange sets resource usage limits for each kind of resource in a Namespace. - * - * @schema io.k8s.api.core.v1.LimitRange - */ -export declare class KubeLimitRange extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRange" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRange". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeLimitRangeProps): any; - /** - * Defines a "io.k8s.api.core.v1.LimitRange" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeLimitRangeProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * LimitRangeList is a list of LimitRange items. - * - * @schema io.k8s.api.core.v1.LimitRangeList - */ -export declare class KubeLimitRangeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRangeList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRangeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeLimitRangeListProps): any; - /** - * Defines a "io.k8s.api.core.v1.LimitRangeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeLimitRangeListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Namespace provides a scope for Names. Use of multiple namespaces is optional. - * - * @schema io.k8s.api.core.v1.Namespace - */ -export declare class KubeNamespace extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Namespace" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Namespace". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeNamespaceProps): any; - /** - * Defines a "io.k8s.api.core.v1.Namespace" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeNamespaceProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * NamespaceList is a list of Namespaces. - * - * @schema io.k8s.api.core.v1.NamespaceList - */ -export declare class KubeNamespaceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.NamespaceList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NamespaceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeNamespaceListProps): any; - /** - * Defines a "io.k8s.api.core.v1.NamespaceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeNamespaceListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). - * - * @schema io.k8s.api.core.v1.Node - */ -export declare class KubeNode extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Node" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Node". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeNodeProps): any; - /** - * Defines a "io.k8s.api.core.v1.Node" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeNodeProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * NodeList is the whole list of all Nodes which have been registered with master. - * - * @schema io.k8s.api.core.v1.NodeList - */ -export declare class KubeNodeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.NodeList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NodeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeNodeListProps): any; - /** - * Defines a "io.k8s.api.core.v1.NodeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeNodeListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolume - */ -export declare class KubePersistentVolume extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolume" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolume". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePersistentVolumeProps): any; - /** - * Defines a "io.k8s.api.core.v1.PersistentVolume" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubePersistentVolumeProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PersistentVolumeClaim is a user's request for and claim to a persistent volume - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim - */ -export declare class KubePersistentVolumeClaim extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaim" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaim". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePersistentVolumeClaimProps): any; - /** - * Defines a "io.k8s.api.core.v1.PersistentVolumeClaim" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubePersistentVolumeClaimProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList - */ -export declare class KubePersistentVolumeClaimList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaimList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaimList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePersistentVolumeClaimListProps): any; - /** - * Defines a "io.k8s.api.core.v1.PersistentVolumeClaimList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePersistentVolumeClaimListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PersistentVolumeList is a list of PersistentVolume items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeList - */ -export declare class KubePersistentVolumeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePersistentVolumeListProps): any; - /** - * Defines a "io.k8s.api.core.v1.PersistentVolumeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePersistentVolumeListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. - * - * @schema io.k8s.api.core.v1.Pod - */ -export declare class KubePod extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Pod" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Pod". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePodProps): any; - /** - * Defines a "io.k8s.api.core.v1.Pod" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubePodProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodList is a list of Pods. - * - * @schema io.k8s.api.core.v1.PodList - */ -export declare class KubePodList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePodListProps): any; - /** - * Defines a "io.k8s.api.core.v1.PodList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubePodListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodTemplate describes a template for creating copies of a predefined pod. - * - * @schema io.k8s.api.core.v1.PodTemplate - */ -export declare class KubePodTemplate extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplate" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplate". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePodTemplateProps): any; - /** - * Defines a "io.k8s.api.core.v1.PodTemplate" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubePodTemplateProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodTemplateList is a list of PodTemplates. - * - * @schema io.k8s.api.core.v1.PodTemplateList - */ -export declare class KubePodTemplateList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplateList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplateList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePodTemplateListProps): any; - /** - * Defines a "io.k8s.api.core.v1.PodTemplateList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubePodTemplateListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ReplicationController represents the configuration of a replication controller. - * - * @schema io.k8s.api.core.v1.ReplicationController - */ -export declare class KubeReplicationController extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationController" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationController". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeReplicationControllerProps): any; - /** - * Defines a "io.k8s.api.core.v1.ReplicationController" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeReplicationControllerProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ReplicationControllerList is a collection of replication controllers. - * - * @schema io.k8s.api.core.v1.ReplicationControllerList - */ -export declare class KubeReplicationControllerList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationControllerList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationControllerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeReplicationControllerListProps): any; - /** - * Defines a "io.k8s.api.core.v1.ReplicationControllerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeReplicationControllerListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ResourceQuota sets aggregate quota restrictions enforced per namespace - * - * @schema io.k8s.api.core.v1.ResourceQuota - */ -export declare class KubeResourceQuota extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuota" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuota". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeResourceQuotaProps): any; - /** - * Defines a "io.k8s.api.core.v1.ResourceQuota" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeResourceQuotaProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ResourceQuotaList is a list of ResourceQuota items. - * - * @schema io.k8s.api.core.v1.ResourceQuotaList - */ -export declare class KubeResourceQuotaList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuotaList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuotaList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeResourceQuotaListProps): any; - /** - * Defines a "io.k8s.api.core.v1.ResourceQuotaList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeResourceQuotaListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - * - * @schema io.k8s.api.core.v1.Secret - */ -export declare class KubeSecret extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Secret" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Secret". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeSecretProps): any; - /** - * Defines a "io.k8s.api.core.v1.Secret" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeSecretProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * SecretList is a list of Secret. - * - * @schema io.k8s.api.core.v1.SecretList - */ -export declare class KubeSecretList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.SecretList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.SecretList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeSecretListProps): any; - /** - * Defines a "io.k8s.api.core.v1.SecretList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeSecretListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. - * - * @schema io.k8s.api.core.v1.Service - */ -export declare class KubeService extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Service" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Service". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeServiceProps): any; - /** - * Defines a "io.k8s.api.core.v1.Service" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeServiceProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets - * - * @schema io.k8s.api.core.v1.ServiceAccount - */ -export declare class KubeServiceAccount extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccount" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccount". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeServiceAccountProps): any; - /** - * Defines a "io.k8s.api.core.v1.ServiceAccount" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeServiceAccountProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ServiceAccountList is a list of ServiceAccount objects - * - * @schema io.k8s.api.core.v1.ServiceAccountList - */ -export declare class KubeServiceAccountList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccountList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccountList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeServiceAccountListProps): any; - /** - * Defines a "io.k8s.api.core.v1.ServiceAccountList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeServiceAccountListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ServiceList holds a list of services. - * - * @schema io.k8s.api.core.v1.ServiceList - */ -export declare class KubeServiceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeServiceListProps): any; - /** - * Defines a "io.k8s.api.core.v1.ServiceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeServiceListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice - */ -export declare class KubeEndpointSlice extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSlice" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSlice". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEndpointSliceProps): any; - /** - * Defines a "io.k8s.api.discovery.v1.EndpointSlice" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEndpointSliceProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EndpointSliceList represents a list of endpoint slices - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList - */ -export declare class KubeEndpointSliceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSliceList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSliceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEndpointSliceListProps): any; - /** - * Defines a "io.k8s.api.discovery.v1.EndpointSliceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEndpointSliceListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSlice - */ -export declare class KubeEndpointSliceV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.discovery.v1beta1.EndpointSlice" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1beta1.EndpointSlice". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEndpointSliceV1Beta1Props): any; - /** - * Defines a "io.k8s.api.discovery.v1beta1.EndpointSlice" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeEndpointSliceV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EndpointSliceList represents a list of endpoint slices - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSliceList - */ -export declare class KubeEndpointSliceListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.discovery.v1beta1.EndpointSliceList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1beta1.EndpointSliceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEndpointSliceListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.discovery.v1beta1.EndpointSliceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeEndpointSliceListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. - * - * @schema io.k8s.api.events.v1beta1.Event - */ -export declare class KubeEventV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.events.v1beta1.Event" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.events.v1beta1.Event". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEventV1Beta1Props): any; - /** - * Defines a "io.k8s.api.events.v1beta1.Event" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEventV1Beta1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * EventList is a list of Event objects. - * - * @schema io.k8s.api.events.v1beta1.EventList - */ -export declare class KubeEventListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.events.v1beta1.EventList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.events.v1beta1.EventList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeEventListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.events.v1beta1.EventList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeEventListV1Beta1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema - */ -export declare class KubeFlowSchemaV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.FlowSchema" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.FlowSchema". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeFlowSchemaV1Beta1Props): any; - /** - * Defines a "io.k8s.api.flowcontrol.v1beta1.FlowSchema" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeFlowSchemaV1Beta1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * FlowSchemaList is a list of FlowSchema objects. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList - */ -export declare class KubeFlowSchemaListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeFlowSchemaListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeFlowSchemaListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PriorityLevelConfiguration represents the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration - */ -export declare class KubePriorityLevelConfigurationV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePriorityLevelConfigurationV1Beta1Props): any; - /** - * Defines a "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubePriorityLevelConfigurationV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList - */ -export declare class KubePriorityLevelConfigurationListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePriorityLevelConfigurationListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePriorityLevelConfigurationListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - * - * @schema io.k8s.api.networking.v1.Ingress - */ -export declare class KubeIngress extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.Ingress" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.Ingress". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeIngressProps): any; - /** - * Defines a "io.k8s.api.networking.v1.Ingress" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeIngressProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. - * - * @schema io.k8s.api.networking.v1.IngressClass - */ -export declare class KubeIngressClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeIngressClassProps): any; - /** - * Defines a "io.k8s.api.networking.v1.IngressClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeIngressClassProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * IngressClassList is a collection of IngressClasses. - * - * @schema io.k8s.api.networking.v1.IngressClassList - */ -export declare class KubeIngressClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeIngressClassListProps): any; - /** - * Defines a "io.k8s.api.networking.v1.IngressClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeIngressClassListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * IngressList is a collection of Ingress. - * - * @schema io.k8s.api.networking.v1.IngressList - */ -export declare class KubeIngressList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeIngressListProps): any; - /** - * Defines a "io.k8s.api.networking.v1.IngressList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeIngressListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * NetworkPolicy describes what network traffic is allowed for a set of Pods - * - * @schema io.k8s.api.networking.v1.NetworkPolicy - */ -export declare class KubeNetworkPolicy extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicy" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicy". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeNetworkPolicyProps): any; - /** - * Defines a "io.k8s.api.networking.v1.NetworkPolicy" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeNetworkPolicyProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * NetworkPolicyList is a list of NetworkPolicy objects. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList - */ -export declare class KubeNetworkPolicyList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicyList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicyList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeNetworkPolicyListProps): any; - /** - * Defines a "io.k8s.api.networking.v1.NetworkPolicyList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeNetworkPolicyListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ - * - * @schema io.k8s.api.node.v1.RuntimeClass - */ -export declare class KubeRuntimeClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRuntimeClassProps): any; - /** - * Defines a "io.k8s.api.node.v1.RuntimeClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeRuntimeClassProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1.RuntimeClassList - */ -export declare class KubeRuntimeClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRuntimeClassListProps): any; - /** - * Defines a "io.k8s.api.node.v1.RuntimeClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeRuntimeClassListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClass - */ -export declare class KubeRuntimeClassV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1alpha1.RuntimeClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1alpha1.RuntimeClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRuntimeClassV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.node.v1alpha1.RuntimeClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeRuntimeClassV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassList - */ -export declare class KubeRuntimeClassListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1alpha1.RuntimeClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1alpha1.RuntimeClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRuntimeClassListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.node.v1alpha1.RuntimeClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeRuntimeClassListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - * - * @schema io.k8s.api.node.v1beta1.RuntimeClass - */ -export declare class KubeRuntimeClassV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1beta1.RuntimeClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1beta1.RuntimeClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRuntimeClassV1Beta1Props): any; - /** - * Defines a "io.k8s.api.node.v1beta1.RuntimeClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeRuntimeClassV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1beta1.RuntimeClassList - */ -export declare class KubeRuntimeClassListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1beta1.RuntimeClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1beta1.RuntimeClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRuntimeClassListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.node.v1beta1.RuntimeClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeRuntimeClassListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. - * - * @schema io.k8s.api.policy.v1.Eviction - */ -export declare class KubeEviction extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1.Eviction" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.Eviction". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeEvictionProps): any; - /** - * Defines a "io.k8s.api.policy.v1.Eviction" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeEvictionProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget - */ -export declare class KubePodDisruptionBudget extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudget" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudget". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePodDisruptionBudgetProps): any; - /** - * Defines a "io.k8s.api.policy.v1.PodDisruptionBudget" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubePodDisruptionBudgetProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList - */ -export declare class KubePodDisruptionBudgetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudgetList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudgetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePodDisruptionBudgetListProps): any; - /** - * Defines a "io.k8s.api.policy.v1.PodDisruptionBudgetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePodDisruptionBudgetListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudget - */ -export declare class KubePodDisruptionBudgetV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1beta1.PodDisruptionBudget" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1beta1.PodDisruptionBudget". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePodDisruptionBudgetV1Beta1Props): any; - /** - * Defines a "io.k8s.api.policy.v1beta1.PodDisruptionBudget" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubePodDisruptionBudgetV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetList - */ -export declare class KubePodDisruptionBudgetListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1beta1.PodDisruptionBudgetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePodDisruptionBudgetListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePodDisruptionBudgetListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicy - */ -export declare class KubePodSecurityPolicyV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1beta1.PodSecurityPolicy" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1beta1.PodSecurityPolicy". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubePodSecurityPolicyV1Beta1Props): any; - /** - * Defines a "io.k8s.api.policy.v1beta1.PodSecurityPolicy" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubePodSecurityPolicyV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PodSecurityPolicyList is a list of PodSecurityPolicy objects. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicyList - */ -export declare class KubePodSecurityPolicyListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1beta1.PodSecurityPolicyList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1beta1.PodSecurityPolicyList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePodSecurityPolicyListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.policy.v1beta1.PodSecurityPolicyList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePodSecurityPolicyListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - * - * @schema io.k8s.api.rbac.v1.ClusterRole - */ -export declare class KubeClusterRole extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRole" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRole". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeClusterRoleProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRole" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeClusterRoleProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding - */ -export declare class KubeClusterRoleBinding extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBinding" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeClusterRoleBindingProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRoleBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeClusterRoleBindingProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRoleBindingList is a collection of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList - */ -export declare class KubeClusterRoleBindingList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBindingList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeClusterRoleBindingListProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRoleBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeClusterRoleBindingListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRoleList is a collection of ClusterRoles - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList - */ -export declare class KubeClusterRoleList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeClusterRoleListProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRoleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeClusterRoleListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - * - * @schema io.k8s.api.rbac.v1.Role - */ -export declare class KubeRole extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.Role" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.Role". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeRoleProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.Role" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeRoleProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - * - * @schema io.k8s.api.rbac.v1.RoleBinding - */ -export declare class KubeRoleBinding extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBinding" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRoleBindingProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.RoleBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeRoleBindingProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RoleBindingList is a collection of RoleBindings - * - * @schema io.k8s.api.rbac.v1.RoleBindingList - */ -export declare class KubeRoleBindingList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBindingList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRoleBindingListProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.RoleBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeRoleBindingListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RoleList is a collection of Roles - * - * @schema io.k8s.api.rbac.v1.RoleList - */ -export declare class KubeRoleList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRoleListProps): any; - /** - * Defines a "io.k8s.api.rbac.v1.RoleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeRoleListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRole - */ -export declare class KubeClusterRoleV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.ClusterRole" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.ClusterRole". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeClusterRoleV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.ClusterRole" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props?: KubeClusterRoleV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBinding - */ -export declare class KubeClusterRoleBindingV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.ClusterRoleBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeClusterRoleBindingV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeClusterRoleBindingV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList - */ -export declare class KubeClusterRoleBindingListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeClusterRoleBindingListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeClusterRoleBindingListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleList - */ -export declare class KubeClusterRoleListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.ClusterRoleList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.ClusterRoleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeClusterRoleListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.ClusterRoleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeClusterRoleListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.Role - */ -export declare class KubeRoleV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.Role" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.Role". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeRoleV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.Role" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeRoleV1Alpha1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBinding - */ -export declare class KubeRoleBindingV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.RoleBinding" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.RoleBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRoleBindingV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.RoleBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeRoleBindingV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBindingList - */ -export declare class KubeRoleBindingListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.RoleBindingList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.RoleBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRoleBindingListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.RoleBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeRoleBindingListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleList - */ -export declare class KubeRoleListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1alpha1.RoleList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1alpha1.RoleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeRoleListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.rbac.v1alpha1.RoleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeRoleListV1Alpha1Props); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass - */ -export declare class KubePriorityClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePriorityClassProps): any; - /** - * Defines a "io.k8s.api.scheduling.v1.PriorityClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubePriorityClassProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PriorityClassList is a collection of priority classes. - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList - */ -export declare class KubePriorityClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePriorityClassListProps): any; - /** - * Defines a "io.k8s.api.scheduling.v1.PriorityClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubePriorityClassListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass - */ -export declare class KubePriorityClassV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1alpha1.PriorityClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1alpha1.PriorityClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePriorityClassV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.scheduling.v1alpha1.PriorityClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePriorityClassV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * PriorityClassList is a collection of priority classes. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClassList - */ -export declare class KubePriorityClassListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1alpha1.PriorityClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1alpha1.PriorityClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubePriorityClassListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.scheduling.v1alpha1.PriorityClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubePriorityClassListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.CSIDriver - */ -export declare class KubeCsiDriver extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriver" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriver". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiDriverProps): any; - /** - * Defines a "io.k8s.api.storage.v1.CSIDriver" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeCsiDriverProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSIDriverList is a collection of CSIDriver objects. - * - * @schema io.k8s.api.storage.v1.CSIDriverList - */ -export declare class KubeCsiDriverList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriverList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriverList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiDriverListProps): any; - /** - * Defines a "io.k8s.api.storage.v1.CSIDriverList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeCsiDriverListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. - * - * @schema io.k8s.api.storage.v1.CSINode - */ -export declare class KubeCsiNode extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINode" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINode". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiNodeProps): any; - /** - * Defines a "io.k8s.api.storage.v1.CSINode" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeCsiNodeProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSINodeList is a collection of CSINode objects. - * - * @schema io.k8s.api.storage.v1.CSINodeList - */ -export declare class KubeCsiNodeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINodeList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINodeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiNodeListProps): any; - /** - * Defines a "io.k8s.api.storage.v1.CSINodeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeCsiNodeListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - -StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * - * @schema io.k8s.api.storage.v1.StorageClass - */ -export declare class KubeStorageClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClass" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeStorageClassProps): any; - /** - * Defines a "io.k8s.api.storage.v1.StorageClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeStorageClassProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * StorageClassList is a collection of storage classes. - * - * @schema io.k8s.api.storage.v1.StorageClassList - */ -export declare class KubeStorageClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClassList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeStorageClassListProps): any; - /** - * Defines a "io.k8s.api.storage.v1.StorageClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeStorageClassListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - -VolumeAttachment objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.VolumeAttachment - */ -export declare class KubeVolumeAttachment extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachment" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachment". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeVolumeAttachmentProps): any; - /** - * Defines a "io.k8s.api.storage.v1.VolumeAttachment" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeVolumeAttachmentProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * VolumeAttachmentList is a collection of VolumeAttachment objects. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList - */ -export declare class KubeVolumeAttachmentList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachmentList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachmentList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeVolumeAttachmentListProps): any; - /** - * Defines a "io.k8s.api.storage.v1.VolumeAttachmentList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeVolumeAttachmentListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. - -For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - -The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero - -The producer of these objects can decide which approach is more suitable. - -They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity - */ -export declare class KubeCsiStorageCapacityV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1alpha1.CSIStorageCapacity" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1alpha1.CSIStorageCapacity". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiStorageCapacityV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.storage.v1alpha1.CSIStorageCapacity" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCsiStorageCapacityV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacityList - */ -export declare class KubeCsiStorageCapacityListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1alpha1.CSIStorageCapacityList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1alpha1.CSIStorageCapacityList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiStorageCapacityListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.storage.v1alpha1.CSIStorageCapacityList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCsiStorageCapacityListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - -VolumeAttachment objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachment - */ -export declare class KubeVolumeAttachmentV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1alpha1.VolumeAttachment" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1alpha1.VolumeAttachment". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeVolumeAttachmentV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.storage.v1alpha1.VolumeAttachment" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeVolumeAttachmentV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * VolumeAttachmentList is a collection of VolumeAttachment objects. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentList - */ -export declare class KubeVolumeAttachmentListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1alpha1.VolumeAttachmentList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1alpha1.VolumeAttachmentList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeVolumeAttachmentListV1Alpha1Props): any; - /** - * Defines a "io.k8s.api.storage.v1alpha1.VolumeAttachmentList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeVolumeAttachmentListV1Alpha1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. - -For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - -The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero - -The producer of these objects can decide which approach is more suitable. - -They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity - */ -export declare class KubeCsiStorageCapacityV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1beta1.CSIStorageCapacity" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1beta1.CSIStorageCapacity". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiStorageCapacityV1Beta1Props): any; - /** - * Defines a "io.k8s.api.storage.v1beta1.CSIStorageCapacity" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCsiStorageCapacityV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList - */ -export declare class KubeCsiStorageCapacityListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1beta1.CSIStorageCapacityList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1beta1.CSIStorageCapacityList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCsiStorageCapacityListV1Beta1Props): any; - /** - * Defines a "io.k8s.api.storage.v1beta1.CSIStorageCapacityList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCsiStorageCapacityListV1Beta1Props, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition - */ -export declare class KubeCustomResourceDefinition extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCustomResourceDefinitionProps): any; - /** - * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCustomResourceDefinitionProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList - */ -export declare class KubeCustomResourceDefinitionList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeCustomResourceDefinitionListProps): any; - /** - * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor( - scope: Construct, - id: string, - props: KubeCustomResourceDefinitionListProps, - ); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * Status is a return value for calls that don't return other objects. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status - */ -export declare class KubeStatus extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.apimachinery.pkg.apis.meta.v1.Status" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.apimachinery.pkg.apis.meta.v1.Status". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeStatusProps): any; - /** - * Defines a "io.k8s.apimachinery.pkg.apis.meta.v1.Status" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeStatusProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * APIService represents a server for a particular GroupVersion. Name must be "version.group". - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService - */ -export declare class KubeApiService extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props?: KubeApiServiceProps): any; - /** - * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props?: KubeApiServiceProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * APIServiceList is a list of APIService objects. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList - */ -export declare class KubeApiServiceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" - */ - static readonly GVK: GroupVersionKind; - /** - * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - static manifest(props: KubeApiServiceListProps): any; - /** - * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - constructor(scope: Construct, id: string, props: KubeApiServiceListProps); - /** - * Renders the object to Kubernetes JSON. - */ - toJson(): any; -} -/** - * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration - */ -export interface KubeMutatingWebhookConfigurationProps { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Webhooks is a list of webhooks and the affected resources and operations. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#webhooks - */ - readonly webhooks?: MutatingWebhook[]; -} -/** - * Converts an object of type 'KubeMutatingWebhookConfigurationProps' to JSON representation. - */ -export declare function toJson_KubeMutatingWebhookConfigurationProps( - obj: KubeMutatingWebhookConfigurationProps | undefined, -): Record | undefined; -/** - * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList - */ -export interface KubeMutatingWebhookConfigurationListProps { - /** - * List of MutatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#items - */ - readonly items: KubeMutatingWebhookConfigurationProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeMutatingWebhookConfigurationListProps' to JSON representation. - */ -export declare function toJson_KubeMutatingWebhookConfigurationListProps( - obj: KubeMutatingWebhookConfigurationListProps | undefined, -): Record | undefined; -/** - * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration - */ -export interface KubeValidatingWebhookConfigurationProps { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Webhooks is a list of webhooks and the affected resources and operations. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#webhooks - */ - readonly webhooks?: ValidatingWebhook[]; -} -/** - * Converts an object of type 'KubeValidatingWebhookConfigurationProps' to JSON representation. - */ -export declare function toJson_KubeValidatingWebhookConfigurationProps( - obj: KubeValidatingWebhookConfigurationProps | undefined, -): Record | undefined; -/** - * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList - */ -export interface KubeValidatingWebhookConfigurationListProps { - /** - * List of ValidatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#items - */ - readonly items: KubeValidatingWebhookConfigurationProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeValidatingWebhookConfigurationListProps' to JSON representation. - */ -export declare function toJson_KubeValidatingWebhookConfigurationListProps( - obj: KubeValidatingWebhookConfigurationListProps | undefined, -): Record | undefined; -/** - * - * Storage version of a specific resource. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion - */ -export interface KubeStorageVersionV1Alpha1Props { - /** - * The name is .. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec is an empty spec. It is here to comply with Kubernetes API style. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#spec - */ - readonly spec: any; -} -/** - * Converts an object of type 'KubeStorageVersionV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeStorageVersionV1Alpha1Props( - obj: KubeStorageVersionV1Alpha1Props | undefined, -): Record | undefined; -/** - * A list of StorageVersions. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList - */ -export interface KubeStorageVersionListV1Alpha1Props { - /** - * Items holds a list of StorageVersion - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#items - */ - readonly items: KubeStorageVersionV1Alpha1Props[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeStorageVersionListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeStorageVersionListV1Alpha1Props( - obj: KubeStorageVersionListV1Alpha1Props | undefined, -): Record | undefined; -/** - * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - * - * @schema io.k8s.api.apps.v1.ControllerRevision - */ -export interface KubeControllerRevisionProps { - /** - * Data is the serialized representation of the state. - * - * @schema io.k8s.api.apps.v1.ControllerRevision#data - */ - readonly data?: any; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.ControllerRevision#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Revision indicates the revision of the state represented by Data. - * - * @schema io.k8s.api.apps.v1.ControllerRevision#revision - */ - readonly revision: number; -} -/** - * Converts an object of type 'KubeControllerRevisionProps' to JSON representation. - */ -export declare function toJson_KubeControllerRevisionProps( - obj: KubeControllerRevisionProps | undefined, -): Record | undefined; -/** - * ControllerRevisionList is a resource containing a list of ControllerRevision objects. - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList - */ -export interface KubeControllerRevisionListProps { - /** - * Items is the list of ControllerRevisions - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList#items - */ - readonly items: KubeControllerRevisionProps[]; - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeControllerRevisionListProps' to JSON representation. - */ -export declare function toJson_KubeControllerRevisionListProps( - obj: KubeControllerRevisionListProps | undefined, -): Record | undefined; -/** - * DaemonSet represents the configuration of a daemon set. - * - * @schema io.k8s.api.apps.v1.DaemonSet - */ -export interface KubeDaemonSetProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.DaemonSet#metadata - */ - readonly metadata?: ObjectMeta; - /** - * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.apps.v1.DaemonSet#spec - */ - readonly spec?: DaemonSetSpec; -} -/** - * Converts an object of type 'KubeDaemonSetProps' to JSON representation. - */ -export declare function toJson_KubeDaemonSetProps( - obj: KubeDaemonSetProps | undefined, -): Record | undefined; -/** - * DaemonSetList is a collection of daemon sets. - * - * @schema io.k8s.api.apps.v1.DaemonSetList - */ -export interface KubeDaemonSetListProps { - /** - * A list of daemon sets. - * - * @schema io.k8s.api.apps.v1.DaemonSetList#items - */ - readonly items: KubeDaemonSetProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.DaemonSetList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeDaemonSetListProps' to JSON representation. - */ -export declare function toJson_KubeDaemonSetListProps( - obj: KubeDaemonSetListProps | undefined, -): Record | undefined; -/** - * Deployment enables declarative updates for Pods and ReplicaSets. - * - * @schema io.k8s.api.apps.v1.Deployment - */ -export interface KubeDeploymentProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.Deployment#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the Deployment. - * - * @schema io.k8s.api.apps.v1.Deployment#spec - */ - readonly spec?: DeploymentSpec; -} -/** - * Converts an object of type 'KubeDeploymentProps' to JSON representation. - */ -export declare function toJson_KubeDeploymentProps( - obj: KubeDeploymentProps | undefined, -): Record | undefined; -/** - * DeploymentList is a list of Deployments. - * - * @schema io.k8s.api.apps.v1.DeploymentList - */ -export interface KubeDeploymentListProps { - /** - * Items is the list of Deployments. - * - * @schema io.k8s.api.apps.v1.DeploymentList#items - */ - readonly items: KubeDeploymentProps[]; - /** - * Standard list metadata. - * - * @schema io.k8s.api.apps.v1.DeploymentList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeDeploymentListProps' to JSON representation. - */ -export declare function toJson_KubeDeploymentListProps( - obj: KubeDeploymentListProps | undefined, -): Record | undefined; -/** - * ReplicaSet ensures that a specified number of pod replicas are running at any given time. - * - * @schema io.k8s.api.apps.v1.ReplicaSet - */ -export interface KubeReplicaSetProps { - /** - * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.ReplicaSet#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.apps.v1.ReplicaSet#spec - */ - readonly spec?: ReplicaSetSpec; -} -/** - * Converts an object of type 'KubeReplicaSetProps' to JSON representation. - */ -export declare function toJson_KubeReplicaSetProps( - obj: KubeReplicaSetProps | undefined, -): Record | undefined; -/** - * ReplicaSetList is a collection of ReplicaSets. - * - * @schema io.k8s.api.apps.v1.ReplicaSetList - */ -export interface KubeReplicaSetListProps { - /** - * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * - * @schema io.k8s.api.apps.v1.ReplicaSetList#items - */ - readonly items: KubeReplicaSetProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.apps.v1.ReplicaSetList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeReplicaSetListProps' to JSON representation. - */ -export declare function toJson_KubeReplicaSetListProps( - obj: KubeReplicaSetListProps | undefined, -): Record | undefined; -/** - * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - * - Network: A single stable DNS and hostname. - * - Storage: As many VolumeClaims as requested. - * The StatefulSet guarantees that a given network identity will always map to the same storage identity. - * - * @schema io.k8s.api.apps.v1.StatefulSet - */ -export interface KubeStatefulSetProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.StatefulSet#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the desired identities of pods in this set. - * - * @schema io.k8s.api.apps.v1.StatefulSet#spec - */ - readonly spec?: StatefulSetSpec; -} -/** - * Converts an object of type 'KubeStatefulSetProps' to JSON representation. - */ -export declare function toJson_KubeStatefulSetProps( - obj: KubeStatefulSetProps | undefined, -): Record | undefined; -/** - * StatefulSetList is a collection of StatefulSets. - * - * @schema io.k8s.api.apps.v1.StatefulSetList - */ -export interface KubeStatefulSetListProps { - /** - * Items is the list of stateful sets. - * - * @schema io.k8s.api.apps.v1.StatefulSetList#items - */ - readonly items: KubeStatefulSetProps[]; - /** - * Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.StatefulSetList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeStatefulSetListProps' to JSON representation. - */ -export declare function toJson_KubeStatefulSetListProps( - obj: KubeStatefulSetListProps | undefined, -): Record | undefined; -/** - * TokenRequest requests a token for a given service account. - * - * @schema io.k8s.api.authentication.v1.TokenRequest - */ -export interface KubeTokenRequestProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1.TokenRequest#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec holds information about the request being evaluated - * - * @schema io.k8s.api.authentication.v1.TokenRequest#spec - */ - readonly spec: TokenRequestSpec; -} -/** - * Converts an object of type 'KubeTokenRequestProps' to JSON representation. - */ -export declare function toJson_KubeTokenRequestProps( - obj: KubeTokenRequestProps | undefined, -): Record | undefined; -/** - * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - * - * @schema io.k8s.api.authentication.v1.TokenReview - */ -export interface KubeTokenReviewProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1.TokenReview#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec holds information about the request being evaluated - * - * @schema io.k8s.api.authentication.v1.TokenReview#spec - */ - readonly spec: TokenReviewSpec; -} -/** - * Converts an object of type 'KubeTokenReviewProps' to JSON representation. - */ -export declare function toJson_KubeTokenReviewProps( - obj: KubeTokenReviewProps | undefined, -): Record | undefined; -/** - * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview - */ -export interface KubeLocalSubjectAccessReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#spec - */ - readonly spec: SubjectAccessReviewSpec; -} -/** - * Converts an object of type 'KubeLocalSubjectAccessReviewProps' to JSON representation. - */ -export declare function toJson_KubeLocalSubjectAccessReviewProps( - obj: KubeLocalSubjectAccessReviewProps | undefined, -): Record | undefined; -/** - * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview - */ -export interface KubeSelfSubjectAccessReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec holds information about the request being evaluated. user and groups must be empty - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#spec - */ - readonly spec: SelfSubjectAccessReviewSpec; -} -/** - * Converts an object of type 'KubeSelfSubjectAccessReviewProps' to JSON representation. - */ -export declare function toJson_KubeSelfSubjectAccessReviewProps( - obj: KubeSelfSubjectAccessReviewProps | undefined, -): Record | undefined; -/** - * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview - */ -export interface KubeSelfSubjectRulesReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec holds information about the request being evaluated. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#spec - */ - readonly spec: SelfSubjectRulesReviewSpec; -} -/** - * Converts an object of type 'KubeSelfSubjectRulesReviewProps' to JSON representation. - */ -export declare function toJson_KubeSelfSubjectRulesReviewProps( - obj: KubeSelfSubjectRulesReviewProps | undefined, -): Record | undefined; -/** - * SubjectAccessReview checks whether or not a user or group can perform an action. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview - */ -export interface KubeSubjectAccessReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec holds information about the request being evaluated - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview#spec - */ - readonly spec: SubjectAccessReviewSpec; -} -/** - * Converts an object of type 'KubeSubjectAccessReviewProps' to JSON representation. - */ -export declare function toJson_KubeSubjectAccessReviewProps( - obj: KubeSubjectAccessReviewProps | undefined, -): Record | undefined; -/** - * configuration of a horizontal pod autoscaler. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler - */ -export interface KubeHorizontalPodAutoscalerProps { - /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#metadata - */ - readonly metadata?: ObjectMeta; - /** - * behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#spec - */ - readonly spec?: HorizontalPodAutoscalerSpec; -} -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerProps' to JSON representation. - */ -export declare function toJson_KubeHorizontalPodAutoscalerProps( - obj: KubeHorizontalPodAutoscalerProps | undefined, -): Record | undefined; -/** - * list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList - */ -export interface KubeHorizontalPodAutoscalerListProps { - /** - * list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#items - */ - readonly items: KubeHorizontalPodAutoscalerProps[]; - /** - * Standard list metadata. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerListProps' to JSON representation. - */ -export declare function toJson_KubeHorizontalPodAutoscalerListProps( - obj: KubeHorizontalPodAutoscalerListProps | undefined, -): Record | undefined; -/** - * Scale represents a scaling request for a resource. - * - * @schema io.k8s.api.autoscaling.v1.Scale - */ -export interface KubeScaleProps { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.autoscaling.v1.Scale#metadata - */ - readonly metadata?: ObjectMeta; - /** - * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v1.Scale#spec - */ - readonly spec?: ScaleSpec; -} -/** - * Converts an object of type 'KubeScaleProps' to JSON representation. - */ -export declare function toJson_KubeScaleProps( - obj: KubeScaleProps | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler - */ -export interface KubeHorizontalPodAutoscalerV2Beta1Props { - /** - * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler#metadata - */ - readonly metadata?: ObjectMeta; - /** - * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler#spec - */ - readonly spec?: HorizontalPodAutoscalerSpecV2Beta1; -} -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerV2Beta1Props' to JSON representation. - */ -export declare function toJson_KubeHorizontalPodAutoscalerV2Beta1Props( - obj: KubeHorizontalPodAutoscalerV2Beta1Props | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList - */ -export interface KubeHorizontalPodAutoscalerListV2Beta1Props { - /** - * items is the list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList#items - */ - readonly items: KubeHorizontalPodAutoscalerV2Beta1Props[]; - /** - * metadata is the standard list metadata. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Beta1Props' to JSON representation. - */ -export declare function toJson_KubeHorizontalPodAutoscalerListV2Beta1Props( - obj: KubeHorizontalPodAutoscalerListV2Beta1Props | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler - */ -export interface KubeHorizontalPodAutoscalerV2Beta2Props { - /** - * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler#metadata - */ - readonly metadata?: ObjectMeta; - /** - * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler#spec - */ - readonly spec?: HorizontalPodAutoscalerSpecV2Beta2; -} -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerV2Beta2Props' to JSON representation. - */ -export declare function toJson_KubeHorizontalPodAutoscalerV2Beta2Props( - obj: KubeHorizontalPodAutoscalerV2Beta2Props | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList - */ -export interface KubeHorizontalPodAutoscalerListV2Beta2Props { - /** - * items is the list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList#items - */ - readonly items: KubeHorizontalPodAutoscalerV2Beta2Props[]; - /** - * metadata is the standard list metadata. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Beta2Props' to JSON representation. - */ -export declare function toJson_KubeHorizontalPodAutoscalerListV2Beta2Props( - obj: KubeHorizontalPodAutoscalerListV2Beta2Props | undefined, -): Record | undefined; -/** - * CronJob represents the configuration of a single cron job. - * - * @schema io.k8s.api.batch.v1.CronJob - */ -export interface KubeCronJobProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.CronJob#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1.CronJob#spec - */ - readonly spec?: CronJobSpec; -} -/** - * Converts an object of type 'KubeCronJobProps' to JSON representation. - */ -export declare function toJson_KubeCronJobProps( - obj: KubeCronJobProps | undefined, -): Record | undefined; -/** - * CronJobList is a collection of cron jobs. - * - * @schema io.k8s.api.batch.v1.CronJobList - */ -export interface KubeCronJobListProps { - /** - * items is the list of CronJobs. - * - * @schema io.k8s.api.batch.v1.CronJobList#items - */ - readonly items: KubeCronJobProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.CronJobList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCronJobListProps' to JSON representation. - */ -export declare function toJson_KubeCronJobListProps( - obj: KubeCronJobListProps | undefined, -): Record | undefined; -/** - * Job represents the configuration of a single job. - * - * @schema io.k8s.api.batch.v1.Job - */ -export interface KubeJobProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.Job#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1.Job#spec - */ - readonly spec?: JobSpec; -} -/** - * Converts an object of type 'KubeJobProps' to JSON representation. - */ -export declare function toJson_KubeJobProps( - obj: KubeJobProps | undefined, -): Record | undefined; -/** - * JobList is a collection of jobs. - * - * @schema io.k8s.api.batch.v1.JobList - */ -export interface KubeJobListProps { - /** - * items is the list of Jobs. - * - * @schema io.k8s.api.batch.v1.JobList#items - */ - readonly items: KubeJobProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.JobList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeJobListProps' to JSON representation. - */ -export declare function toJson_KubeJobListProps( - obj: KubeJobListProps | undefined, -): Record | undefined; -/** - * CronJob represents the configuration of a single cron job. - * - * @schema io.k8s.api.batch.v1beta1.CronJob - */ -export interface KubeCronJobV1Beta1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1beta1.CronJob#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1beta1.CronJob#spec - */ - readonly spec?: CronJobSpecV1Beta1; -} -/** - * Converts an object of type 'KubeCronJobV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeCronJobV1Beta1Props( - obj: KubeCronJobV1Beta1Props | undefined, -): Record | undefined; -/** - * CronJobList is a collection of cron jobs. - * - * @schema io.k8s.api.batch.v1beta1.CronJobList - */ -export interface KubeCronJobListV1Beta1Props { - /** - * items is the list of CronJobs. - * - * @schema io.k8s.api.batch.v1beta1.CronJobList#items - */ - readonly items: KubeCronJobV1Beta1Props[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1beta1.CronJobList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCronJobListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeCronJobListV1Beta1Props( - obj: KubeCronJobListV1Beta1Props | undefined, -): Record | undefined; -/** - * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. - * - * Kubelets use this API to obtain: - * 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). - * 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). - * - * This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest - */ -export interface KubeCertificateSigningRequestProps { - /** - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#metadata - */ - readonly metadata?: ObjectMeta; - /** - * spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#spec - */ - readonly spec: CertificateSigningRequestSpec; -} -/** - * Converts an object of type 'KubeCertificateSigningRequestProps' to JSON representation. - */ -export declare function toJson_KubeCertificateSigningRequestProps( - obj: KubeCertificateSigningRequestProps | undefined, -): Record | undefined; -/** - * CertificateSigningRequestList is a collection of CertificateSigningRequest objects - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList - */ -export interface KubeCertificateSigningRequestListProps { - /** - * items is a collection of CertificateSigningRequest objects - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#items - */ - readonly items: KubeCertificateSigningRequestProps[]; - /** - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCertificateSigningRequestListProps' to JSON representation. - */ -export declare function toJson_KubeCertificateSigningRequestListProps( - obj: KubeCertificateSigningRequestListProps | undefined, -): Record | undefined; -/** - * Lease defines a lease concept. - * - * @schema io.k8s.api.coordination.v1.Lease - */ -export interface KubeLeaseProps { - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.coordination.v1.Lease#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.coordination.v1.Lease#spec - */ - readonly spec?: LeaseSpec; -} -/** - * Converts an object of type 'KubeLeaseProps' to JSON representation. - */ -export declare function toJson_KubeLeaseProps( - obj: KubeLeaseProps | undefined, -): Record | undefined; -/** - * LeaseList is a list of Lease objects. - * - * @schema io.k8s.api.coordination.v1.LeaseList - */ -export interface KubeLeaseListProps { - /** - * Items is a list of schema objects. - * - * @schema io.k8s.api.coordination.v1.LeaseList#items - */ - readonly items: KubeLeaseProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.coordination.v1.LeaseList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeLeaseListProps' to JSON representation. - */ -export declare function toJson_KubeLeaseListProps( - obj: KubeLeaseListProps | undefined, -): Record | undefined; -/** - * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. - * - * @schema io.k8s.api.core.v1.Binding - */ -export interface KubeBindingProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Binding#metadata - */ - readonly metadata?: ObjectMeta; - /** - * The target object that you want to bind to the standard object. - * - * @schema io.k8s.api.core.v1.Binding#target - */ - readonly target: ObjectReference; -} -/** - * Converts an object of type 'KubeBindingProps' to JSON representation. - */ -export declare function toJson_KubeBindingProps( - obj: KubeBindingProps | undefined, -): Record | undefined; -/** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatus - */ -export interface KubeComponentStatusProps { - /** - * List of component conditions observed - * - * @schema io.k8s.api.core.v1.ComponentStatus#conditions - */ - readonly conditions?: ComponentCondition[]; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ComponentStatus#metadata - */ - readonly metadata?: ObjectMeta; -} -/** - * Converts an object of type 'KubeComponentStatusProps' to JSON representation. - */ -export declare function toJson_KubeComponentStatusProps( - obj: KubeComponentStatusProps | undefined, -): Record | undefined; -/** - * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatusList - */ -export interface KubeComponentStatusListProps { - /** - * List of ComponentStatus objects. - * - * @schema io.k8s.api.core.v1.ComponentStatusList#items - */ - readonly items: KubeComponentStatusProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ComponentStatusList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeComponentStatusListProps' to JSON representation. - */ -export declare function toJson_KubeComponentStatusListProps( - obj: KubeComponentStatusListProps | undefined, -): Record | undefined; -/** - * ConfigMap holds configuration data for pods to consume. - * - * @schema io.k8s.api.core.v1.ConfigMap - */ -export interface KubeConfigMapProps { - /** - * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. - * - * @schema io.k8s.api.core.v1.ConfigMap#binaryData - */ - readonly binaryData?: { - [key: string]: string; - }; - /** - * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. - * - * @schema io.k8s.api.core.v1.ConfigMap#data - */ - readonly data?: { - [key: string]: string; - }; - /** - * Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. - * - * @schema io.k8s.api.core.v1.ConfigMap#immutable - */ - readonly immutable?: boolean; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ConfigMap#metadata - */ - readonly metadata?: ObjectMeta; -} -/** - * Converts an object of type 'KubeConfigMapProps' to JSON representation. - */ -export declare function toJson_KubeConfigMapProps( - obj: KubeConfigMapProps | undefined, -): Record | undefined; -/** - * ConfigMapList is a resource containing a list of ConfigMap objects. - * - * @schema io.k8s.api.core.v1.ConfigMapList - */ -export interface KubeConfigMapListProps { - /** - * Items is the list of ConfigMaps. - * - * @schema io.k8s.api.core.v1.ConfigMapList#items - */ - readonly items: KubeConfigMapProps[]; - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ConfigMapList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeConfigMapListProps' to JSON representation. - */ -export declare function toJson_KubeConfigMapListProps( - obj: KubeConfigMapListProps | undefined, -): Record | undefined; -/** - * Endpoints is a collection of endpoints that implement the actual service. Example: - * Name: "mysvc", - * Subsets: [ - * { - * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - * }, - * { - * Addresses: [{"ip": "10.10.3.3"}], - * Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] - * }, - * ] - * - * @schema io.k8s.api.core.v1.Endpoints - */ -export interface KubeEndpointsProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Endpoints#metadata - */ - readonly metadata?: ObjectMeta; - /** - * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - * - * @schema io.k8s.api.core.v1.Endpoints#subsets - */ - readonly subsets?: EndpointSubset[]; -} -/** - * Converts an object of type 'KubeEndpointsProps' to JSON representation. - */ -export declare function toJson_KubeEndpointsProps( - obj: KubeEndpointsProps | undefined, -): Record | undefined; -/** - * EndpointsList is a list of endpoints. - * - * @schema io.k8s.api.core.v1.EndpointsList - */ -export interface KubeEndpointsListProps { - /** - * List of endpoints. - * - * @schema io.k8s.api.core.v1.EndpointsList#items - */ - readonly items: KubeEndpointsProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.EndpointsList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeEndpointsListProps' to JSON representation. - */ -export declare function toJson_KubeEndpointsListProps( - obj: KubeEndpointsListProps | undefined, -): Record | undefined; -/** - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. - * - * @schema io.k8s.api.events.v1.Event - */ -export interface KubeEventProps { - /** - * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1.Event#action - */ - readonly action?: string; - /** - * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedCount - */ - readonly deprecatedCount?: number; - /** - * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedFirstTimestamp - */ - readonly deprecatedFirstTimestamp?: Date; - /** - * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedLastTimestamp - */ - readonly deprecatedLastTimestamp?: Date; - /** - * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedSource - */ - readonly deprecatedSource?: EventSource; - /** - * eventTime is the time when this Event was first observed. It is required. - * - * @schema io.k8s.api.events.v1.Event#eventTime - */ - readonly eventTime: Date; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.events.v1.Event#metadata - */ - readonly metadata?: ObjectMeta; - /** - * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - * - * @schema io.k8s.api.events.v1.Event#note - */ - readonly note?: string; - /** - * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1.Event#reason - */ - readonly reason?: string; - /** - * regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - * - * @schema io.k8s.api.events.v1.Event#regarding - */ - readonly regarding?: ObjectReference; - /** - * related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - * - * @schema io.k8s.api.events.v1.Event#related - */ - readonly related?: ObjectReference; - /** - * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. - * - * @schema io.k8s.api.events.v1.Event#reportingController - */ - readonly reportingController?: string; - /** - * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1.Event#reportingInstance - */ - readonly reportingInstance?: string; - /** - * series is data about the Event series this event represents or nil if it's a singleton Event. - * - * @schema io.k8s.api.events.v1.Event#series - */ - readonly series?: EventSeries; - /** - * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. - * - * @schema io.k8s.api.events.v1.Event#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'KubeEventProps' to JSON representation. - */ -export declare function toJson_KubeEventProps( - obj: KubeEventProps | undefined, -): Record | undefined; -/** - * EventList is a list of Event objects. - * - * @schema io.k8s.api.events.v1.EventList - */ -export interface KubeEventListProps { - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.events.v1.EventList#items - */ - readonly items: KubeEventProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.events.v1.EventList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeEventListProps' to JSON representation. - */ -export declare function toJson_KubeEventListProps( - obj: KubeEventListProps | undefined, -): Record | undefined; -/** - * LimitRange sets resource usage limits for each kind of resource in a Namespace. - * - * @schema io.k8s.api.core.v1.LimitRange - */ -export interface KubeLimitRangeProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.LimitRange#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.LimitRange#spec - */ - readonly spec?: LimitRangeSpec; -} -/** - * Converts an object of type 'KubeLimitRangeProps' to JSON representation. - */ -export declare function toJson_KubeLimitRangeProps( - obj: KubeLimitRangeProps | undefined, -): Record | undefined; -/** - * LimitRangeList is a list of LimitRange items. - * - * @schema io.k8s.api.core.v1.LimitRangeList - */ -export interface KubeLimitRangeListProps { - /** - * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.LimitRangeList#items - */ - readonly items: KubeLimitRangeProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.LimitRangeList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeLimitRangeListProps' to JSON representation. - */ -export declare function toJson_KubeLimitRangeListProps( - obj: KubeLimitRangeListProps | undefined, -): Record | undefined; -/** - * Namespace provides a scope for Names. Use of multiple namespaces is optional. - * - * @schema io.k8s.api.core.v1.Namespace - */ -export interface KubeNamespaceProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Namespace#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Namespace#spec - */ - readonly spec?: NamespaceSpec; -} -/** - * Converts an object of type 'KubeNamespaceProps' to JSON representation. - */ -export declare function toJson_KubeNamespaceProps( - obj: KubeNamespaceProps | undefined, -): Record | undefined; -/** - * NamespaceList is a list of Namespaces. - * - * @schema io.k8s.api.core.v1.NamespaceList - */ -export interface KubeNamespaceListProps { - /** - * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * - * @schema io.k8s.api.core.v1.NamespaceList#items - */ - readonly items: KubeNamespaceProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.NamespaceList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeNamespaceListProps' to JSON representation. - */ -export declare function toJson_KubeNamespaceListProps( - obj: KubeNamespaceListProps | undefined, -): Record | undefined; -/** - * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). - * - * @schema io.k8s.api.core.v1.Node - */ -export interface KubeNodeProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Node#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Node#spec - */ - readonly spec?: NodeSpec; -} -/** - * Converts an object of type 'KubeNodeProps' to JSON representation. - */ -export declare function toJson_KubeNodeProps( - obj: KubeNodeProps | undefined, -): Record | undefined; -/** - * NodeList is the whole list of all Nodes which have been registered with master. - * - * @schema io.k8s.api.core.v1.NodeList - */ -export interface KubeNodeListProps { - /** - * List of nodes - * - * @schema io.k8s.api.core.v1.NodeList#items - */ - readonly items: KubeNodeProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.NodeList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeNodeListProps' to JSON representation. - */ -export declare function toJson_KubeNodeListProps( - obj: KubeNodeListProps | undefined, -): Record | undefined; -/** - * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolume - */ -export interface KubePersistentVolumeProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PersistentVolume#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolume#spec - */ - readonly spec?: PersistentVolumeSpec; -} -/** - * Converts an object of type 'KubePersistentVolumeProps' to JSON representation. - */ -export declare function toJson_KubePersistentVolumeProps( - obj: KubePersistentVolumeProps | undefined, -): Record | undefined; -/** - * PersistentVolumeClaim is a user's request for and claim to a persistent volume - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim - */ -export interface KubePersistentVolumeClaimProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim#spec - */ - readonly spec?: PersistentVolumeClaimSpec; -} -/** - * Converts an object of type 'KubePersistentVolumeClaimProps' to JSON representation. - */ -export declare function toJson_KubePersistentVolumeClaimProps( - obj: KubePersistentVolumeClaimProps | undefined, -): Record | undefined; -/** - * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList - */ -export interface KubePersistentVolumeClaimListProps { - /** - * A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#items - */ - readonly items: KubePersistentVolumeClaimProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePersistentVolumeClaimListProps' to JSON representation. - */ -export declare function toJson_KubePersistentVolumeClaimListProps( - obj: KubePersistentVolumeClaimListProps | undefined, -): Record | undefined; -/** - * PersistentVolumeList is a list of PersistentVolume items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeList - */ -export interface KubePersistentVolumeListProps { - /** - * List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolumeList#items - */ - readonly items: KubePersistentVolumeProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PersistentVolumeList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePersistentVolumeListProps' to JSON representation. - */ -export declare function toJson_KubePersistentVolumeListProps( - obj: KubePersistentVolumeListProps | undefined, -): Record | undefined; -/** - * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. - * - * @schema io.k8s.api.core.v1.Pod - */ -export interface KubePodProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Pod#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Pod#spec - */ - readonly spec?: PodSpec; -} -/** - * Converts an object of type 'KubePodProps' to JSON representation. - */ -export declare function toJson_KubePodProps( - obj: KubePodProps | undefined, -): Record | undefined; -/** - * PodList is a list of Pods. - * - * @schema io.k8s.api.core.v1.PodList - */ -export interface KubePodListProps { - /** - * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - * - * @schema io.k8s.api.core.v1.PodList#items - */ - readonly items: KubePodProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PodList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePodListProps' to JSON representation. - */ -export declare function toJson_KubePodListProps( - obj: KubePodListProps | undefined, -): Record | undefined; -/** - * PodTemplate describes a template for creating copies of a predefined pod. - * - * @schema io.k8s.api.core.v1.PodTemplate - */ -export interface KubePodTemplateProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PodTemplate#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.PodTemplate#template - */ - readonly template?: PodTemplateSpec; -} -/** - * Converts an object of type 'KubePodTemplateProps' to JSON representation. - */ -export declare function toJson_KubePodTemplateProps( - obj: KubePodTemplateProps | undefined, -): Record | undefined; -/** - * PodTemplateList is a list of PodTemplates. - * - * @schema io.k8s.api.core.v1.PodTemplateList - */ -export interface KubePodTemplateListProps { - /** - * List of pod templates - * - * @schema io.k8s.api.core.v1.PodTemplateList#items - */ - readonly items: KubePodTemplateProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PodTemplateList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePodTemplateListProps' to JSON representation. - */ -export declare function toJson_KubePodTemplateListProps( - obj: KubePodTemplateListProps | undefined, -): Record | undefined; -/** - * ReplicationController represents the configuration of a replication controller. - * - * @schema io.k8s.api.core.v1.ReplicationController - */ -export interface KubeReplicationControllerProps { - /** - * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ReplicationController#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.ReplicationController#spec - */ - readonly spec?: ReplicationControllerSpec; -} -/** - * Converts an object of type 'KubeReplicationControllerProps' to JSON representation. - */ -export declare function toJson_KubeReplicationControllerProps( - obj: KubeReplicationControllerProps | undefined, -): Record | undefined; -/** - * ReplicationControllerList is a collection of replication controllers. - * - * @schema io.k8s.api.core.v1.ReplicationControllerList - */ -export interface KubeReplicationControllerListProps { - /** - * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * - * @schema io.k8s.api.core.v1.ReplicationControllerList#items - */ - readonly items: KubeReplicationControllerProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ReplicationControllerList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeReplicationControllerListProps' to JSON representation. - */ -export declare function toJson_KubeReplicationControllerListProps( - obj: KubeReplicationControllerListProps | undefined, -): Record | undefined; -/** - * ResourceQuota sets aggregate quota restrictions enforced per namespace - * - * @schema io.k8s.api.core.v1.ResourceQuota - */ -export interface KubeResourceQuotaProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ResourceQuota#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.ResourceQuota#spec - */ - readonly spec?: ResourceQuotaSpec; -} -/** - * Converts an object of type 'KubeResourceQuotaProps' to JSON representation. - */ -export declare function toJson_KubeResourceQuotaProps( - obj: KubeResourceQuotaProps | undefined, -): Record | undefined; -/** - * ResourceQuotaList is a list of ResourceQuota items. - * - * @schema io.k8s.api.core.v1.ResourceQuotaList - */ -export interface KubeResourceQuotaListProps { - /** - * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * - * @schema io.k8s.api.core.v1.ResourceQuotaList#items - */ - readonly items: KubeResourceQuotaProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ResourceQuotaList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeResourceQuotaListProps' to JSON representation. - */ -export declare function toJson_KubeResourceQuotaListProps( - obj: KubeResourceQuotaListProps | undefined, -): Record | undefined; -/** - * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - * - * @schema io.k8s.api.core.v1.Secret - */ -export interface KubeSecretProps { - /** - * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - * - * @schema io.k8s.api.core.v1.Secret#data - */ - readonly data?: { - [key: string]: string; - }; - /** - * Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. - * - * @schema io.k8s.api.core.v1.Secret#immutable - */ - readonly immutable?: boolean; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Secret#metadata - */ - readonly metadata?: ObjectMeta; - /** - * stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. - * - * @schema io.k8s.api.core.v1.Secret#stringData - */ - readonly stringData?: { - [key: string]: string; - }; - /** - * Used to facilitate programmatic handling of secret data. - * - * @schema io.k8s.api.core.v1.Secret#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'KubeSecretProps' to JSON representation. - */ -export declare function toJson_KubeSecretProps( - obj: KubeSecretProps | undefined, -): Record | undefined; -/** - * SecretList is a list of Secret. - * - * @schema io.k8s.api.core.v1.SecretList - */ -export interface KubeSecretListProps { - /** - * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret - * - * @schema io.k8s.api.core.v1.SecretList#items - */ - readonly items: KubeSecretProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.SecretList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeSecretListProps' to JSON representation. - */ -export declare function toJson_KubeSecretListProps( - obj: KubeSecretListProps | undefined, -): Record | undefined; -/** - * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. - * - * @schema io.k8s.api.core.v1.Service - */ -export interface KubeServiceProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Service#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Service#spec - */ - readonly spec?: ServiceSpec; -} -/** - * Converts an object of type 'KubeServiceProps' to JSON representation. - */ -export declare function toJson_KubeServiceProps( - obj: KubeServiceProps | undefined, -): Record | undefined; -/** - * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets - * - * @schema io.k8s.api.core.v1.ServiceAccount - */ -export interface KubeServiceAccountProps { - /** - * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - * - * @schema io.k8s.api.core.v1.ServiceAccount#automountServiceAccountToken - */ - readonly automountServiceAccountToken?: boolean; - /** - * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - * - * @schema io.k8s.api.core.v1.ServiceAccount#imagePullSecrets - */ - readonly imagePullSecrets?: LocalObjectReference[]; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ServiceAccount#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - * - * @schema io.k8s.api.core.v1.ServiceAccount#secrets - */ - readonly secrets?: ObjectReference[]; -} -/** - * Converts an object of type 'KubeServiceAccountProps' to JSON representation. - */ -export declare function toJson_KubeServiceAccountProps( - obj: KubeServiceAccountProps | undefined, -): Record | undefined; -/** - * ServiceAccountList is a list of ServiceAccount objects - * - * @schema io.k8s.api.core.v1.ServiceAccountList - */ -export interface KubeServiceAccountListProps { - /** - * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * - * @schema io.k8s.api.core.v1.ServiceAccountList#items - */ - readonly items: KubeServiceAccountProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ServiceAccountList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeServiceAccountListProps' to JSON representation. - */ -export declare function toJson_KubeServiceAccountListProps( - obj: KubeServiceAccountListProps | undefined, -): Record | undefined; -/** - * ServiceList holds a list of services. - * - * @schema io.k8s.api.core.v1.ServiceList - */ -export interface KubeServiceListProps { - /** - * List of services - * - * @schema io.k8s.api.core.v1.ServiceList#items - */ - readonly items: KubeServiceProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ServiceList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeServiceListProps' to JSON representation. - */ -export declare function toJson_KubeServiceListProps( - obj: KubeServiceListProps | undefined, -): Record | undefined; -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice - */ -export interface KubeEndpointSliceProps { - /** - * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#addressType - */ - readonly addressType: string; - /** - * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#endpoints - */ - readonly endpoints: Endpoint[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#metadata - */ - readonly metadata?: ObjectMeta; - /** - * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#ports - */ - readonly ports?: EndpointPort[]; -} -/** - * Converts an object of type 'KubeEndpointSliceProps' to JSON representation. - */ -export declare function toJson_KubeEndpointSliceProps( - obj: KubeEndpointSliceProps | undefined, -): Record | undefined; -/** - * EndpointSliceList represents a list of endpoint slices - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList - */ -export interface KubeEndpointSliceListProps { - /** - * List of endpoint slices - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList#items - */ - readonly items: KubeEndpointSliceProps[]; - /** - * Standard list metadata. - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeEndpointSliceListProps' to JSON representation. - */ -export declare function toJson_KubeEndpointSliceListProps( - obj: KubeEndpointSliceListProps | undefined, -): Record | undefined; -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSlice - */ -export interface KubeEndpointSliceV1Beta1Props { - /** - * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSlice#addressType - */ - readonly addressType: string; - /** - * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSlice#endpoints - */ - readonly endpoints: EndpointV1Beta1[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSlice#metadata - */ - readonly metadata?: ObjectMeta; - /** - * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSlice#ports - */ - readonly ports?: EndpointPortV1Beta1[]; -} -/** - * Converts an object of type 'KubeEndpointSliceV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeEndpointSliceV1Beta1Props( - obj: KubeEndpointSliceV1Beta1Props | undefined, -): Record | undefined; -/** - * EndpointSliceList represents a list of endpoint slices - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSliceList - */ -export interface KubeEndpointSliceListV1Beta1Props { - /** - * List of endpoint slices - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSliceList#items - */ - readonly items: KubeEndpointSliceV1Beta1Props[]; - /** - * Standard list metadata. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointSliceList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeEndpointSliceListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeEndpointSliceListV1Beta1Props( - obj: KubeEndpointSliceListV1Beta1Props | undefined, -): Record | undefined; -/** - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. - * - * @schema io.k8s.api.events.v1beta1.Event - */ -export interface KubeEventV1Beta1Props { - /** - * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters. - * - * @schema io.k8s.api.events.v1beta1.Event#action - */ - readonly action?: string; - /** - * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1beta1.Event#deprecatedCount - */ - readonly deprecatedCount?: number; - /** - * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1beta1.Event#deprecatedFirstTimestamp - */ - readonly deprecatedFirstTimestamp?: Date; - /** - * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1beta1.Event#deprecatedLastTimestamp - */ - readonly deprecatedLastTimestamp?: Date; - /** - * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1beta1.Event#deprecatedSource - */ - readonly deprecatedSource?: EventSource; - /** - * eventTime is the time when this Event was first observed. It is required. - * - * @schema io.k8s.api.events.v1beta1.Event#eventTime - */ - readonly eventTime: Date; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.events.v1beta1.Event#metadata - */ - readonly metadata?: ObjectMeta; - /** - * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - * - * @schema io.k8s.api.events.v1beta1.Event#note - */ - readonly note?: string; - /** - * reason is why the action was taken. It is human-readable. This field can have at most 128 characters. - * - * @schema io.k8s.api.events.v1beta1.Event#reason - */ - readonly reason?: string; - /** - * regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - * - * @schema io.k8s.api.events.v1beta1.Event#regarding - */ - readonly regarding?: ObjectReference; - /** - * related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - * - * @schema io.k8s.api.events.v1beta1.Event#related - */ - readonly related?: ObjectReference; - /** - * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. - * - * @schema io.k8s.api.events.v1beta1.Event#reportingController - */ - readonly reportingController?: string; - /** - * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1beta1.Event#reportingInstance - */ - readonly reportingInstance?: string; - /** - * series is data about the Event series this event represents or nil if it's a singleton Event. - * - * @schema io.k8s.api.events.v1beta1.Event#series - */ - readonly series?: EventSeriesV1Beta1; - /** - * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. - * - * @schema io.k8s.api.events.v1beta1.Event#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'KubeEventV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeEventV1Beta1Props( - obj: KubeEventV1Beta1Props | undefined, -): Record | undefined; -/** - * EventList is a list of Event objects. - * - * @schema io.k8s.api.events.v1beta1.EventList - */ -export interface KubeEventListV1Beta1Props { - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.events.v1beta1.EventList#items - */ - readonly items: KubeEventV1Beta1Props[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.events.v1beta1.EventList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeEventListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeEventListV1Beta1Props( - obj: KubeEventListV1Beta1Props | undefined, -): Record | undefined; -/** - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema - */ -export interface KubeFlowSchemaV1Beta1Props { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema#metadata - */ - readonly metadata?: ObjectMeta; - /** - * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema#spec - */ - readonly spec?: FlowSchemaSpecV1Beta1; -} -/** - * Converts an object of type 'KubeFlowSchemaV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeFlowSchemaV1Beta1Props( - obj: KubeFlowSchemaV1Beta1Props | undefined, -): Record | undefined; -/** - * FlowSchemaList is a list of FlowSchema objects. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList - */ -export interface KubeFlowSchemaListV1Beta1Props { - /** - * `items` is a list of FlowSchemas. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList#items - */ - readonly items: KubeFlowSchemaV1Beta1Props[]; - /** - * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeFlowSchemaListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeFlowSchemaListV1Beta1Props( - obj: KubeFlowSchemaListV1Beta1Props | undefined, -): Record | undefined; -/** - * PriorityLevelConfiguration represents the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration - */ -export interface KubePriorityLevelConfigurationV1Beta1Props { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - /** - * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration#spec - */ - readonly spec?: PriorityLevelConfigurationSpecV1Beta1; -} -/** - * Converts an object of type 'KubePriorityLevelConfigurationV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubePriorityLevelConfigurationV1Beta1Props( - obj: KubePriorityLevelConfigurationV1Beta1Props | undefined, -): Record | undefined; -/** - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList - */ -export interface KubePriorityLevelConfigurationListV1Beta1Props { - /** - * `items` is a list of request-priorities. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList#items - */ - readonly items: KubePriorityLevelConfigurationV1Beta1Props[]; - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePriorityLevelConfigurationListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubePriorityLevelConfigurationListV1Beta1Props( - obj: KubePriorityLevelConfigurationListV1Beta1Props | undefined, -): Record | undefined; -/** - * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - * - * @schema io.k8s.api.networking.v1.Ingress - */ -export interface KubeIngressProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.Ingress#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.networking.v1.Ingress#spec - */ - readonly spec?: IngressSpec; -} -/** - * Converts an object of type 'KubeIngressProps' to JSON representation. - */ -export declare function toJson_KubeIngressProps( - obj: KubeIngressProps | undefined, -): Record | undefined; -/** - * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. - * - * @schema io.k8s.api.networking.v1.IngressClass - */ -export interface KubeIngressClassProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.IngressClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.networking.v1.IngressClass#spec - */ - readonly spec?: IngressClassSpec; -} -/** - * Converts an object of type 'KubeIngressClassProps' to JSON representation. - */ -export declare function toJson_KubeIngressClassProps( - obj: KubeIngressClassProps | undefined, -): Record | undefined; -/** - * IngressClassList is a collection of IngressClasses. - * - * @schema io.k8s.api.networking.v1.IngressClassList - */ -export interface KubeIngressClassListProps { - /** - * Items is the list of IngressClasses. - * - * @schema io.k8s.api.networking.v1.IngressClassList#items - */ - readonly items: KubeIngressClassProps[]; - /** - * Standard list metadata. - * - * @schema io.k8s.api.networking.v1.IngressClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeIngressClassListProps' to JSON representation. - */ -export declare function toJson_KubeIngressClassListProps( - obj: KubeIngressClassListProps | undefined, -): Record | undefined; -/** - * IngressList is a collection of Ingress. - * - * @schema io.k8s.api.networking.v1.IngressList - */ -export interface KubeIngressListProps { - /** - * Items is the list of Ingress. - * - * @schema io.k8s.api.networking.v1.IngressList#items - */ - readonly items: KubeIngressProps[]; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.IngressList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeIngressListProps' to JSON representation. - */ -export declare function toJson_KubeIngressListProps( - obj: KubeIngressListProps | undefined, -): Record | undefined; -/** - * NetworkPolicy describes what network traffic is allowed for a set of Pods - * - * @schema io.k8s.api.networking.v1.NetworkPolicy - */ -export interface KubeNetworkPolicyProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.NetworkPolicy#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior for this NetworkPolicy. - * - * @schema io.k8s.api.networking.v1.NetworkPolicy#spec - */ - readonly spec?: NetworkPolicySpec; -} -/** - * Converts an object of type 'KubeNetworkPolicyProps' to JSON representation. - */ -export declare function toJson_KubeNetworkPolicyProps( - obj: KubeNetworkPolicyProps | undefined, -): Record | undefined; -/** - * NetworkPolicyList is a list of NetworkPolicy objects. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList - */ -export interface KubeNetworkPolicyListProps { - /** - * Items is a list of schema objects. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList#items - */ - readonly items: KubeNetworkPolicyProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeNetworkPolicyListProps' to JSON representation. - */ -export declare function toJson_KubeNetworkPolicyListProps( - obj: KubeNetworkPolicyListProps | undefined, -): Record | undefined; -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ - * - * @schema io.k8s.api.node.v1.RuntimeClass - */ -export interface KubeRuntimeClassProps { - /** - * Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. - * - * @schema io.k8s.api.node.v1.RuntimeClass#handler - */ - readonly handler: string; - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1.RuntimeClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see - * https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ - * This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature. - * - * @schema io.k8s.api.node.v1.RuntimeClass#overhead - */ - readonly overhead?: Overhead; - /** - * Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * - * @schema io.k8s.api.node.v1.RuntimeClass#scheduling - */ - readonly scheduling?: Scheduling; -} -/** - * Converts an object of type 'KubeRuntimeClassProps' to JSON representation. - */ -export declare function toJson_KubeRuntimeClassProps( - obj: KubeRuntimeClassProps | undefined, -): Record | undefined; -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1.RuntimeClassList - */ -export interface KubeRuntimeClassListProps { - /** - * Items is a list of schema objects. - * - * @schema io.k8s.api.node.v1.RuntimeClassList#items - */ - readonly items: KubeRuntimeClassProps[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1.RuntimeClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRuntimeClassListProps' to JSON representation. - */ -export declare function toJson_KubeRuntimeClassListProps( - obj: KubeRuntimeClassListProps | undefined, -): Record | undefined; -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClass - */ -export interface KubeRuntimeClassV1Alpha1Props { - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClass#spec - */ - readonly spec: RuntimeClassSpecV1Alpha1; -} -/** - * Converts an object of type 'KubeRuntimeClassV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeRuntimeClassV1Alpha1Props( - obj: KubeRuntimeClassV1Alpha1Props | undefined, -): Record | undefined; -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassList - */ -export interface KubeRuntimeClassListV1Alpha1Props { - /** - * Items is a list of schema objects. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassList#items - */ - readonly items: KubeRuntimeClassV1Alpha1Props[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRuntimeClassListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeRuntimeClassListV1Alpha1Props( - obj: KubeRuntimeClassListV1Alpha1Props | undefined, -): Record | undefined; -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - * - * @schema io.k8s.api.node.v1beta1.RuntimeClass - */ -export interface KubeRuntimeClassV1Beta1Props { - /** - * Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. - * - * @schema io.k8s.api.node.v1beta1.RuntimeClass#handler - */ - readonly handler: string; - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1beta1.RuntimeClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature. - * - * @schema io.k8s.api.node.v1beta1.RuntimeClass#overhead - */ - readonly overhead?: OverheadV1Beta1; - /** - * Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * - * @schema io.k8s.api.node.v1beta1.RuntimeClass#scheduling - */ - readonly scheduling?: SchedulingV1Beta1; -} -/** - * Converts an object of type 'KubeRuntimeClassV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeRuntimeClassV1Beta1Props( - obj: KubeRuntimeClassV1Beta1Props | undefined, -): Record | undefined; -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1beta1.RuntimeClassList - */ -export interface KubeRuntimeClassListV1Beta1Props { - /** - * Items is a list of schema objects. - * - * @schema io.k8s.api.node.v1beta1.RuntimeClassList#items - */ - readonly items: KubeRuntimeClassV1Beta1Props[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1beta1.RuntimeClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRuntimeClassListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeRuntimeClassListV1Beta1Props( - obj: KubeRuntimeClassListV1Beta1Props | undefined, -): Record | undefined; -/** - * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. - * - * @schema io.k8s.api.policy.v1.Eviction - */ -export interface KubeEvictionProps { - /** - * DeleteOptions may be provided - * - * @schema io.k8s.api.policy.v1.Eviction#deleteOptions - */ - readonly deleteOptions?: DeleteOptions; - /** - * ObjectMeta describes the pod that is being evicted. - * - * @schema io.k8s.api.policy.v1.Eviction#metadata - */ - readonly metadata?: ObjectMeta; -} -/** - * Converts an object of type 'KubeEvictionProps' to JSON representation. - */ -export declare function toJson_KubeEvictionProps( - obj: KubeEvictionProps | undefined, -): Record | undefined; -/** - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget - */ -export interface KubePodDisruptionBudgetProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the PodDisruptionBudget. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget#spec - */ - readonly spec?: PodDisruptionBudgetSpec; -} -/** - * Converts an object of type 'KubePodDisruptionBudgetProps' to JSON representation. - */ -export declare function toJson_KubePodDisruptionBudgetProps( - obj: KubePodDisruptionBudgetProps | undefined, -): Record | undefined; -/** - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList - */ -export interface KubePodDisruptionBudgetListProps { - /** - * Items is a list of PodDisruptionBudgets - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#items - */ - readonly items: KubePodDisruptionBudgetProps[]; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePodDisruptionBudgetListProps' to JSON representation. - */ -export declare function toJson_KubePodDisruptionBudgetListProps( - obj: KubePodDisruptionBudgetListProps | undefined, -): Record | undefined; -/** - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudget - */ -export interface KubePodDisruptionBudgetV1Beta1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudget#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the PodDisruptionBudget. - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudget#spec - */ - readonly spec?: PodDisruptionBudgetSpecV1Beta1; -} -/** - * Converts an object of type 'KubePodDisruptionBudgetV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubePodDisruptionBudgetV1Beta1Props( - obj: KubePodDisruptionBudgetV1Beta1Props | undefined, -): Record | undefined; -/** - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetList - */ -export interface KubePodDisruptionBudgetListV1Beta1Props { - /** - * items list individual PodDisruptionBudget objects - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetList#items - */ - readonly items: KubePodDisruptionBudgetV1Beta1Props[]; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePodDisruptionBudgetListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubePodDisruptionBudgetListV1Beta1Props( - obj: KubePodDisruptionBudgetListV1Beta1Props | undefined, -): Record | undefined; -/** - * PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicy - */ -export interface KubePodSecurityPolicyV1Beta1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicy#metadata - */ - readonly metadata?: ObjectMeta; - /** - * spec defines the policy enforced. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicy#spec - */ - readonly spec?: PodSecurityPolicySpecV1Beta1; -} -/** - * Converts an object of type 'KubePodSecurityPolicyV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubePodSecurityPolicyV1Beta1Props( - obj: KubePodSecurityPolicyV1Beta1Props | undefined, -): Record | undefined; -/** - * PodSecurityPolicyList is a list of PodSecurityPolicy objects. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicyList - */ -export interface KubePodSecurityPolicyListV1Beta1Props { - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicyList#items - */ - readonly items: KubePodSecurityPolicyV1Beta1Props[]; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicyList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePodSecurityPolicyListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubePodSecurityPolicyListV1Beta1Props( - obj: KubePodSecurityPolicyListV1Beta1Props | undefined, -): Record | undefined; -/** - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - * - * @schema io.k8s.api.rbac.v1.ClusterRole - */ -export interface KubeClusterRoleProps { - /** - * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * - * @schema io.k8s.api.rbac.v1.ClusterRole#aggregationRule - */ - readonly aggregationRule?: AggregationRule; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRole#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Rules holds all the PolicyRules for this ClusterRole - * - * @schema io.k8s.api.rbac.v1.ClusterRole#rules - */ - readonly rules?: PolicyRule[]; -} -/** - * Converts an object of type 'KubeClusterRoleProps' to JSON representation. - */ -export declare function toJson_KubeClusterRoleProps( - obj: KubeClusterRoleProps | undefined, -): Record | undefined; -/** - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding - */ -export interface KubeClusterRoleBindingProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#metadata - */ - readonly metadata?: ObjectMeta; - /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#roleRef - */ - readonly roleRef: RoleRef; - /** - * Subjects holds references to the objects the role applies to. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#subjects - */ - readonly subjects?: Subject[]; -} -/** - * Converts an object of type 'KubeClusterRoleBindingProps' to JSON representation. - */ -export declare function toJson_KubeClusterRoleBindingProps( - obj: KubeClusterRoleBindingProps | undefined, -): Record | undefined; -/** - * ClusterRoleBindingList is a collection of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList - */ -export interface KubeClusterRoleBindingListProps { - /** - * Items is a list of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#items - */ - readonly items: KubeClusterRoleBindingProps[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeClusterRoleBindingListProps' to JSON representation. - */ -export declare function toJson_KubeClusterRoleBindingListProps( - obj: KubeClusterRoleBindingListProps | undefined, -): Record | undefined; -/** - * ClusterRoleList is a collection of ClusterRoles - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList - */ -export interface KubeClusterRoleListProps { - /** - * Items is a list of ClusterRoles - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList#items - */ - readonly items: KubeClusterRoleProps[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeClusterRoleListProps' to JSON representation. - */ -export declare function toJson_KubeClusterRoleListProps( - obj: KubeClusterRoleListProps | undefined, -): Record | undefined; -/** - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - * - * @schema io.k8s.api.rbac.v1.Role - */ -export interface KubeRoleProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.Role#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Rules holds all the PolicyRules for this Role - * - * @schema io.k8s.api.rbac.v1.Role#rules - */ - readonly rules?: PolicyRule[]; -} -/** - * Converts an object of type 'KubeRoleProps' to JSON representation. - */ -export declare function toJson_KubeRoleProps( - obj: KubeRoleProps | undefined, -): Record | undefined; -/** - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - * - * @schema io.k8s.api.rbac.v1.RoleBinding - */ -export interface KubeRoleBindingProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.RoleBinding#metadata - */ - readonly metadata?: ObjectMeta; - /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * - * @schema io.k8s.api.rbac.v1.RoleBinding#roleRef - */ - readonly roleRef: RoleRef; - /** - * Subjects holds references to the objects the role applies to. - * - * @schema io.k8s.api.rbac.v1.RoleBinding#subjects - */ - readonly subjects?: Subject[]; -} -/** - * Converts an object of type 'KubeRoleBindingProps' to JSON representation. - */ -export declare function toJson_KubeRoleBindingProps( - obj: KubeRoleBindingProps | undefined, -): Record | undefined; -/** - * RoleBindingList is a collection of RoleBindings - * - * @schema io.k8s.api.rbac.v1.RoleBindingList - */ -export interface KubeRoleBindingListProps { - /** - * Items is a list of RoleBindings - * - * @schema io.k8s.api.rbac.v1.RoleBindingList#items - */ - readonly items: KubeRoleBindingProps[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.RoleBindingList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRoleBindingListProps' to JSON representation. - */ -export declare function toJson_KubeRoleBindingListProps( - obj: KubeRoleBindingListProps | undefined, -): Record | undefined; -/** - * RoleList is a collection of Roles - * - * @schema io.k8s.api.rbac.v1.RoleList - */ -export interface KubeRoleListProps { - /** - * Items is a list of Roles - * - * @schema io.k8s.api.rbac.v1.RoleList#items - */ - readonly items: KubeRoleProps[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.RoleList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRoleListProps' to JSON representation. - */ -export declare function toJson_KubeRoleListProps( - obj: KubeRoleListProps | undefined, -): Record | undefined; -/** - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRole - */ -export interface KubeClusterRoleV1Alpha1Props { - /** - * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRole#aggregationRule - */ - readonly aggregationRule?: AggregationRuleV1Alpha1; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRole#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Rules holds all the PolicyRules for this ClusterRole - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRole#rules - */ - readonly rules?: PolicyRuleV1Alpha1[]; -} -/** - * Converts an object of type 'KubeClusterRoleV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeClusterRoleV1Alpha1Props( - obj: KubeClusterRoleV1Alpha1Props | undefined, -): Record | undefined; -/** - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBinding - */ -export interface KubeClusterRoleBindingV1Alpha1Props { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBinding#metadata - */ - readonly metadata?: ObjectMeta; - /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBinding#roleRef - */ - readonly roleRef: RoleRefV1Alpha1; - /** - * Subjects holds references to the objects the role applies to. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBinding#subjects - */ - readonly subjects?: SubjectV1Alpha1[]; -} -/** - * Converts an object of type 'KubeClusterRoleBindingV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeClusterRoleBindingV1Alpha1Props( - obj: KubeClusterRoleBindingV1Alpha1Props | undefined, -): Record | undefined; -/** - * ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList - */ -export interface KubeClusterRoleBindingListV1Alpha1Props { - /** - * Items is a list of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList#items - */ - readonly items: KubeClusterRoleBindingV1Alpha1Props[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeClusterRoleBindingListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeClusterRoleBindingListV1Alpha1Props( - obj: KubeClusterRoleBindingListV1Alpha1Props | undefined, -): Record | undefined; -/** - * ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleList - */ -export interface KubeClusterRoleListV1Alpha1Props { - /** - * Items is a list of ClusterRoles - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleList#items - */ - readonly items: KubeClusterRoleV1Alpha1Props[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.ClusterRoleList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeClusterRoleListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeClusterRoleListV1Alpha1Props( - obj: KubeClusterRoleListV1Alpha1Props | undefined, -): Record | undefined; -/** - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.Role - */ -export interface KubeRoleV1Alpha1Props { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.Role#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Rules holds all the PolicyRules for this Role - * - * @schema io.k8s.api.rbac.v1alpha1.Role#rules - */ - readonly rules?: PolicyRuleV1Alpha1[]; -} -/** - * Converts an object of type 'KubeRoleV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeRoleV1Alpha1Props( - obj: KubeRoleV1Alpha1Props | undefined, -): Record | undefined; -/** - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBinding - */ -export interface KubeRoleBindingV1Alpha1Props { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBinding#metadata - */ - readonly metadata?: ObjectMeta; - /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBinding#roleRef - */ - readonly roleRef: RoleRefV1Alpha1; - /** - * Subjects holds references to the objects the role applies to. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBinding#subjects - */ - readonly subjects?: SubjectV1Alpha1[]; -} -/** - * Converts an object of type 'KubeRoleBindingV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeRoleBindingV1Alpha1Props( - obj: KubeRoleBindingV1Alpha1Props | undefined, -): Record | undefined; -/** - * RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBindingList - */ -export interface KubeRoleBindingListV1Alpha1Props { - /** - * Items is a list of RoleBindings - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBindingList#items - */ - readonly items: KubeRoleBindingV1Alpha1Props[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleBindingList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRoleBindingListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeRoleBindingListV1Alpha1Props( - obj: KubeRoleBindingListV1Alpha1Props | undefined, -): Record | undefined; -/** - * RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleList - */ -export interface KubeRoleListV1Alpha1Props { - /** - * Items is a list of Roles - * - * @schema io.k8s.api.rbac.v1alpha1.RoleList#items - */ - readonly items: KubeRoleV1Alpha1Props[]; - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1alpha1.RoleList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeRoleListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeRoleListV1Alpha1Props( - obj: KubeRoleListV1Alpha1Props | undefined, -): Record | undefined; -/** - * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass - */ -export interface KubePriorityClassProps { - /** - * description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#description - */ - readonly description?: string; - /** - * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#globalDefault - */ - readonly globalDefault?: boolean; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. - * - * @default PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. - * @schema io.k8s.api.scheduling.v1.PriorityClass#preemptionPolicy - */ - readonly preemptionPolicy?: string; - /** - * The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#value - */ - readonly value: number; -} -/** - * Converts an object of type 'KubePriorityClassProps' to JSON representation. - */ -export declare function toJson_KubePriorityClassProps( - obj: KubePriorityClassProps | undefined, -): Record | undefined; -/** - * PriorityClassList is a collection of priority classes. - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList - */ -export interface KubePriorityClassListProps { - /** - * items is the list of PriorityClasses - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList#items - */ - readonly items: KubePriorityClassProps[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePriorityClassListProps' to JSON representation. - */ -export declare function toJson_KubePriorityClassListProps( - obj: KubePriorityClassListProps | undefined, -): Record | undefined; -/** - * DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass - */ -export interface KubePriorityClassV1Alpha1Props { - /** - * description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass#description - */ - readonly description?: string; - /** - * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass#globalDefault - */ - readonly globalDefault?: boolean; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. - * - * @default PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass#preemptionPolicy - */ - readonly preemptionPolicy?: string; - /** - * The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClass#value - */ - readonly value: number; -} -/** - * Converts an object of type 'KubePriorityClassV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubePriorityClassV1Alpha1Props( - obj: KubePriorityClassV1Alpha1Props | undefined, -): Record | undefined; -/** - * PriorityClassList is a collection of priority classes. - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClassList - */ -export interface KubePriorityClassListV1Alpha1Props { - /** - * items is the list of PriorityClasses - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClassList#items - */ - readonly items: KubePriorityClassV1Alpha1Props[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.scheduling.v1alpha1.PriorityClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubePriorityClassListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubePriorityClassListV1Alpha1Props( - obj: KubePriorityClassListV1Alpha1Props | undefined, -): Record | undefined; -/** - * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.CSIDriver - */ -export interface KubeCsiDriverProps { - /** - * Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSIDriver#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the CSI Driver. - * - * @schema io.k8s.api.storage.v1.CSIDriver#spec - */ - readonly spec: CsiDriverSpec; -} -/** - * Converts an object of type 'KubeCsiDriverProps' to JSON representation. - */ -export declare function toJson_KubeCsiDriverProps( - obj: KubeCsiDriverProps | undefined, -): Record | undefined; -/** - * CSIDriverList is a collection of CSIDriver objects. - * - * @schema io.k8s.api.storage.v1.CSIDriverList - */ -export interface KubeCsiDriverListProps { - /** - * items is the list of CSIDriver - * - * @schema io.k8s.api.storage.v1.CSIDriverList#items - */ - readonly items: KubeCsiDriverProps[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSIDriverList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCsiDriverListProps' to JSON representation. - */ -export declare function toJson_KubeCsiDriverListProps( - obj: KubeCsiDriverListProps | undefined, -): Record | undefined; -/** - * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. - * - * @schema io.k8s.api.storage.v1.CSINode - */ -export interface KubeCsiNodeProps { - /** - * metadata.name must be the Kubernetes node name. - * - * @schema io.k8s.api.storage.v1.CSINode#metadata - */ - readonly metadata?: ObjectMeta; - /** - * spec is the specification of CSINode - * - * @schema io.k8s.api.storage.v1.CSINode#spec - */ - readonly spec: CsiNodeSpec; -} -/** - * Converts an object of type 'KubeCsiNodeProps' to JSON representation. - */ -export declare function toJson_KubeCsiNodeProps( - obj: KubeCsiNodeProps | undefined, -): Record | undefined; -/** - * CSINodeList is a collection of CSINode objects. - * - * @schema io.k8s.api.storage.v1.CSINodeList - */ -export interface KubeCsiNodeListProps { - /** - * items is the list of CSINode - * - * @schema io.k8s.api.storage.v1.CSINodeList#items - */ - readonly items: KubeCsiNodeProps[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSINodeList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCsiNodeListProps' to JSON representation. - */ -export declare function toJson_KubeCsiNodeListProps( - obj: KubeCsiNodeListProps | undefined, -): Record | undefined; -/** - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - * - * StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * - * @schema io.k8s.api.storage.v1.StorageClass - */ -export interface KubeStorageClassProps { - /** - * AllowVolumeExpansion shows whether the storage class allow volume expand - * - * @schema io.k8s.api.storage.v1.StorageClass#allowVolumeExpansion - */ - readonly allowVolumeExpansion?: boolean; - /** - * Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * - * @schema io.k8s.api.storage.v1.StorageClass#allowedTopologies - */ - readonly allowedTopologies?: TopologySelectorTerm[]; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.StorageClass#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * - * @schema io.k8s.api.storage.v1.StorageClass#mountOptions - */ - readonly mountOptions?: string[]; - /** - * Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * - * @schema io.k8s.api.storage.v1.StorageClass#parameters - */ - readonly parameters?: { - [key: string]: string; - }; - /** - * Provisioner indicates the type of the provisioner. - * - * @schema io.k8s.api.storage.v1.StorageClass#provisioner - */ - readonly provisioner: string; - /** - * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - * - * @default Delete. - * @schema io.k8s.api.storage.v1.StorageClass#reclaimPolicy - */ - readonly reclaimPolicy?: string; - /** - * VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - * - * @schema io.k8s.api.storage.v1.StorageClass#volumeBindingMode - */ - readonly volumeBindingMode?: string; -} -/** - * Converts an object of type 'KubeStorageClassProps' to JSON representation. - */ -export declare function toJson_KubeStorageClassProps( - obj: KubeStorageClassProps | undefined, -): Record | undefined; -/** - * StorageClassList is a collection of storage classes. - * - * @schema io.k8s.api.storage.v1.StorageClassList - */ -export interface KubeStorageClassListProps { - /** - * Items is the list of StorageClasses - * - * @schema io.k8s.api.storage.v1.StorageClassList#items - */ - readonly items: KubeStorageClassProps[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.StorageClassList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeStorageClassListProps' to JSON representation. - */ -export declare function toJson_KubeStorageClassListProps( - obj: KubeStorageClassListProps | undefined, -): Record | undefined; -/** - * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - * - * VolumeAttachment objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.VolumeAttachment - */ -export interface KubeVolumeAttachmentProps { - /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.VolumeAttachment#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * - * @schema io.k8s.api.storage.v1.VolumeAttachment#spec - */ - readonly spec: VolumeAttachmentSpec; -} -/** - * Converts an object of type 'KubeVolumeAttachmentProps' to JSON representation. - */ -export declare function toJson_KubeVolumeAttachmentProps( - obj: KubeVolumeAttachmentProps | undefined, -): Record | undefined; -/** - * VolumeAttachmentList is a collection of VolumeAttachment objects. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList - */ -export interface KubeVolumeAttachmentListProps { - /** - * Items is the list of VolumeAttachments - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList#items - */ - readonly items: KubeVolumeAttachmentProps[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeVolumeAttachmentListProps' to JSON representation. - */ -export declare function toJson_KubeVolumeAttachmentListProps( - obj: KubeVolumeAttachmentListProps | undefined, -): Record | undefined; -/** - * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. - * - * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - * - * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero - * - * The producer of these objects can decide which approach is more suitable. - * - * They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity - */ -export interface KubeCsiStorageCapacityV1Alpha1Props { - /** - * Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. - * - * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity#capacity - */ - readonly capacity?: Quantity; - /** - * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. - * - * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity#maximumVolumeSize - */ - readonly maximumVolumeSize?: Quantity; - /** - * Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. - * - * Objects are namespaced. - * - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity#metadata - */ - readonly metadata?: ObjectMeta; - /** - * NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity#nodeTopology - */ - readonly nodeTopology?: LabelSelector; - /** - * The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacity#storageClassName - */ - readonly storageClassName: string; -} -/** - * Converts an object of type 'KubeCsiStorageCapacityV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeCsiStorageCapacityV1Alpha1Props( - obj: KubeCsiStorageCapacityV1Alpha1Props | undefined, -): Record | undefined; -/** - * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacityList - */ -export interface KubeCsiStorageCapacityListV1Alpha1Props { - /** - * Items is the list of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacityList#items - */ - readonly items: KubeCsiStorageCapacityV1Alpha1Props[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1alpha1.CSIStorageCapacityList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCsiStorageCapacityListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeCsiStorageCapacityListV1Alpha1Props( - obj: KubeCsiStorageCapacityListV1Alpha1Props | undefined, -): Record | undefined; -/** - * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - * - * VolumeAttachment objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachment - */ -export interface KubeVolumeAttachmentV1Alpha1Props { - /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachment#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachment#spec - */ - readonly spec: VolumeAttachmentSpecV1Alpha1; -} -/** - * Converts an object of type 'KubeVolumeAttachmentV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeVolumeAttachmentV1Alpha1Props( - obj: KubeVolumeAttachmentV1Alpha1Props | undefined, -): Record | undefined; -/** - * VolumeAttachmentList is a collection of VolumeAttachment objects. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentList - */ -export interface KubeVolumeAttachmentListV1Alpha1Props { - /** - * Items is the list of VolumeAttachments - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentList#items - */ - readonly items: KubeVolumeAttachmentV1Alpha1Props[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeVolumeAttachmentListV1Alpha1Props' to JSON representation. - */ -export declare function toJson_KubeVolumeAttachmentListV1Alpha1Props( - obj: KubeVolumeAttachmentListV1Alpha1Props | undefined, -): Record | undefined; -/** - * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. - * - * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - * - * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero - * - * The producer of these objects can decide which approach is more suitable. - * - * They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity - */ -export interface KubeCsiStorageCapacityV1Beta1Props { - /** - * Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. - * - * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable and treated like zero capacity. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#capacity - */ - readonly capacity?: Quantity; - /** - * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. - * - * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#maximumVolumeSize - */ - readonly maximumVolumeSize?: Quantity; - /** - * Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. - * - * Objects are namespaced. - * - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#metadata - */ - readonly metadata?: ObjectMeta; - /** - * NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#nodeTopology - */ - readonly nodeTopology?: LabelSelector; - /** - * The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#storageClassName - */ - readonly storageClassName: string; -} -/** - * Converts an object of type 'KubeCsiStorageCapacityV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeCsiStorageCapacityV1Beta1Props( - obj: KubeCsiStorageCapacityV1Beta1Props | undefined, -): Record | undefined; -/** - * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList - */ -export interface KubeCsiStorageCapacityListV1Beta1Props { - /** - * Items is the list of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList#items - */ - readonly items: KubeCsiStorageCapacityV1Beta1Props[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCsiStorageCapacityListV1Beta1Props' to JSON representation. - */ -export declare function toJson_KubeCsiStorageCapacityListV1Beta1Props( - obj: KubeCsiStorageCapacityListV1Beta1Props | undefined, -): Record | undefined; -/** - * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition - */ -export interface KubeCustomResourceDefinitionProps { - /** - * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#metadata - */ - readonly metadata?: ObjectMeta; - /** - * spec describes how the user wants the resources to appear - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#spec - */ - readonly spec: CustomResourceDefinitionSpec; -} -/** - * Converts an object of type 'KubeCustomResourceDefinitionProps' to JSON representation. - */ -export declare function toJson_KubeCustomResourceDefinitionProps( - obj: KubeCustomResourceDefinitionProps | undefined, -): Record | undefined; -/** - * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList - */ -export interface KubeCustomResourceDefinitionListProps { - /** - * items list individual CustomResourceDefinition objects - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#items - */ - readonly items: KubeCustomResourceDefinitionProps[]; - /** - * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeCustomResourceDefinitionListProps' to JSON representation. - */ -export declare function toJson_KubeCustomResourceDefinitionListProps( - obj: KubeCustomResourceDefinitionListProps | undefined, -): Record | undefined; -/** - * Status is a return value for calls that don't return other objects. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status - */ -export interface KubeStatusProps { - /** - * Suggested HTTP return code for this status, 0 if not set. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#code - */ - readonly code?: number; - /** - * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#details - */ - readonly details?: StatusDetails; - /** - * A human-readable description of the status of this operation. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#message - */ - readonly message?: string; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#metadata - */ - readonly metadata?: ListMeta; - /** - * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#reason - */ - readonly reason?: string; -} -/** - * Converts an object of type 'KubeStatusProps' to JSON representation. - */ -export declare function toJson_KubeStatusProps( - obj: KubeStatusProps | undefined, -): Record | undefined; -/** - * APIService represents a server for a particular GroupVersion. Name must be "version.group". - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService - */ -export interface KubeApiServiceProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Spec contains information for locating and communicating with a server - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#spec - */ - readonly spec?: ApiServiceSpec; -} -/** - * Converts an object of type 'KubeApiServiceProps' to JSON representation. - */ -export declare function toJson_KubeApiServiceProps( - obj: KubeApiServiceProps | undefined, -): Record | undefined; -/** - * APIServiceList is a list of APIService objects. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList - */ -export interface KubeApiServiceListProps { - /** - * Items is the list of APIService - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#items - */ - readonly items: KubeApiServiceProps[]; - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#metadata - */ - readonly metadata?: ListMeta; -} -/** - * Converts an object of type 'KubeApiServiceListProps' to JSON representation. - */ -export declare function toJson_KubeApiServiceListProps( - obj: KubeApiServiceListProps | undefined, -): Record | undefined; -/** - * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta - */ -export interface ObjectMeta { - /** - * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#annotations - */ - readonly annotations?: { - [key: string]: string; - }; - /** - * The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#clusterName - */ - readonly clusterName?: string; - /** - * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - * - * Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#creationTimestamp - */ - readonly creationTimestamp?: Date; - /** - * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionGracePeriodSeconds - */ - readonly deletionGracePeriodSeconds?: number; - /** - * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - * - * Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionTimestamp - */ - readonly deletionTimestamp?: Date; - /** - * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#finalizers - */ - readonly finalizers?: string[]; - /** - * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - * - * If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - * - * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generateName - */ - readonly generateName?: string; - /** - * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generation - */ - readonly generation?: number; - /** - * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#labels - */ - readonly labels?: { - [key: string]: string; - }; - /** - * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#managedFields - */ - readonly managedFields?: ManagedFieldsEntry[]; - /** - * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#name - */ - readonly name?: string; - /** - * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - * - * Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#namespace - */ - readonly namespace?: string; - /** - * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#ownerReferences - */ - readonly ownerReferences?: OwnerReference[]; - /** - * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - * - * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#resourceVersion - */ - readonly resourceVersion?: string; - /** - * SelfLink is a URL representing this object. Populated by the system. Read-only. - * - * DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#selfLink - */ - readonly selfLink?: string; - /** - * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - * - * Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#uid - */ - readonly uid?: string; -} -/** - * Converts an object of type 'ObjectMeta' to JSON representation. - */ -export declare function toJson_ObjectMeta( - obj: ObjectMeta | undefined, -): Record | undefined; -/** - * MutatingWebhook describes an admission webhook and the resources and operations it applies to. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook - */ -export interface MutatingWebhook { - /** - * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#admissionReviewVersions - */ - readonly admissionReviewVersions: string[]; - /** - * ClientConfig defines how to communicate with the hook. Required - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#clientConfig - */ - readonly clientConfig: WebhookClientConfig; - /** - * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * - * @default Fail. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#failurePolicy - */ - readonly failurePolicy?: string; - /** - * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - * - * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - * - * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - * - * Defaults to "Equivalent" - * - * @default Equivalent" - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#matchPolicy - */ - readonly matchPolicy?: string; - /** - * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#name - */ - readonly name: string; - /** - * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - * - * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "runlevel", - * "operator": "NotIn", - * "values": [ - * "0", - * "1" - * ] - * } - * ] - * } - * - * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "environment", - * "operator": "In", - * "values": [ - * "prod", - * "staging" - * ] - * } - * ] - * } - * - * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - * - * Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - /** - * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#objectSelector - */ - readonly objectSelector?: LabelSelector; - /** - * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - * - * Never: the webhook will not be called more than once in a single admission evaluation. - * - * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - * - * Defaults to "Never". - * - * @default Never". - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#reinvocationPolicy - */ - readonly reinvocationPolicy?: string; - /** - * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#rules - */ - readonly rules?: RuleWithOperations[]; - /** - * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#sideEffects - */ - readonly sideEffects: string; - /** - * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. - * - * @default 10 seconds. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#timeoutSeconds - */ - readonly timeoutSeconds?: number; -} -/** - * Converts an object of type 'MutatingWebhook' to JSON representation. - */ -export declare function toJson_MutatingWebhook( - obj: MutatingWebhook | undefined, -): Record | undefined; -/** - * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta - */ -export interface ListMeta { - /** - * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#continue - */ - readonly continue?: string; - /** - * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#remainingItemCount - */ - readonly remainingItemCount?: number; - /** - * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#resourceVersion - */ - readonly resourceVersion?: string; - /** - * selfLink is a URL representing this object. Populated by the system. Read-only. - * - * DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#selfLink - */ - readonly selfLink?: string; -} -/** - * Converts an object of type 'ListMeta' to JSON representation. - */ -export declare function toJson_ListMeta( - obj: ListMeta | undefined, -): Record | undefined; -/** - * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook - */ -export interface ValidatingWebhook { - /** - * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#admissionReviewVersions - */ - readonly admissionReviewVersions: string[]; - /** - * ClientConfig defines how to communicate with the hook. Required - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#clientConfig - */ - readonly clientConfig: WebhookClientConfig; - /** - * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * - * @default Fail. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#failurePolicy - */ - readonly failurePolicy?: string; - /** - * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - * - * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - * - * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - * - * Defaults to "Equivalent" - * - * @default Equivalent" - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#matchPolicy - */ - readonly matchPolicy?: string; - /** - * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#name - */ - readonly name: string; - /** - * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - * - * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "runlevel", - * "operator": "NotIn", - * "values": [ - * "0", - * "1" - * ] - * } - * ] - * } - * - * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "environment", - * "operator": "In", - * "values": [ - * "prod", - * "staging" - * ] - * } - * ] - * } - * - * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - * - * Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - /** - * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#objectSelector - */ - readonly objectSelector?: LabelSelector; - /** - * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#rules - */ - readonly rules?: RuleWithOperations[]; - /** - * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#sideEffects - */ - readonly sideEffects: string; - /** - * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. - * - * @default 10 seconds. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#timeoutSeconds - */ - readonly timeoutSeconds?: number; -} -/** - * Converts an object of type 'ValidatingWebhook' to JSON representation. - */ -export declare function toJson_ValidatingWebhook( - obj: ValidatingWebhook | undefined, -): Record | undefined; -/** - * DaemonSetSpec is the specification of a daemon set. - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec - */ -export interface DaemonSetSpec { - /** - * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * - * @default 0 (pod will be considered available as soon as it is ready). - * @schema io.k8s.api.apps.v1.DaemonSetSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - /** - * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * - * @default 10. - * @schema io.k8s.api.apps.v1.DaemonSetSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - /** - * A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec#selector - */ - readonly selector: LabelSelector; - /** - * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec#template - */ - readonly template: PodTemplateSpec; - /** - * An update strategy to replace existing DaemonSet pods with new pods. - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec#updateStrategy - */ - readonly updateStrategy?: DaemonSetUpdateStrategy; -} -/** - * Converts an object of type 'DaemonSetSpec' to JSON representation. - */ -export declare function toJson_DaemonSetSpec( - obj: DaemonSetSpec | undefined, -): Record | undefined; -/** - * DeploymentSpec is the specification of the desired behavior of the Deployment. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec - */ -export interface DeploymentSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.apps.v1.DeploymentSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - /** - * Indicates that the deployment is paused. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#paused - */ - readonly paused?: boolean; - /** - * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * - * @default 600s. - * @schema io.k8s.api.apps.v1.DeploymentSpec#progressDeadlineSeconds - */ - readonly progressDeadlineSeconds?: number; - /** - * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * - * @default 1. - * @schema io.k8s.api.apps.v1.DeploymentSpec#replicas - */ - readonly replicas?: number; - /** - * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * - * @default 10. - * @schema io.k8s.api.apps.v1.DeploymentSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#selector - */ - readonly selector: LabelSelector; - /** - * The deployment strategy to use to replace existing pods with new ones. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#strategy - */ - readonly strategy?: DeploymentStrategy; - /** - * Template describes the pods that will be created. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#template - */ - readonly template: PodTemplateSpec; -} -/** - * Converts an object of type 'DeploymentSpec' to JSON representation. - */ -export declare function toJson_DeploymentSpec( - obj: DeploymentSpec | undefined, -): Record | undefined; -/** - * ReplicaSetSpec is the specification of a ReplicaSet. - * - * @schema io.k8s.api.apps.v1.ReplicaSetSpec - */ -export interface ReplicaSetSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * - * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#replicas - */ - readonly replicas?: number; - /** - * Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#selector - */ - readonly selector: LabelSelector; - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#template - */ - readonly template?: PodTemplateSpec; -} -/** - * Converts an object of type 'ReplicaSetSpec' to JSON representation. - */ -export declare function toJson_ReplicaSetSpec( - obj: ReplicaSetSpec | undefined, -): Record | undefined; -/** - * A StatefulSetSpec is the specification of a StatefulSet. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec - */ -export interface StatefulSetSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. - * - * @default 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. - * @schema io.k8s.api.apps.v1.StatefulSetSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - /** - * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#podManagementPolicy - */ - readonly podManagementPolicy?: string; - /** - * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#replicas - */ - readonly replicas?: number; - /** - * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - /** - * selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#selector - */ - readonly selector: LabelSelector; - /** - * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#serviceName - */ - readonly serviceName: string; - /** - * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#template - */ - readonly template: PodTemplateSpec; - /** - * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#updateStrategy - */ - readonly updateStrategy?: StatefulSetUpdateStrategy; - /** - * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#volumeClaimTemplates - */ - readonly volumeClaimTemplates?: KubePersistentVolumeClaimProps[]; -} -/** - * Converts an object of type 'StatefulSetSpec' to JSON representation. - */ -export declare function toJson_StatefulSetSpec( - obj: StatefulSetSpec | undefined, -): Record | undefined; -/** - * TokenRequestSpec contains client provided parameters of a token request. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec - */ -export interface TokenRequestSpec { - /** - * Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec#audiences - */ - readonly audiences: string[]; - /** - * BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec#boundObjectRef - */ - readonly boundObjectRef?: BoundObjectReference; - /** - * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec#expirationSeconds - */ - readonly expirationSeconds?: number; -} -/** - * Converts an object of type 'TokenRequestSpec' to JSON representation. - */ -export declare function toJson_TokenRequestSpec( - obj: TokenRequestSpec | undefined, -): Record | undefined; -/** - * TokenReviewSpec is a description of the token authentication request. - * - * @schema io.k8s.api.authentication.v1.TokenReviewSpec - */ -export interface TokenReviewSpec { - /** - * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. - * - * @schema io.k8s.api.authentication.v1.TokenReviewSpec#audiences - */ - readonly audiences?: string[]; - /** - * Token is the opaque bearer token. - * - * @schema io.k8s.api.authentication.v1.TokenReviewSpec#token - */ - readonly token?: string; -} -/** - * Converts an object of type 'TokenReviewSpec' to JSON representation. - */ -export declare function toJson_TokenReviewSpec( - obj: TokenReviewSpec | undefined, -): Record | undefined; -/** - * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec - */ -export interface SubjectAccessReviewSpec { - /** - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#extra - */ - readonly extra?: { - [key: string]: string[]; - }; - /** - * Groups is the groups you're testing for. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#groups - */ - readonly groups?: string[]; - /** - * NonResourceAttributes describes information for a non-resource access request - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#nonResourceAttributes - */ - readonly nonResourceAttributes?: NonResourceAttributes; - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#resourceAttributes - */ - readonly resourceAttributes?: ResourceAttributes; - /** - * UID information about the requesting user. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#uid - */ - readonly uid?: string; - /** - * User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#user - */ - readonly user?: string; -} -/** - * Converts an object of type 'SubjectAccessReviewSpec' to JSON representation. - */ -export declare function toJson_SubjectAccessReviewSpec( - obj: SubjectAccessReviewSpec | undefined, -): Record | undefined; -/** - * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec - */ -export interface SelfSubjectAccessReviewSpec { - /** - * NonResourceAttributes describes information for a non-resource access request - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#nonResourceAttributes - */ - readonly nonResourceAttributes?: NonResourceAttributes; - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#resourceAttributes - */ - readonly resourceAttributes?: ResourceAttributes; -} -/** - * Converts an object of type 'SelfSubjectAccessReviewSpec' to JSON representation. - */ -export declare function toJson_SelfSubjectAccessReviewSpec( - obj: SelfSubjectAccessReviewSpec | undefined, -): Record | undefined; -/** - * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec - */ -export interface SelfSubjectRulesReviewSpec { - /** - * Namespace to evaluate rules for. Required. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec#namespace - */ - readonly namespace?: string; -} -/** - * Converts an object of type 'SelfSubjectRulesReviewSpec' to JSON representation. - */ -export declare function toJson_SelfSubjectRulesReviewSpec( - obj: SelfSubjectRulesReviewSpec | undefined, -): Record | undefined; -/** - * specification of a horizontal pod autoscaler. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec - */ -export interface HorizontalPodAutoscalerSpec { - /** - * upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#maxReplicas - */ - readonly maxReplicas: number; - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#minReplicas - */ - readonly minReplicas?: number; - /** - * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#scaleTargetRef - */ - readonly scaleTargetRef: CrossVersionObjectReference; - /** - * target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#targetCPUUtilizationPercentage - */ - readonly targetCpuUtilizationPercentage?: number; -} -/** - * Converts an object of type 'HorizontalPodAutoscalerSpec' to JSON representation. - */ -export declare function toJson_HorizontalPodAutoscalerSpec( - obj: HorizontalPodAutoscalerSpec | undefined, -): Record | undefined; -/** - * ScaleSpec describes the attributes of a scale subresource. - * - * @schema io.k8s.api.autoscaling.v1.ScaleSpec - */ -export interface ScaleSpec { - /** - * desired number of instances for the scaled object. - * - * @schema io.k8s.api.autoscaling.v1.ScaleSpec#replicas - */ - readonly replicas?: number; -} -/** - * Converts an object of type 'ScaleSpec' to JSON representation. - */ -export declare function toJson_ScaleSpec( - obj: ScaleSpec | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec - */ -export interface HorizontalPodAutoscalerSpecV2Beta1 { - /** - * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec#maxReplicas - */ - readonly maxReplicas: number; - /** - * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec#metrics - */ - readonly metrics?: MetricSpecV2Beta1[]; - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec#minReplicas - */ - readonly minReplicas?: number; - /** - * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - * - * @schema io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec#scaleTargetRef - */ - readonly scaleTargetRef: CrossVersionObjectReferenceV2Beta1; -} -/** - * Converts an object of type 'HorizontalPodAutoscalerSpecV2Beta1' to JSON representation. - */ -export declare function toJson_HorizontalPodAutoscalerSpecV2Beta1( - obj: HorizontalPodAutoscalerSpecV2Beta1 | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec - */ -export interface HorizontalPodAutoscalerSpecV2Beta2 { - /** - * behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#behavior - */ - readonly behavior?: HorizontalPodAutoscalerBehaviorV2Beta2; - /** - * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#maxReplicas - */ - readonly maxReplicas: number; - /** - * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#metrics - */ - readonly metrics?: MetricSpecV2Beta2[]; - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#minReplicas - */ - readonly minReplicas?: number; - /** - * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#scaleTargetRef - */ - readonly scaleTargetRef: CrossVersionObjectReferenceV2Beta2; -} -/** - * Converts an object of type 'HorizontalPodAutoscalerSpecV2Beta2' to JSON representation. - */ -export declare function toJson_HorizontalPodAutoscalerSpecV2Beta2( - obj: HorizontalPodAutoscalerSpecV2Beta2 | undefined, -): Record | undefined; -/** - * CronJobSpec describes how the job execution will look like and when it will actually run. - * - * @schema io.k8s.api.batch.v1.CronJobSpec - */ -export interface CronJobSpec { - /** - * Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * - * @schema io.k8s.api.batch.v1.CronJobSpec#concurrencyPolicy - */ - readonly concurrencyPolicy?: string; - /** - * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. - * - * @default 1. - * @schema io.k8s.api.batch.v1.CronJobSpec#failedJobsHistoryLimit - */ - readonly failedJobsHistoryLimit?: number; - /** - * Specifies the job that will be created when executing a CronJob. - * - * @schema io.k8s.api.batch.v1.CronJobSpec#jobTemplate - */ - readonly jobTemplate: JobTemplateSpec; - /** - * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * - * @schema io.k8s.api.batch.v1.CronJobSpec#schedule - */ - readonly schedule: string; - /** - * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * - * @schema io.k8s.api.batch.v1.CronJobSpec#startingDeadlineSeconds - */ - readonly startingDeadlineSeconds?: number; - /** - * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. - * - * @default 3. - * @schema io.k8s.api.batch.v1.CronJobSpec#successfulJobsHistoryLimit - */ - readonly successfulJobsHistoryLimit?: number; - /** - * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - * - * @default false. - * @schema io.k8s.api.batch.v1.CronJobSpec#suspend - */ - readonly suspend?: boolean; -} -/** - * Converts an object of type 'CronJobSpec' to JSON representation. - */ -export declare function toJson_CronJobSpec( - obj: CronJobSpec | undefined, -): Record | undefined; -/** - * JobSpec describes how the job execution will look like. - * - * @schema io.k8s.api.batch.v1.JobSpec - */ -export interface JobSpec { - /** - * Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. - * - * @schema io.k8s.api.batch.v1.JobSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - /** - * Specifies the number of retries before marking this job failed. Defaults to 6 - * - * @default 6 - * @schema io.k8s.api.batch.v1.JobSpec#backoffLimit - */ - readonly backoffLimit?: number; - /** - * CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. - * - * `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. - * - * `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. - * - * This field is beta-level. More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, the controller skips updates for the Job. - * - * @schema io.k8s.api.batch.v1.JobSpec#completionMode - */ - readonly completionMode?: string; - /** - * Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * - * @schema io.k8s.api.batch.v1.JobSpec#completions - */ - readonly completions?: number; - /** - * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector - * - * @schema io.k8s.api.batch.v1.JobSpec#manualSelector - */ - readonly manualSelector?: boolean; - /** - * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * - * @schema io.k8s.api.batch.v1.JobSpec#parallelism - */ - readonly parallelism?: number; - /** - * A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.batch.v1.JobSpec#selector - */ - readonly selector?: LabelSelector; - /** - * Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - * - * This field is beta-level, gated by SuspendJob feature flag (enabled by default). - * - * @default false. - * @schema io.k8s.api.batch.v1.JobSpec#suspend - */ - readonly suspend?: boolean; - /** - * Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * - * @schema io.k8s.api.batch.v1.JobSpec#template - */ - readonly template: PodTemplateSpec; - /** - * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - * - * @schema io.k8s.api.batch.v1.JobSpec#ttlSecondsAfterFinished - */ - readonly ttlSecondsAfterFinished?: number; -} -/** - * Converts an object of type 'JobSpec' to JSON representation. - */ -export declare function toJson_JobSpec( - obj: JobSpec | undefined, -): Record | undefined; -/** - * CronJobSpec describes how the job execution will look like and when it will actually run. - * - * @schema io.k8s.api.batch.v1beta1.CronJobSpec - */ -export interface CronJobSpecV1Beta1 { - /** - * Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#concurrencyPolicy - */ - readonly concurrencyPolicy?: string; - /** - * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * - * @default 1. - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#failedJobsHistoryLimit - */ - readonly failedJobsHistoryLimit?: number; - /** - * Specifies the job that will be created when executing a CronJob. - * - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#jobTemplate - */ - readonly jobTemplate: JobTemplateSpecV1Beta1; - /** - * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#schedule - */ - readonly schedule: string; - /** - * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#startingDeadlineSeconds - */ - readonly startingDeadlineSeconds?: number; - /** - * The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. - * - * @default 3. - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#successfulJobsHistoryLimit - */ - readonly successfulJobsHistoryLimit?: number; - /** - * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - * - * @default false. - * @schema io.k8s.api.batch.v1beta1.CronJobSpec#suspend - */ - readonly suspend?: boolean; -} -/** - * Converts an object of type 'CronJobSpecV1Beta1' to JSON representation. - */ -export declare function toJson_CronJobSpecV1Beta1( - obj: CronJobSpecV1Beta1 | undefined, -): Record | undefined; -/** - * CertificateSigningRequestSpec contains the certificate request. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec - */ -export interface CertificateSigningRequestSpec { - /** - * expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. - * - * The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. - * - * Certificate signers may not honor this field for various reasons: - * - * 1. Old signer that is unaware of the field (such as the in-tree - * implementations prior to v1.22) - * 2. Signer whose configured maximum is shorter than the requested duration - * 3. Signer whose configured minimum is longer than the requested duration - * - * The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. - * - * As of v1.22, this field is beta and is controlled via the CSRDuration feature gate. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#expirationSeconds - */ - readonly expirationSeconds?: number; - /** - * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#extra - */ - readonly extra?: { - [key: string]: string[]; - }; - /** - * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#groups - */ - readonly groups?: string[]; - /** - * request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#request - */ - readonly request: string; - /** - * signerName indicates the requested signer, and is a qualified name. - * - * List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. - * - * Well-known Kubernetes signers are: - * 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. - * Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. - * 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. - * Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. - * 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. - * Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. - * - * More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers - * - * Custom signerNames can also be specified. The signer defines: - * 1. Trust distribution: how trust (CA bundles) are distributed. - * 2. Permitted subjects: and behavior when a disallowed subject is requested. - * 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. - * 4. Required, permitted, or forbidden key usages / extended key usages. - * 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. - * 6. Whether or not requests for CA certificates are allowed. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#signerName - */ - readonly signerName: string; - /** - * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#uid - */ - readonly uid?: string; - /** - * usages specifies a set of key usages requested in the issued certificate. - * - * Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". - * - * Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". - * - * Valid values are: - * "signing", "digital signature", "content commitment", - * "key encipherment", "key agreement", "data encipherment", - * "cert sign", "crl sign", "encipher only", "decipher only", "any", - * "server auth", "client auth", - * "code signing", "email protection", "s/mime", - * "ipsec end system", "ipsec tunnel", "ipsec user", - * "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#usages - */ - readonly usages?: string[]; - /** - * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#username - */ - readonly username?: string; -} -/** - * Converts an object of type 'CertificateSigningRequestSpec' to JSON representation. - */ -export declare function toJson_CertificateSigningRequestSpec( - obj: CertificateSigningRequestSpec | undefined, -): Record | undefined; -/** - * LeaseSpec is a specification of a Lease. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec - */ -export interface LeaseSpec { - /** - * acquireTime is a time when the current lease was acquired. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#acquireTime - */ - readonly acquireTime?: Date; - /** - * holderIdentity contains the identity of the holder of a current lease. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#holderIdentity - */ - readonly holderIdentity?: string; - /** - * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseDurationSeconds - */ - readonly leaseDurationSeconds?: number; - /** - * leaseTransitions is the number of transitions of a lease between holders. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseTransitions - */ - readonly leaseTransitions?: number; - /** - * renewTime is a time when the current holder of a lease has last updated the lease. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#renewTime - */ - readonly renewTime?: Date; -} -/** - * Converts an object of type 'LeaseSpec' to JSON representation. - */ -export declare function toJson_LeaseSpec( - obj: LeaseSpec | undefined, -): Record | undefined; -/** - * ObjectReference contains enough information to let you inspect or modify the referred object. - * - * @schema io.k8s.api.core.v1.ObjectReference - */ -export interface ObjectReference { - /** - * API version of the referent. - * - * @schema io.k8s.api.core.v1.ObjectReference#apiVersion - */ - readonly apiVersion?: string; - /** - * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * - * @schema io.k8s.api.core.v1.ObjectReference#fieldPath - */ - readonly fieldPath?: string; - /** - * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ObjectReference#kind - */ - readonly kind?: string; - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ObjectReference#name - */ - readonly name?: string; - /** - * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * - * @schema io.k8s.api.core.v1.ObjectReference#namespace - */ - readonly namespace?: string; - /** - * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * - * @schema io.k8s.api.core.v1.ObjectReference#resourceVersion - */ - readonly resourceVersion?: string; - /** - * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - * - * @schema io.k8s.api.core.v1.ObjectReference#uid - */ - readonly uid?: string; -} -/** - * Converts an object of type 'ObjectReference' to JSON representation. - */ -export declare function toJson_ObjectReference( - obj: ObjectReference | undefined, -): Record | undefined; -/** - * Information about the condition of a component. - * - * @schema io.k8s.api.core.v1.ComponentCondition - */ -export interface ComponentCondition { - /** - * Condition error code for a component. For example, a health check error code. - * - * @schema io.k8s.api.core.v1.ComponentCondition#error - */ - readonly error?: string; - /** - * Message about the condition for a component. For example, information about a health check. - * - * @schema io.k8s.api.core.v1.ComponentCondition#message - */ - readonly message?: string; - /** - * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - * - * @schema io.k8s.api.core.v1.ComponentCondition#status - */ - readonly status: string; - /** - * Type of condition for a component. Valid value: "Healthy" - * - * @schema io.k8s.api.core.v1.ComponentCondition#type - */ - readonly type: string; -} -/** - * Converts an object of type 'ComponentCondition' to JSON representation. - */ -export declare function toJson_ComponentCondition( - obj: ComponentCondition | undefined, -): Record | undefined; -/** - * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: - * { - * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - * } - * The resulting set of endpoints can be viewed as: - * a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], - * b: [ 10.10.1.1:309, 10.10.2.2:309 ] - * - * @schema io.k8s.api.core.v1.EndpointSubset - */ -export interface EndpointSubset { - /** - * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * - * @schema io.k8s.api.core.v1.EndpointSubset#addresses - */ - readonly addresses?: EndpointAddress[]; - /** - * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * - * @schema io.k8s.api.core.v1.EndpointSubset#notReadyAddresses - */ - readonly notReadyAddresses?: EndpointAddress[]; - /** - * Port numbers available on the related IP addresses. - * - * @schema io.k8s.api.core.v1.EndpointSubset#ports - */ - readonly ports?: EndpointPort[]; -} -/** - * Converts an object of type 'EndpointSubset' to JSON representation. - */ -export declare function toJson_EndpointSubset( - obj: EndpointSubset | undefined, -): Record | undefined; -/** - * EventSource contains information for an event. - * - * @schema io.k8s.api.core.v1.EventSource - */ -export interface EventSource { - /** - * Component from which the event is generated. - * - * @schema io.k8s.api.core.v1.EventSource#component - */ - readonly component?: string; - /** - * Node name on which the event is generated. - * - * @schema io.k8s.api.core.v1.EventSource#host - */ - readonly host?: string; -} -/** - * Converts an object of type 'EventSource' to JSON representation. - */ -export declare function toJson_EventSource( - obj: EventSource | undefined, -): Record | undefined; -/** - * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations. - * - * @schema io.k8s.api.events.v1.EventSeries - */ -export interface EventSeries { - /** - * count is the number of occurrences in this series up to the last heartbeat time. - * - * @schema io.k8s.api.events.v1.EventSeries#count - */ - readonly count: number; - /** - * lastObservedTime is the time when last Event from the series was seen before last heartbeat. - * - * @schema io.k8s.api.events.v1.EventSeries#lastObservedTime - */ - readonly lastObservedTime: Date; -} -/** - * Converts an object of type 'EventSeries' to JSON representation. - */ -export declare function toJson_EventSeries( - obj: EventSeries | undefined, -): Record | undefined; -/** - * LimitRangeSpec defines a min/max usage limit for resources that match on kind. - * - * @schema io.k8s.api.core.v1.LimitRangeSpec - */ -export interface LimitRangeSpec { - /** - * Limits is the list of LimitRangeItem objects that are enforced. - * - * @schema io.k8s.api.core.v1.LimitRangeSpec#limits - */ - readonly limits: LimitRangeItem[]; -} -/** - * Converts an object of type 'LimitRangeSpec' to JSON representation. - */ -export declare function toJson_LimitRangeSpec( - obj: LimitRangeSpec | undefined, -): Record | undefined; -/** - * NamespaceSpec describes the attributes on a Namespace. - * - * @schema io.k8s.api.core.v1.NamespaceSpec - */ -export interface NamespaceSpec { - /** - * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - * - * @schema io.k8s.api.core.v1.NamespaceSpec#finalizers - */ - readonly finalizers?: string[]; -} -/** - * Converts an object of type 'NamespaceSpec' to JSON representation. - */ -export declare function toJson_NamespaceSpec( - obj: NamespaceSpec | undefined, -): Record | undefined; -/** - * NodeSpec describes the attributes that a node is created with. - * - * @schema io.k8s.api.core.v1.NodeSpec - */ -export interface NodeSpec { - /** - * Deprecated. If specified, the source of the node's configuration. The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field. This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - * - * @schema io.k8s.api.core.v1.NodeSpec#configSource - */ - readonly configSource?: NodeConfigSource; - /** - * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 - * - * @schema io.k8s.api.core.v1.NodeSpec#externalID - */ - readonly externalId?: string; - /** - * PodCIDR represents the pod IP range assigned to the node. - * - * @schema io.k8s.api.core.v1.NodeSpec#podCIDR - */ - readonly podCidr?: string; - /** - * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. - * - * @schema io.k8s.api.core.v1.NodeSpec#podCIDRs - */ - readonly podCidRs?: string[]; - /** - * ID of the node assigned by the cloud provider in the format: :// - * - * @schema io.k8s.api.core.v1.NodeSpec#providerID - */ - readonly providerId?: string; - /** - * If specified, the node's taints. - * - * @schema io.k8s.api.core.v1.NodeSpec#taints - */ - readonly taints?: Taint[]; - /** - * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - * - * @schema io.k8s.api.core.v1.NodeSpec#unschedulable - */ - readonly unschedulable?: boolean; -} -/** - * Converts an object of type 'NodeSpec' to JSON representation. - */ -export declare function toJson_NodeSpec( - obj: NodeSpec | undefined, -): Record | undefined; -/** - * PersistentVolumeSpec is the specification of a persistent volume. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec - */ -export interface PersistentVolumeSpec { - /** - * AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#accessModes - */ - readonly accessModes?: string[]; - /** - * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#awsElasticBlockStore - */ - readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; - /** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureDisk - */ - readonly azureDisk?: AzureDiskVolumeSource; - /** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureFile - */ - readonly azureFile?: AzureFilePersistentVolumeSource; - /** - * A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#capacity - */ - readonly capacity?: { - [key: string]: Quantity; - }; - /** - * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cephfs - */ - readonly cephfs?: CephFsPersistentVolumeSource; - /** - * Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cinder - */ - readonly cinder?: CinderPersistentVolumeSource; - /** - * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#claimRef - */ - readonly claimRef?: ObjectReference; - /** - * CSI represents storage that is handled by an external CSI driver (Beta feature). - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#csi - */ - readonly csi?: CsiPersistentVolumeSource; - /** - * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#fc - */ - readonly fc?: FcVolumeSource; - /** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flexVolume - */ - readonly flexVolume?: FlexPersistentVolumeSource; - /** - * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flocker - */ - readonly flocker?: FlockerVolumeSource; - /** - * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#gcePersistentDisk - */ - readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; - /** - * Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#glusterfs - */ - readonly glusterfs?: GlusterfsPersistentVolumeSource; - /** - * HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#hostPath - */ - readonly hostPath?: HostPathVolumeSource; - /** - * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#iscsi - */ - readonly iscsi?: IscsiPersistentVolumeSource; - /** - * Local represents directly-attached storage with node affinity - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#local - */ - readonly local?: LocalVolumeSource; - /** - * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#mountOptions - */ - readonly mountOptions?: string[]; - /** - * NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nfs - */ - readonly nfs?: NfsVolumeSource; - /** - * NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nodeAffinity - */ - readonly nodeAffinity?: VolumeNodeAffinity; - /** - * What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#persistentVolumeReclaimPolicy - */ - readonly persistentVolumeReclaimPolicy?: string; - /** - * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#photonPersistentDisk - */ - readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; - /** - * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#portworxVolume - */ - readonly portworxVolume?: PortworxVolumeSource; - /** - * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#quobyte - */ - readonly quobyte?: QuobyteVolumeSource; - /** - * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#rbd - */ - readonly rbd?: RbdPersistentVolumeSource; - /** - * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#scaleIO - */ - readonly scaleIo?: ScaleIoPersistentVolumeSource; - /** - * Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageClassName - */ - readonly storageClassName?: string; - /** - * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageos - */ - readonly storageos?: StorageOsPersistentVolumeSource; - /** - * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#volumeMode - */ - readonly volumeMode?: string; - /** - * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#vsphereVolume - */ - readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; -} -/** - * Converts an object of type 'PersistentVolumeSpec' to JSON representation. - */ -export declare function toJson_PersistentVolumeSpec( - obj: PersistentVolumeSpec | undefined, -): Record | undefined; -/** - * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec - */ -export interface PersistentVolumeClaimSpec { - /** - * AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#accessModes - */ - readonly accessModes?: string[]; - /** - * This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSource - */ - readonly dataSource?: TypedLocalObjectReference; - /** - * Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef - * allows any non-core object, as well as PersistentVolumeClaim objects. - * * While DataSource ignores disallowed values (dropping them), DataSourceRef - * preserves all values, and generates an error if a disallowed value is - * specified. - * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSourceRef - */ - readonly dataSourceRef?: TypedLocalObjectReference; - /** - * Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#resources - */ - readonly resources?: ResourceRequirements; - /** - * A label query over volumes to consider for binding. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#selector - */ - readonly selector?: LabelSelector; - /** - * Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#storageClassName - */ - readonly storageClassName?: string; - /** - * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeMode - */ - readonly volumeMode?: string; - /** - * VolumeName is the binding reference to the PersistentVolume backing this claim. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeName - */ - readonly volumeName?: string; -} -/** - * Converts an object of type 'PersistentVolumeClaimSpec' to JSON representation. - */ -export declare function toJson_PersistentVolumeClaimSpec( - obj: PersistentVolumeClaimSpec | undefined, -): Record | undefined; -/** - * PodSpec is a description of a pod. - * - * @schema io.k8s.api.core.v1.PodSpec - */ -export interface PodSpec { - /** - * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * - * @schema io.k8s.api.core.v1.PodSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - /** - * If specified, the pod's scheduling constraints - * - * @schema io.k8s.api.core.v1.PodSpec#affinity - */ - readonly affinity?: Affinity; - /** - * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * - * @schema io.k8s.api.core.v1.PodSpec#automountServiceAccountToken - */ - readonly automountServiceAccountToken?: boolean; - /** - * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * - * @schema io.k8s.api.core.v1.PodSpec#containers - */ - readonly containers: Container[]; - /** - * Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * - * @schema io.k8s.api.core.v1.PodSpec#dnsConfig - */ - readonly dnsConfig?: PodDnsConfig; - /** - * Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * - * @default ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * @schema io.k8s.api.core.v1.PodSpec#dnsPolicy - */ - readonly dnsPolicy?: string; - /** - * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * - * @default true. - * @schema io.k8s.api.core.v1.PodSpec#enableServiceLinks - */ - readonly enableServiceLinks?: boolean; - /** - * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * - * @schema io.k8s.api.core.v1.PodSpec#ephemeralContainers - */ - readonly ephemeralContainers?: EphemeralContainer[]; - /** - * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * - * @schema io.k8s.api.core.v1.PodSpec#hostAliases - */ - readonly hostAliases?: HostAlias[]; - /** - * Use the host's ipc namespace. Optional: Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#hostIPC - */ - readonly hostIpc?: boolean; - /** - * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#hostNetwork - */ - readonly hostNetwork?: boolean; - /** - * Use the host's pid namespace. Optional: Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#hostPID - */ - readonly hostPid?: boolean; - /** - * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * - * @schema io.k8s.api.core.v1.PodSpec#hostname - */ - readonly hostname?: string; - /** - * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * - * @schema io.k8s.api.core.v1.PodSpec#imagePullSecrets - */ - readonly imagePullSecrets?: LocalObjectReference[]; - /** - * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * - * @schema io.k8s.api.core.v1.PodSpec#initContainers - */ - readonly initContainers?: Container[]; - /** - * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * - * @schema io.k8s.api.core.v1.PodSpec#nodeName - */ - readonly nodeName?: string; - /** - * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * - * @schema io.k8s.api.core.v1.PodSpec#nodeSelector - */ - readonly nodeSelector?: { - [key: string]: string; - }; - /** - * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature. - * - * @schema io.k8s.api.core.v1.PodSpec#overhead - */ - readonly overhead?: { - [key: string]: Quantity; - }; - /** - * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. - * - * @default PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate. - * @schema io.k8s.api.core.v1.PodSpec#preemptionPolicy - */ - readonly preemptionPolicy?: string; - /** - * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * - * @schema io.k8s.api.core.v1.PodSpec#priority - */ - readonly priority?: number; - /** - * If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * - * @schema io.k8s.api.core.v1.PodSpec#priorityClassName - */ - readonly priorityClassName?: string; - /** - * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates - * - * @schema io.k8s.api.core.v1.PodSpec#readinessGates - */ - readonly readinessGates?: PodReadinessGate[]; - /** - * Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * - * @default Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * @schema io.k8s.api.core.v1.PodSpec#restartPolicy - */ - readonly restartPolicy?: string; - /** - * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class This is a beta feature as of Kubernetes v1.14. - * - * @schema io.k8s.api.core.v1.PodSpec#runtimeClassName - */ - readonly runtimeClassName?: string; - /** - * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * - * @schema io.k8s.api.core.v1.PodSpec#schedulerName - */ - readonly schedulerName?: string; - /** - * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * - * @default empty. See type description for default values of each field. - * @schema io.k8s.api.core.v1.PodSpec#securityContext - */ - readonly securityContext?: PodSecurityContext; - /** - * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * - * @schema io.k8s.api.core.v1.PodSpec#serviceAccount - */ - readonly serviceAccount?: string; - /** - * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * - * @schema io.k8s.api.core.v1.PodSpec#serviceAccountName - */ - readonly serviceAccountName?: string; - /** - * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#setHostnameAsFQDN - */ - readonly setHostnameAsFqdn?: boolean; - /** - * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#shareProcessNamespace - */ - readonly shareProcessNamespace?: boolean; - /** - * If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * - * @schema io.k8s.api.core.v1.PodSpec#subdomain - */ - readonly subdomain?: string; - /** - * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * - * @default 30 seconds. - * @schema io.k8s.api.core.v1.PodSpec#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - /** - * If specified, the pod's tolerations. - * - * @schema io.k8s.api.core.v1.PodSpec#tolerations - */ - readonly tolerations?: Toleration[]; - /** - * TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. - * - * @schema io.k8s.api.core.v1.PodSpec#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: TopologySpreadConstraint[]; - /** - * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * - * @schema io.k8s.api.core.v1.PodSpec#volumes - */ - readonly volumes?: Volume[]; -} -/** - * Converts an object of type 'PodSpec' to JSON representation. - */ -export declare function toJson_PodSpec( - obj: PodSpec | undefined, -): Record | undefined; -/** - * PodTemplateSpec describes the data a pod should have when created from a template - * - * @schema io.k8s.api.core.v1.PodTemplateSpec - */ -export interface PodTemplateSpec { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PodTemplateSpec#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.PodTemplateSpec#spec - */ - readonly spec?: PodSpec; -} -/** - * Converts an object of type 'PodTemplateSpec' to JSON representation. - */ -export declare function toJson_PodTemplateSpec( - obj: PodTemplateSpec | undefined, -): Record | undefined; -/** - * ReplicationControllerSpec is the specification of a replication controller. - * - * @schema io.k8s.api.core.v1.ReplicationControllerSpec - */ -export interface ReplicationControllerSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * - * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#replicas - */ - readonly replicas?: number; - /** - * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#selector - */ - readonly selector?: { - [key: string]: string; - }; - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#template - */ - readonly template?: PodTemplateSpec; -} -/** - * Converts an object of type 'ReplicationControllerSpec' to JSON representation. - */ -export declare function toJson_ReplicationControllerSpec( - obj: ReplicationControllerSpec | undefined, -): Record | undefined; -/** - * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec - */ -export interface ResourceQuotaSpec { - /** - * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec#hard - */ - readonly hard?: { - [key: string]: Quantity; - }; - /** - * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopeSelector - */ - readonly scopeSelector?: ScopeSelector; - /** - * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopes - */ - readonly scopes?: string[]; -} -/** - * Converts an object of type 'ResourceQuotaSpec' to JSON representation. - */ -export declare function toJson_ResourceQuotaSpec( - obj: ResourceQuotaSpec | undefined, -): Record | undefined; -/** - * ServiceSpec describes the attributes that a user creates on a service. - * - * @schema io.k8s.api.core.v1.ServiceSpec - */ -export interface ServiceSpec { - /** - * allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature. - * - * @default true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature. - * @schema io.k8s.api.core.v1.ServiceSpec#allocateLoadBalancerNodePorts - */ - readonly allocateLoadBalancerNodePorts?: boolean; - /** - * clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @schema io.k8s.api.core.v1.ServiceSpec#clusterIP - */ - readonly clusterIp?: string; - /** - * ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. - * - * Unless the "IPv6DualStack" feature gate is enabled, this field is limited to one value, which must be the same as the clusterIP field. If the feature gate is enabled, this field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @schema io.k8s.api.core.v1.ServiceSpec#clusterIPs - */ - readonly clusterIPs?: string[]; - /** - * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. - * - * @schema io.k8s.api.core.v1.ServiceSpec#externalIPs - */ - readonly externalIPs?: string[]; - /** - * externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". - * - * @schema io.k8s.api.core.v1.ServiceSpec#externalName - */ - readonly externalName?: string; - /** - * externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. - * - * @schema io.k8s.api.core.v1.ServiceSpec#externalTrafficPolicy - */ - readonly externalTrafficPolicy?: string; - /** - * healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). - * - * @schema io.k8s.api.core.v1.ServiceSpec#healthCheckNodePort - */ - readonly healthCheckNodePort?: number; - /** - * InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. "Cluster" routes internal traffic to a Service to all endpoints. "Local" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is "Cluster". - * - * @schema io.k8s.api.core.v1.ServiceSpec#internalTrafficPolicy - */ - readonly internalTrafficPolicy?: string; - /** - * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, and is gated by the "IPv6DualStack" feature gate. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. - * - * This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. - * - * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilies - */ - readonly ipFamilies?: string[]; - /** - * IPFamilyPolicy represents the dual-stack-ness requested or required by this Service, and is gated by the "IPv6DualStack" feature gate. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. - * - * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilyPolicy - */ - readonly ipFamilyPolicy?: string; - /** - * loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. - * - * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerClass - */ - readonly loadBalancerClass?: string; - /** - * Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. - * - * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerIP - */ - readonly loadBalancerIp?: string; - /** - * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ - * - * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerSourceRanges - */ - readonly loadBalancerSourceRanges?: string[]; - /** - * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @schema io.k8s.api.core.v1.ServiceSpec#ports - */ - readonly ports?: ServicePort[]; - /** - * publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. - * - * @schema io.k8s.api.core.v1.ServiceSpec#publishNotReadyAddresses - */ - readonly publishNotReadyAddresses?: boolean; - /** - * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ - * - * @schema io.k8s.api.core.v1.ServiceSpec#selector - */ - readonly selector?: { - [key: string]: string; - }; - /** - * Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @default None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinity - */ - readonly sessionAffinity?: string; - /** - * sessionAffinityConfig contains the configurations of session affinity. - * - * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinityConfig - */ - readonly sessionAffinityConfig?: SessionAffinityConfig; - /** - * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - * - * @default ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - * @schema io.k8s.api.core.v1.ServiceSpec#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'ServiceSpec' to JSON representation. - */ -export declare function toJson_ServiceSpec( - obj: ServiceSpec | undefined, -): Record | undefined; -/** - * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - * - * @schema io.k8s.api.core.v1.LocalObjectReference - */ -export interface LocalObjectReference { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.LocalObjectReference#name - */ - readonly name?: string; -} -/** - * Converts an object of type 'LocalObjectReference' to JSON representation. - */ -export declare function toJson_LocalObjectReference( - obj: LocalObjectReference | undefined, -): Record | undefined; -/** - * Endpoint represents a single logical "backend" implementing a service. - * - * @schema io.k8s.api.discovery.v1.Endpoint - */ -export interface Endpoint { - /** - * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. - * - * @schema io.k8s.api.discovery.v1.Endpoint#addresses - */ - readonly addresses: string[]; - /** - * conditions contains information about the current status of the endpoint. - * - * @schema io.k8s.api.discovery.v1.Endpoint#conditions - */ - readonly conditions?: EndpointConditions; - /** - * deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. - * - * @schema io.k8s.api.discovery.v1.Endpoint#deprecatedTopology - */ - readonly deprecatedTopology?: { - [key: string]: string; - }; - /** - * hints contains information associated with how an endpoint should be consumed. - * - * @schema io.k8s.api.discovery.v1.Endpoint#hints - */ - readonly hints?: EndpointHints; - /** - * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. - * - * @schema io.k8s.api.discovery.v1.Endpoint#hostname - */ - readonly hostname?: string; - /** - * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - * - * @schema io.k8s.api.discovery.v1.Endpoint#nodeName - */ - readonly nodeName?: string; - /** - * targetRef is a reference to a Kubernetes object that represents this endpoint. - * - * @schema io.k8s.api.discovery.v1.Endpoint#targetRef - */ - readonly targetRef?: ObjectReference; - /** - * zone is the name of the Zone this endpoint exists in. - * - * @schema io.k8s.api.discovery.v1.Endpoint#zone - */ - readonly zone?: string; -} -/** - * Converts an object of type 'Endpoint' to JSON representation. - */ -export declare function toJson_Endpoint( - obj: Endpoint | undefined, -): Record | undefined; -/** - * EndpointPort is a tuple that describes a single port. - * - * @schema io.k8s.api.core.v1.EndpointPort - */ -export interface EndpointPort { - /** - * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. - * - * @schema io.k8s.api.core.v1.EndpointPort#appProtocol - */ - readonly appProtocol?: string; - /** - * The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - * - * @schema io.k8s.api.core.v1.EndpointPort#name - */ - readonly name?: string; - /** - * The port number of the endpoint. - * - * @schema io.k8s.api.core.v1.EndpointPort#port - */ - readonly port: number; - /** - * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - * - * @default TCP. - * @schema io.k8s.api.core.v1.EndpointPort#protocol - */ - readonly protocol?: string; -} -/** - * Converts an object of type 'EndpointPort' to JSON representation. - */ -export declare function toJson_EndpointPort( - obj: EndpointPort | undefined, -): Record | undefined; -/** - * Endpoint represents a single logical "backend" implementing a service. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint - */ -export interface EndpointV1Beta1 { - /** - * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#addresses - */ - readonly addresses: string[]; - /** - * conditions contains information about the current status of the endpoint. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#conditions - */ - readonly conditions?: EndpointConditionsV1Beta1; - /** - * hints contains information associated with how an endpoint should be consumed. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#hints - */ - readonly hints?: EndpointHintsV1Beta1; - /** - * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#hostname - */ - readonly hostname?: string; - /** - * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#nodeName - */ - readonly nodeName?: string; - /** - * targetRef is a reference to a Kubernetes object that represents this endpoint. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#targetRef - */ - readonly targetRef?: ObjectReference; - /** - * topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node - * where the endpoint is located. This should match the corresponding - * node label. - * * topology.kubernetes.io/zone: the value indicates the zone where the - * endpoint is located. This should match the corresponding node label. - * * topology.kubernetes.io/region: the value indicates the region where the - * endpoint is located. This should match the corresponding node label. - * This field is deprecated and will be removed in future api versions. - * - * @schema io.k8s.api.discovery.v1beta1.Endpoint#topology - */ - readonly topology?: { - [key: string]: string; - }; -} -/** - * Converts an object of type 'EndpointV1Beta1' to JSON representation. - */ -export declare function toJson_EndpointV1Beta1( - obj: EndpointV1Beta1 | undefined, -): Record | undefined; -/** - * EndpointPort represents a Port used by an EndpointSlice - * - * @schema io.k8s.api.discovery.v1beta1.EndpointPort - */ -export interface EndpointPortV1Beta1 { - /** - * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointPort#appProtocol - */ - readonly appProtocol?: string; - /** - * The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. - * - * @default empty string. - * @schema io.k8s.api.discovery.v1beta1.EndpointPort#name - */ - readonly name?: string; - /** - * The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointPort#port - */ - readonly port?: number; - /** - * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - * - * @default TCP. - * @schema io.k8s.api.discovery.v1beta1.EndpointPort#protocol - */ - readonly protocol?: string; -} -/** - * Converts an object of type 'EndpointPortV1Beta1' to JSON representation. - */ -export declare function toJson_EndpointPortV1Beta1( - obj: EndpointPortV1Beta1 | undefined, -): Record | undefined; -/** - * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. - * - * @schema io.k8s.api.events.v1beta1.EventSeries - */ -export interface EventSeriesV1Beta1 { - /** - * count is the number of occurrences in this series up to the last heartbeat time. - * - * @schema io.k8s.api.events.v1beta1.EventSeries#count - */ - readonly count: number; - /** - * lastObservedTime is the time when last Event from the series was seen before last heartbeat. - * - * @schema io.k8s.api.events.v1beta1.EventSeries#lastObservedTime - */ - readonly lastObservedTime: Date; -} -/** - * Converts an object of type 'EventSeriesV1Beta1' to JSON representation. - */ -export declare function toJson_EventSeriesV1Beta1( - obj: EventSeriesV1Beta1 | undefined, -): Record | undefined; -/** - * FlowSchemaSpec describes how the FlowSchema's specification looks like. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec - */ -export interface FlowSchemaSpecV1Beta1 { - /** - * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#distinguisherMethod - */ - readonly distinguisherMethod?: FlowDistinguisherMethodV1Beta1; - /** - * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#matchingPrecedence - */ - readonly matchingPrecedence?: number; - /** - * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#priorityLevelConfiguration - */ - readonly priorityLevelConfiguration: PriorityLevelConfigurationReferenceV1Beta1; - /** - * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#rules - */ - readonly rules?: PolicyRulesWithSubjectsV1Beta1[]; -} -/** - * Converts an object of type 'FlowSchemaSpecV1Beta1' to JSON representation. - */ -export declare function toJson_FlowSchemaSpecV1Beta1( - obj: FlowSchemaSpecV1Beta1 | undefined, -): Record | undefined; -/** - * PriorityLevelConfigurationSpec specifies the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec - */ -export interface PriorityLevelConfigurationSpecV1Beta1 { - /** - * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec#limited - */ - readonly limited?: LimitedPriorityLevelConfigurationV1Beta1; - /** - * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec#type - */ - readonly type: string; -} -/** - * Converts an object of type 'PriorityLevelConfigurationSpecV1Beta1' to JSON representation. - */ -export declare function toJson_PriorityLevelConfigurationSpecV1Beta1( - obj: PriorityLevelConfigurationSpecV1Beta1 | undefined, -): Record | undefined; -/** - * IngressSpec describes the Ingress the user wishes to exist. - * - * @schema io.k8s.api.networking.v1.IngressSpec - */ -export interface IngressSpec { - /** - * DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller. - * - * @schema io.k8s.api.networking.v1.IngressSpec#defaultBackend - */ - readonly defaultBackend?: IngressBackend; - /** - * IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * - * @schema io.k8s.api.networking.v1.IngressSpec#ingressClassName - */ - readonly ingressClassName?: string; - /** - * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * - * @schema io.k8s.api.networking.v1.IngressSpec#rules - */ - readonly rules?: IngressRule[]; - /** - * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * - * @schema io.k8s.api.networking.v1.IngressSpec#tls - */ - readonly tls?: IngressTls[]; -} -/** - * Converts an object of type 'IngressSpec' to JSON representation. - */ -export declare function toJson_IngressSpec( - obj: IngressSpec | undefined, -): Record | undefined; -/** - * IngressClassSpec provides information about the class of an Ingress. - * - * @schema io.k8s.api.networking.v1.IngressClassSpec - */ -export interface IngressClassSpec { - /** - * Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - * - * @schema io.k8s.api.networking.v1.IngressClassSpec#controller - */ - readonly controller?: string; - /** - * Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. - * - * @schema io.k8s.api.networking.v1.IngressClassSpec#parameters - */ - readonly parameters?: IngressClassParametersReference; -} -/** - * Converts an object of type 'IngressClassSpec' to JSON representation. - */ -export declare function toJson_IngressClassSpec( - obj: IngressClassSpec | undefined, -): Record | undefined; -/** - * NetworkPolicySpec provides the specification of a NetworkPolicy - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec - */ -export interface NetworkPolicySpec { - /** - * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#egress - */ - readonly egress?: NetworkPolicyEgressRule[]; - /** - * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#ingress - */ - readonly ingress?: NetworkPolicyIngressRule[]; - /** - * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#podSelector - */ - readonly podSelector: LabelSelector; - /** - * List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#policyTypes - */ - readonly policyTypes?: string[]; -} -/** - * Converts an object of type 'NetworkPolicySpec' to JSON representation. - */ -export declare function toJson_NetworkPolicySpec( - obj: NetworkPolicySpec | undefined, -): Record | undefined; -/** - * Overhead structure represents the resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1.Overhead - */ -export interface Overhead { - /** - * PodFixed represents the fixed resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1.Overhead#podFixed - */ - readonly podFixed?: { - [key: string]: Quantity; - }; -} -/** - * Converts an object of type 'Overhead' to JSON representation. - */ -export declare function toJson_Overhead( - obj: Overhead | undefined, -): Record | undefined; -/** - * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. - * - * @schema io.k8s.api.node.v1.Scheduling - */ -export interface Scheduling { - /** - * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * - * @schema io.k8s.api.node.v1.Scheduling#nodeSelector - */ - readonly nodeSelector?: { - [key: string]: string; - }; - /** - * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * - * @schema io.k8s.api.node.v1.Scheduling#tolerations - */ - readonly tolerations?: Toleration[]; -} -/** - * Converts an object of type 'Scheduling' to JSON representation. - */ -export declare function toJson_Scheduling( - obj: Scheduling | undefined, -): Record | undefined; -/** - * RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassSpec - */ -export interface RuntimeClassSpecV1Alpha1 { - /** - * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassSpec#overhead - */ - readonly overhead?: OverheadV1Alpha1; - /** - * RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassSpec#runtimeHandler - */ - readonly runtimeHandler: string; - /** - * Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * - * @schema io.k8s.api.node.v1alpha1.RuntimeClassSpec#scheduling - */ - readonly scheduling?: SchedulingV1Alpha1; -} -/** - * Converts an object of type 'RuntimeClassSpecV1Alpha1' to JSON representation. - */ -export declare function toJson_RuntimeClassSpecV1Alpha1( - obj: RuntimeClassSpecV1Alpha1 | undefined, -): Record | undefined; -/** - * Overhead structure represents the resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1beta1.Overhead - */ -export interface OverheadV1Beta1 { - /** - * PodFixed represents the fixed resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1beta1.Overhead#podFixed - */ - readonly podFixed?: { - [key: string]: Quantity; - }; -} -/** - * Converts an object of type 'OverheadV1Beta1' to JSON representation. - */ -export declare function toJson_OverheadV1Beta1( - obj: OverheadV1Beta1 | undefined, -): Record | undefined; -/** - * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. - * - * @schema io.k8s.api.node.v1beta1.Scheduling - */ -export interface SchedulingV1Beta1 { - /** - * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * - * @schema io.k8s.api.node.v1beta1.Scheduling#nodeSelector - */ - readonly nodeSelector?: { - [key: string]: string; - }; - /** - * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * - * @schema io.k8s.api.node.v1beta1.Scheduling#tolerations - */ - readonly tolerations?: Toleration[]; -} -/** - * Converts an object of type 'SchedulingV1Beta1' to JSON representation. - */ -export declare function toJson_SchedulingV1Beta1( - obj: SchedulingV1Beta1 | undefined, -): Record | undefined; -/** - * DeleteOptions may be provided when deleting an API object. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions - */ -export interface DeleteOptions { - /** - * 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 - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#apiVersion - */ - readonly apiVersion?: string; - /** - * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#dryRun - */ - readonly dryRun?: string[]; - /** - * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * - * @default a per object value if not specified. zero means delete immediately. - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#gracePeriodSeconds - */ - readonly gracePeriodSeconds?: number; - /** - * 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 - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#kind - */ - readonly kind?: IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind; - /** - * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#orphanDependents - */ - readonly orphanDependents?: boolean; - /** - * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#preconditions - */ - readonly preconditions?: Preconditions; - /** - * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#propagationPolicy - */ - readonly propagationPolicy?: string; -} -/** - * Converts an object of type 'DeleteOptions' to JSON representation. - */ -export declare function toJson_DeleteOptions( - obj: DeleteOptions | undefined, -): Record | undefined; -/** - * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec - */ -export interface PodDisruptionBudgetSpec { - /** - * An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; - /** - * An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#minAvailable - */ - readonly minAvailable?: IntOrString; - /** - * Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#selector - */ - readonly selector?: LabelSelector; -} -/** - * Converts an object of type 'PodDisruptionBudgetSpec' to JSON representation. - */ -export declare function toJson_PodDisruptionBudgetSpec( - obj: PodDisruptionBudgetSpec | undefined, -): Record | undefined; -/** - * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec - */ -export interface PodDisruptionBudgetSpecV1Beta1 { - /** - * An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; - /** - * An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec#minAvailable - */ - readonly minAvailable?: IntOrString; - /** - * Label query over pods whose evictions are managed by the disruption budget. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace. - * - * @schema io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec#selector - */ - readonly selector?: LabelSelector; -} -/** - * Converts an object of type 'PodDisruptionBudgetSpecV1Beta1' to JSON representation. - */ -export declare function toJson_PodDisruptionBudgetSpecV1Beta1( - obj: PodDisruptionBudgetSpecV1Beta1 | undefined, -): Record | undefined; -/** - * PodSecurityPolicySpec defines the policy enforced. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec - */ -export interface PodSecurityPolicySpecV1Beta1 { - /** - * allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - /** - * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowedCSIDrivers - */ - readonly allowedCsiDrivers?: AllowedCsiDriverV1Beta1[]; - /** - * allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowedCapabilities - */ - readonly allowedCapabilities?: string[]; - /** - * allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowedFlexVolumes - */ - readonly allowedFlexVolumes?: AllowedFlexVolumeV1Beta1[]; - /** - * allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowedHostPaths - */ - readonly allowedHostPaths?: AllowedHostPathV1Beta1[]; - /** - * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowedProcMountTypes - */ - readonly allowedProcMountTypes?: string[]; - /** - * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection. - * - * Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#allowedUnsafeSysctls - */ - readonly allowedUnsafeSysctls?: string[]; - /** - * defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#defaultAddCapabilities - */ - readonly defaultAddCapabilities?: string[]; - /** - * defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#defaultAllowPrivilegeEscalation - */ - readonly defaultAllowPrivilegeEscalation?: boolean; - /** - * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - * - * Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#forbiddenSysctls - */ - readonly forbiddenSysctls?: string[]; - /** - * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#fsGroup - */ - readonly fsGroup: FsGroupStrategyOptionsV1Beta1; - /** - * hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#hostIPC - */ - readonly hostIpc?: boolean; - /** - * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#hostNetwork - */ - readonly hostNetwork?: boolean; - /** - * hostPID determines if the policy allows the use of HostPID in the pod spec. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#hostPID - */ - readonly hostPid?: boolean; - /** - * hostPorts determines which host port ranges are allowed to be exposed. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#hostPorts - */ - readonly hostPorts?: HostPortRangeV1Beta1[]; - /** - * privileged determines if a pod can request to be run as privileged. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#privileged - */ - readonly privileged?: boolean; - /** - * readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - /** - * requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#requiredDropCapabilities - */ - readonly requiredDropCapabilities?: string[]; - /** - * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#runAsGroup - */ - readonly runAsGroup?: RunAsGroupStrategyOptionsV1Beta1; - /** - * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#runAsUser - */ - readonly runAsUser: RunAsUserStrategyOptionsV1Beta1; - /** - * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#runtimeClass - */ - readonly runtimeClass?: RuntimeClassStrategyOptionsV1Beta1; - /** - * seLinux is the strategy that will dictate the allowable labels that may be set. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#seLinux - */ - readonly seLinux: SeLinuxStrategyOptionsV1Beta1; - /** - * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#supplementalGroups - */ - readonly supplementalGroups: SupplementalGroupsStrategyOptionsV1Beta1; - /** - * volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. - * - * @schema io.k8s.api.policy.v1beta1.PodSecurityPolicySpec#volumes - */ - readonly volumes?: string[]; -} -/** - * Converts an object of type 'PodSecurityPolicySpecV1Beta1' to JSON representation. - */ -export declare function toJson_PodSecurityPolicySpecV1Beta1( - obj: PodSecurityPolicySpecV1Beta1 | undefined, -): Record | undefined; -/** - * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole - * - * @schema io.k8s.api.rbac.v1.AggregationRule - */ -export interface AggregationRule { - /** - * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * - * @schema io.k8s.api.rbac.v1.AggregationRule#clusterRoleSelectors - */ - readonly clusterRoleSelectors?: LabelSelector[]; -} -/** - * Converts an object of type 'AggregationRule' to JSON representation. - */ -export declare function toJson_AggregationRule( - obj: AggregationRule | undefined, -): Record | undefined; -/** - * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. - * - * @schema io.k8s.api.rbac.v1.PolicyRule - */ -export interface PolicyRule { - /** - * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#apiGroups - */ - readonly apiGroups?: string[]; - /** - * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#nonResourceURLs - */ - readonly nonResourceUrLs?: string[]; - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#resourceNames - */ - readonly resourceNames?: string[]; - /** - * Resources is a list of resources this rule applies to. '*' represents all resources. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#resources - */ - readonly resources?: string[]; - /** - * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#verbs - */ - readonly verbs: string[]; -} -/** - * Converts an object of type 'PolicyRule' to JSON representation. - */ -export declare function toJson_PolicyRule( - obj: PolicyRule | undefined, -): Record | undefined; -/** - * RoleRef contains information that points to the role being used - * - * @schema io.k8s.api.rbac.v1.RoleRef - */ -export interface RoleRef { - /** - * APIGroup is the group for the resource being referenced - * - * @schema io.k8s.api.rbac.v1.RoleRef#apiGroup - */ - readonly apiGroup: string; - /** - * Kind is the type of resource being referenced - * - * @schema io.k8s.api.rbac.v1.RoleRef#kind - */ - readonly kind: string; - /** - * Name is the name of resource being referenced - * - * @schema io.k8s.api.rbac.v1.RoleRef#name - */ - readonly name: string; -} -/** - * Converts an object of type 'RoleRef' to JSON representation. - */ -export declare function toJson_RoleRef( - obj: RoleRef | undefined, -): Record | undefined; -/** - * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. - * - * @schema io.k8s.api.rbac.v1.Subject - */ -export interface Subject { - /** - * APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * - * @default for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * @schema io.k8s.api.rbac.v1.Subject#apiGroup - */ - readonly apiGroup?: string; - /** - * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * - * @schema io.k8s.api.rbac.v1.Subject#kind - */ - readonly kind: string; - /** - * Name of the object being referenced. - * - * @schema io.k8s.api.rbac.v1.Subject#name - */ - readonly name: string; - /** - * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - * - * @schema io.k8s.api.rbac.v1.Subject#namespace - */ - readonly namespace?: string; -} -/** - * Converts an object of type 'Subject' to JSON representation. - */ -export declare function toJson_Subject( - obj: Subject | undefined, -): Record | undefined; -/** - * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole - * - * @schema io.k8s.api.rbac.v1alpha1.AggregationRule - */ -export interface AggregationRuleV1Alpha1 { - /** - * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * - * @schema io.k8s.api.rbac.v1alpha1.AggregationRule#clusterRoleSelectors - */ - readonly clusterRoleSelectors?: LabelSelector[]; -} -/** - * Converts an object of type 'AggregationRuleV1Alpha1' to JSON representation. - */ -export declare function toJson_AggregationRuleV1Alpha1( - obj: AggregationRuleV1Alpha1 | undefined, -): Record | undefined; -/** - * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. - * - * @schema io.k8s.api.rbac.v1alpha1.PolicyRule - */ -export interface PolicyRuleV1Alpha1 { - /** - * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * - * @schema io.k8s.api.rbac.v1alpha1.PolicyRule#apiGroups - */ - readonly apiGroups?: string[]; - /** - * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * - * @schema io.k8s.api.rbac.v1alpha1.PolicyRule#nonResourceURLs - */ - readonly nonResourceUrLs?: string[]; - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * - * @schema io.k8s.api.rbac.v1alpha1.PolicyRule#resourceNames - */ - readonly resourceNames?: string[]; - /** - * Resources is a list of resources this rule applies to. '*' represents all resources. - * - * @schema io.k8s.api.rbac.v1alpha1.PolicyRule#resources - */ - readonly resources?: string[]; - /** - * Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs. - * - * @schema io.k8s.api.rbac.v1alpha1.PolicyRule#verbs - */ - readonly verbs: string[]; -} -/** - * Converts an object of type 'PolicyRuleV1Alpha1' to JSON representation. - */ -export declare function toJson_PolicyRuleV1Alpha1( - obj: PolicyRuleV1Alpha1 | undefined, -): Record | undefined; -/** - * RoleRef contains information that points to the role being used - * - * @schema io.k8s.api.rbac.v1alpha1.RoleRef - */ -export interface RoleRefV1Alpha1 { - /** - * APIGroup is the group for the resource being referenced - * - * @schema io.k8s.api.rbac.v1alpha1.RoleRef#apiGroup - */ - readonly apiGroup: string; - /** - * Kind is the type of resource being referenced - * - * @schema io.k8s.api.rbac.v1alpha1.RoleRef#kind - */ - readonly kind: string; - /** - * Name is the name of resource being referenced - * - * @schema io.k8s.api.rbac.v1alpha1.RoleRef#name - */ - readonly name: string; -} -/** - * Converts an object of type 'RoleRefV1Alpha1' to JSON representation. - */ -export declare function toJson_RoleRefV1Alpha1( - obj: RoleRefV1Alpha1 | undefined, -): Record | undefined; -/** - * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. - * - * @schema io.k8s.api.rbac.v1alpha1.Subject - */ -export interface SubjectV1Alpha1 { - /** - * APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * - * @default v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * @schema io.k8s.api.rbac.v1alpha1.Subject#apiVersion - */ - readonly apiVersion?: string; - /** - * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * - * @schema io.k8s.api.rbac.v1alpha1.Subject#kind - */ - readonly kind: string; - /** - * Name of the object being referenced. - * - * @schema io.k8s.api.rbac.v1alpha1.Subject#name - */ - readonly name: string; - /** - * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - * - * @schema io.k8s.api.rbac.v1alpha1.Subject#namespace - */ - readonly namespace?: string; -} -/** - * Converts an object of type 'SubjectV1Alpha1' to JSON representation. - */ -export declare function toJson_SubjectV1Alpha1( - obj: SubjectV1Alpha1 | undefined, -): Record | undefined; -/** - * CSIDriverSpec is the specification of a CSIDriver. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec - */ -export interface CsiDriverSpec { - /** - * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * - * This field is immutable. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#attachRequired - */ - readonly attachRequired?: boolean; - /** - * Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. This field is beta, and is only honored by servers that enable the CSIVolumeFSGroupPolicy feature gate. - * - * This field is immutable. - * - * Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. - * - * @default ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. - * @schema io.k8s.api.storage.v1.CSIDriverSpec#fsGroupPolicy - */ - readonly fsGroupPolicy?: string; - /** - * If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume - * defined by a CSIVolumeSource, otherwise "false" - * - * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * - * This field is immutable. - * - * @default false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume - * @schema io.k8s.api.storage.v1.CSIDriverSpec#podInfoOnMount - */ - readonly podInfoOnMount?: boolean; - /** - * RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. - * - * Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#requiresRepublish - */ - readonly requiresRepublish?: boolean; - /** - * If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information. - * - * The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. - * - * Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. - * - * This field is immutable. - * - * This is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#storageCapacity - */ - readonly storageCapacity?: boolean; - /** - * TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { - * "": { - * "token": , - * "expirationTimestamp": , - * }, - * ... - * } - * - * Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#tokenRequests - */ - readonly tokenRequests?: TokenRequest[]; - /** - * volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. - * - * This field is immutable. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#volumeLifecycleModes - */ - readonly volumeLifecycleModes?: string[]; -} -/** - * Converts an object of type 'CsiDriverSpec' to JSON representation. - */ -export declare function toJson_CsiDriverSpec( - obj: CsiDriverSpec | undefined, -): Record | undefined; -/** - * CSINodeSpec holds information about the specification of all CSI drivers installed on a node - * - * @schema io.k8s.api.storage.v1.CSINodeSpec - */ -export interface CsiNodeSpec { - /** - * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * - * @schema io.k8s.api.storage.v1.CSINodeSpec#drivers - */ - readonly drivers: CsiNodeDriver[]; -} -/** - * Converts an object of type 'CsiNodeSpec' to JSON representation. - */ -export declare function toJson_CsiNodeSpec( - obj: CsiNodeSpec | undefined, -): Record | undefined; -/** - * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. - * - * @schema io.k8s.api.core.v1.TopologySelectorTerm - */ -export interface TopologySelectorTerm { - /** - * A list of topology selector requirements by labels. - * - * @schema io.k8s.api.core.v1.TopologySelectorTerm#matchLabelExpressions - */ - readonly matchLabelExpressions?: TopologySelectorLabelRequirement[]; -} -/** - * Converts an object of type 'TopologySelectorTerm' to JSON representation. - */ -export declare function toJson_TopologySelectorTerm( - obj: TopologySelectorTerm | undefined, -): Record | undefined; -/** - * VolumeAttachmentSpec is the specification of a VolumeAttachment request. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec - */ -export interface VolumeAttachmentSpec { - /** - * Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#attacher - */ - readonly attacher: string; - /** - * The node that the volume should be attached to. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#nodeName - */ - readonly nodeName: string; - /** - * Source represents the volume that should be attached. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#source - */ - readonly source: VolumeAttachmentSource; -} -/** - * Converts an object of type 'VolumeAttachmentSpec' to JSON representation. - */ -export declare function toJson_VolumeAttachmentSpec( - obj: VolumeAttachmentSpec | undefined, -): Record | undefined; -/** - * @schema io.k8s.apimachinery.pkg.api.resource.Quantity - */ -export declare class Quantity { - readonly value: any; - static fromString(value: string): Quantity; - static fromNumber(value: number): Quantity; - private constructor(); -} -/** - * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector - */ -export interface LabelSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchExpressions - */ - readonly matchExpressions?: LabelSelectorRequirement[]; - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchLabels - */ - readonly matchLabels?: { - [key: string]: string; - }; -} -/** - * Converts an object of type 'LabelSelector' to JSON representation. - */ -export declare function toJson_LabelSelector( - obj: LabelSelector | undefined, -): Record | undefined; -/** - * VolumeAttachmentSpec is the specification of a VolumeAttachment request. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSpec - */ -export interface VolumeAttachmentSpecV1Alpha1 { - /** - * Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSpec#attacher - */ - readonly attacher: string; - /** - * The node that the volume should be attached to. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSpec#nodeName - */ - readonly nodeName: string; - /** - * Source represents the volume that should be attached. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSpec#source - */ - readonly source: VolumeAttachmentSourceV1Alpha1; -} -/** - * Converts an object of type 'VolumeAttachmentSpecV1Alpha1' to JSON representation. - */ -export declare function toJson_VolumeAttachmentSpecV1Alpha1( - obj: VolumeAttachmentSpecV1Alpha1 | undefined, -): Record | undefined; -/** - * CustomResourceDefinitionSpec describes how a user wants their resource to appear - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec - */ -export interface CustomResourceDefinitionSpec { - /** - * conversion defines conversion settings for the CRD. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#conversion - */ - readonly conversion?: CustomResourceConversion; - /** - * group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#group - */ - readonly group: string; - /** - * names specify the resource and kind names for the custom resource. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#names - */ - readonly names: CustomResourceDefinitionNames; - /** - * preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#preserveUnknownFields - */ - readonly preserveUnknownFields?: boolean; - /** - * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#scope - */ - readonly scope: string; - /** - * versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#versions - */ - readonly versions: CustomResourceDefinitionVersion[]; -} -/** - * Converts an object of type 'CustomResourceDefinitionSpec' to JSON representation. - */ -export declare function toJson_CustomResourceDefinitionSpec( - obj: CustomResourceDefinitionSpec | undefined, -): Record | undefined; -/** - * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails - */ -export interface StatusDetails { - /** - * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#causes - */ - readonly causes?: StatusCause[]; - /** - * The group attribute of the resource associated with the status StatusReason. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#group - */ - readonly group?: string; - /** - * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#kind - */ - readonly kind?: string; - /** - * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#name - */ - readonly name?: string; - /** - * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#retryAfterSeconds - */ - readonly retryAfterSeconds?: number; - /** - * UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#uid - */ - readonly uid?: string; -} -/** - * Converts an object of type 'StatusDetails' to JSON representation. - */ -export declare function toJson_StatusDetails( - obj: StatusDetails | undefined, -): Record | undefined; -/** - * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec - */ -export interface ApiServiceSpec { - /** - * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#caBundle - */ - readonly caBundle?: string; - /** - * Group is the API group name this server hosts - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#group - */ - readonly group?: string; - /** - * GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#groupPriorityMinimum - */ - readonly groupPriorityMinimum: number; - /** - * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#insecureSkipTLSVerify - */ - readonly insecureSkipTlsVerify?: boolean; - /** - * Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#service - */ - readonly service?: ServiceReference; - /** - * Version is the API version this server hosts. For example, "v1" - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#version - */ - readonly version?: string; - /** - * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#versionPriority - */ - readonly versionPriority: number; -} -/** - * Converts an object of type 'ApiServiceSpec' to JSON representation. - */ -export declare function toJson_ApiServiceSpec( - obj: ApiServiceSpec | undefined, -): Record | undefined; -/** - * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry - */ -export interface ManagedFieldsEntry { - /** - * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#apiVersion - */ - readonly apiVersion?: string; - /** - * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsType - */ - readonly fieldsType?: string; - /** - * FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsV1 - */ - readonly fieldsV1?: any; - /** - * Manager is an identifier of the workflow managing these fields. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#manager - */ - readonly manager?: string; - /** - * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#operation - */ - readonly operation?: string; - /** - * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#subresource - */ - readonly subresource?: string; - /** - * Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#time - */ - readonly time?: Date; -} -/** - * Converts an object of type 'ManagedFieldsEntry' to JSON representation. - */ -export declare function toJson_ManagedFieldsEntry( - obj: ManagedFieldsEntry | undefined, -): Record | undefined; -/** - * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference - */ -export interface OwnerReference { - /** - * API version of the referent. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#apiVersion - */ - readonly apiVersion: string; - /** - * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * - * @default false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#blockOwnerDeletion - */ - readonly blockOwnerDeletion?: boolean; - /** - * If true, this reference points to the managing controller. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#controller - */ - readonly controller?: boolean; - /** - * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#kind - */ - readonly kind: string; - /** - * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#name - */ - readonly name: string; - /** - * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#uid - */ - readonly uid: string; -} -/** - * Converts an object of type 'OwnerReference' to JSON representation. - */ -export declare function toJson_OwnerReference( - obj: OwnerReference | undefined, -): Record | undefined; -/** - * WebhookClientConfig contains the information to make a TLS connection with the webhook - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig - */ -export interface WebhookClientConfig { - /** - * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#caBundle - */ - readonly caBundle?: string; - /** - * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - * - * If the webhook is running within the cluster, then you should use `service`. - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#service - */ - readonly service?: ServiceReference; - /** - * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - * - * The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - * - * Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - * - * The scheme must be "https"; the URL must begin with "https://". - * - * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#url - */ - readonly url?: string; -} -/** - * Converts an object of type 'WebhookClientConfig' to JSON representation. - */ -export declare function toJson_WebhookClientConfig( - obj: WebhookClientConfig | undefined, -): Record | undefined; -/** - * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations - */ -export interface RuleWithOperations { - /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiGroups - */ - readonly apiGroups?: string[]; - /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiVersions - */ - readonly apiVersions?: string[]; - /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#operations - */ - readonly operations?: string[]; - /** - * Resources is a list of resources this rule applies to. - * - * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '_/scale' means all scale subresources. '_/*' means all resources and their subresources. - * - * If wildcard is present, the validation rule will ensure resources do not overlap with each other. - * - * Depending on the enclosing object, subresources might not be allowed. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#resources - */ - readonly resources?: string[]; - /** - * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - * - * @default . - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#scope - */ - readonly scope?: string; -} -/** - * Converts an object of type 'RuleWithOperations' to JSON representation. - */ -export declare function toJson_RuleWithOperations( - obj: RuleWithOperations | undefined, -): Record | undefined; -/** - * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. - * - * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy - */ -export interface DaemonSetUpdateStrategy { - /** - * Rolling update config params. Present only if type = "RollingUpdate". - * - * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: RollingUpdateDaemonSet; - /** - * Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - * - * @default RollingUpdate. - * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'DaemonSetUpdateStrategy' to JSON representation. - */ -export declare function toJson_DaemonSetUpdateStrategy( - obj: DaemonSetUpdateStrategy | undefined, -): Record | undefined; -/** - * DeploymentStrategy describes how to replace existing pods with new ones. - * - * @schema io.k8s.api.apps.v1.DeploymentStrategy - */ -export interface DeploymentStrategy { - /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * - * @schema io.k8s.api.apps.v1.DeploymentStrategy#rollingUpdate - */ - readonly rollingUpdate?: RollingUpdateDeployment; - /** - * Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - * - * @default RollingUpdate. - * @schema io.k8s.api.apps.v1.DeploymentStrategy#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'DeploymentStrategy' to JSON representation. - */ -export declare function toJson_DeploymentStrategy( - obj: DeploymentStrategy | undefined, -): Record | undefined; -/** - * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. - * - * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy - */ -export interface StatefulSetUpdateStrategy { - /** - * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * - * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: RollingUpdateStatefulSetStrategy; - /** - * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - * - * @default RollingUpdate. - * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'StatefulSetUpdateStrategy' to JSON representation. - */ -export declare function toJson_StatefulSetUpdateStrategy( - obj: StatefulSetUpdateStrategy | undefined, -): Record | undefined; -/** - * BoundObjectReference is a reference to an object that a token is bound to. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference - */ -export interface BoundObjectReference { - /** - * API version of the referent. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#apiVersion - */ - readonly apiVersion?: string; - /** - * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#kind - */ - readonly kind?: string; - /** - * Name of the referent. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#name - */ - readonly name?: string; - /** - * UID of the referent. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#uid - */ - readonly uid?: string; -} -/** - * Converts an object of type 'BoundObjectReference' to JSON representation. - */ -export declare function toJson_BoundObjectReference( - obj: BoundObjectReference | undefined, -): Record | undefined; -/** - * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface - * - * @schema io.k8s.api.authorization.v1.NonResourceAttributes - */ -export interface NonResourceAttributes { - /** - * Path is the URL path of the request - * - * @schema io.k8s.api.authorization.v1.NonResourceAttributes#path - */ - readonly path?: string; - /** - * Verb is the standard HTTP verb - * - * @schema io.k8s.api.authorization.v1.NonResourceAttributes#verb - */ - readonly verb?: string; -} -/** - * Converts an object of type 'NonResourceAttributes' to JSON representation. - */ -export declare function toJson_NonResourceAttributes( - obj: NonResourceAttributes | undefined, -): Record | undefined; -/** - * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes - */ -export interface ResourceAttributes { - /** - * Group is the API Group of the Resource. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#group - */ - readonly group?: string; - /** - * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#name - */ - readonly name?: string; - /** - * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#namespace - */ - readonly namespace?: string; - /** - * Resource is one of the existing resource types. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#resource - */ - readonly resource?: string; - /** - * Subresource is one of the existing resource types. "" means none. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#subresource - */ - readonly subresource?: string; - /** - * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#verb - */ - readonly verb?: string; - /** - * Version is the API Version of the Resource. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#version - */ - readonly version?: string; -} -/** - * Converts an object of type 'ResourceAttributes' to JSON representation. - */ -export declare function toJson_ResourceAttributes( - obj: ResourceAttributes | undefined, -): Record | undefined; -/** - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference - */ -export interface CrossVersionObjectReference { - /** - * API version of the referent - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#apiVersion - */ - readonly apiVersion?: string; - /** - * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#kind - */ - readonly kind: string; - /** - * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#name - */ - readonly name: string; -} -/** - * Converts an object of type 'CrossVersionObjectReference' to JSON representation. - */ -export declare function toJson_CrossVersionObjectReference( - obj: CrossVersionObjectReference | undefined, -): Record | undefined; -/** - * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec - */ -export interface MetricSpecV2Beta1 { - /** - * container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec#containerResource - */ - readonly containerResource?: ContainerResourceMetricSourceV2Beta1; - /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec#external - */ - readonly external?: ExternalMetricSourceV2Beta1; - /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec#object - */ - readonly object?: ObjectMetricSourceV2Beta1; - /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec#pods - */ - readonly pods?: PodsMetricSourceV2Beta1; - /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec#resource - */ - readonly resource?: ResourceMetricSourceV2Beta1; - /** - * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled - * - * @schema io.k8s.api.autoscaling.v2beta1.MetricSpec#type - */ - readonly type: string; -} -/** - * Converts an object of type 'MetricSpecV2Beta1' to JSON representation. - */ -export declare function toJson_MetricSpecV2Beta1( - obj: MetricSpecV2Beta1 | undefined, -): Record | undefined; -/** - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * - * @schema io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference - */ -export interface CrossVersionObjectReferenceV2Beta1 { - /** - * API version of the referent - * - * @schema io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference#apiVersion - */ - readonly apiVersion?: string; - /** - * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * - * @schema io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference#kind - */ - readonly kind: string; - /** - * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - * - * @schema io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference#name - */ - readonly name: string; -} -/** - * Converts an object of type 'CrossVersionObjectReferenceV2Beta1' to JSON representation. - */ -export declare function toJson_CrossVersionObjectReferenceV2Beta1( - obj: CrossVersionObjectReferenceV2Beta1 | undefined, -): Record | undefined; -/** - * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior - */ -export interface HorizontalPodAutoscalerBehaviorV2Beta2 { - /** - * scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior#scaleDown - */ - readonly scaleDown?: HpaScalingRulesV2Beta2; - /** - * scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: - * * increase no more than 4 pods per 60 seconds - * * double the number of pods per 60 seconds - * No stabilization is used. - * - * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior#scaleUp - */ - readonly scaleUp?: HpaScalingRulesV2Beta2; -} -/** - * Converts an object of type 'HorizontalPodAutoscalerBehaviorV2Beta2' to JSON representation. - */ -export declare function toJson_HorizontalPodAutoscalerBehaviorV2Beta2( - obj: HorizontalPodAutoscalerBehaviorV2Beta2 | undefined, -): Record | undefined; -/** - * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec - */ -export interface MetricSpecV2Beta2 { - /** - * container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#containerResource - */ - readonly containerResource?: ContainerResourceMetricSourceV2Beta2; - /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#external - */ - readonly external?: ExternalMetricSourceV2Beta2; - /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#object - */ - readonly object?: ObjectMetricSourceV2Beta2; - /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#pods - */ - readonly pods?: PodsMetricSourceV2Beta2; - /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#resource - */ - readonly resource?: ResourceMetricSourceV2Beta2; - /** - * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#type - */ - readonly type: string; -} -/** - * Converts an object of type 'MetricSpecV2Beta2' to JSON representation. - */ -export declare function toJson_MetricSpecV2Beta2( - obj: MetricSpecV2Beta2 | undefined, -): Record | undefined; -/** - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * - * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference - */ -export interface CrossVersionObjectReferenceV2Beta2 { - /** - * API version of the referent - * - * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#apiVersion - */ - readonly apiVersion?: string; - /** - * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * - * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#kind - */ - readonly kind: string; - /** - * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - * - * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#name - */ - readonly name: string; -} -/** - * Converts an object of type 'CrossVersionObjectReferenceV2Beta2' to JSON representation. - */ -export declare function toJson_CrossVersionObjectReferenceV2Beta2( - obj: CrossVersionObjectReferenceV2Beta2 | undefined, -): Record | undefined; -/** - * JobTemplateSpec describes the data a Job should have when created from a template - * - * @schema io.k8s.api.batch.v1.JobTemplateSpec - */ -export interface JobTemplateSpec { - /** - * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.JobTemplateSpec#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1.JobTemplateSpec#spec - */ - readonly spec?: JobSpec; -} -/** - * Converts an object of type 'JobTemplateSpec' to JSON representation. - */ -export declare function toJson_JobTemplateSpec( - obj: JobTemplateSpec | undefined, -): Record | undefined; -/** - * JobTemplateSpec describes the data a Job should have when created from a template - * - * @schema io.k8s.api.batch.v1beta1.JobTemplateSpec - */ -export interface JobTemplateSpecV1Beta1 { - /** - * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1beta1.JobTemplateSpec#metadata - */ - readonly metadata?: ObjectMeta; - /** - * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1beta1.JobTemplateSpec#spec - */ - readonly spec?: JobSpec; -} -/** - * Converts an object of type 'JobTemplateSpecV1Beta1' to JSON representation. - */ -export declare function toJson_JobTemplateSpecV1Beta1( - obj: JobTemplateSpecV1Beta1 | undefined, -): Record | undefined; -/** - * EndpointAddress is a tuple that describes single IP address. - * - * @schema io.k8s.api.core.v1.EndpointAddress - */ -export interface EndpointAddress { - /** - * The Hostname of this endpoint - * - * @schema io.k8s.api.core.v1.EndpointAddress#hostname - */ - readonly hostname?: string; - /** - * The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - * - * @schema io.k8s.api.core.v1.EndpointAddress#ip - */ - readonly ip: string; - /** - * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * - * @schema io.k8s.api.core.v1.EndpointAddress#nodeName - */ - readonly nodeName?: string; - /** - * Reference to object providing the endpoint. - * - * @schema io.k8s.api.core.v1.EndpointAddress#targetRef - */ - readonly targetRef?: ObjectReference; -} -/** - * Converts an object of type 'EndpointAddress' to JSON representation. - */ -export declare function toJson_EndpointAddress( - obj: EndpointAddress | undefined, -): Record | undefined; -/** - * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. - * - * @schema io.k8s.api.core.v1.LimitRangeItem - */ -export interface LimitRangeItem { - /** - * Default resource requirement limit value by resource name if resource limit is omitted. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#default - */ - readonly default?: { - [key: string]: Quantity; - }; - /** - * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#defaultRequest - */ - readonly defaultRequest?: { - [key: string]: Quantity; - }; - /** - * Max usage constraints on this kind by resource name. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#max - */ - readonly max?: { - [key: string]: Quantity; - }; - /** - * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#maxLimitRequestRatio - */ - readonly maxLimitRequestRatio?: { - [key: string]: Quantity; - }; - /** - * Min usage constraints on this kind by resource name. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#min - */ - readonly min?: { - [key: string]: Quantity; - }; - /** - * Type of resource that this limit applies to. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#type - */ - readonly type: string; -} -/** - * Converts an object of type 'LimitRangeItem' to JSON representation. - */ -export declare function toJson_LimitRangeItem( - obj: LimitRangeItem | undefined, -): Record | undefined; -/** - * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 - * - * @schema io.k8s.api.core.v1.NodeConfigSource - */ -export interface NodeConfigSource { - /** - * ConfigMap is a reference to a Node's ConfigMap - * - * @schema io.k8s.api.core.v1.NodeConfigSource#configMap - */ - readonly configMap?: ConfigMapNodeConfigSource; -} -/** - * Converts an object of type 'NodeConfigSource' to JSON representation. - */ -export declare function toJson_NodeConfigSource( - obj: NodeConfigSource | undefined, -): Record | undefined; -/** - * The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint. - * - * @schema io.k8s.api.core.v1.Taint - */ -export interface Taint { - /** - * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * - * @schema io.k8s.api.core.v1.Taint#effect - */ - readonly effect: string; - /** - * Required. The taint key to be applied to a node. - * - * @schema io.k8s.api.core.v1.Taint#key - */ - readonly key: string; - /** - * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * - * @schema io.k8s.api.core.v1.Taint#timeAdded - */ - readonly timeAdded?: Date; - /** - * The taint value corresponding to the taint key. - * - * @schema io.k8s.api.core.v1.Taint#value - */ - readonly value?: string; -} -/** - * Converts an object of type 'Taint' to JSON representation. - */ -export declare function toJson_Taint( - obj: Taint | undefined, -): Record | undefined; -/** - * Represents a Persistent Disk resource in AWS. - * - * An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource - */ -export interface AwsElasticBlockStoreVolumeSource { - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#partition - */ - readonly partition?: number; - /** - * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#volumeID - */ - readonly volumeId: string; -} -/** - * Converts an object of type 'AwsElasticBlockStoreVolumeSource' to JSON representation. - */ -export declare function toJson_AwsElasticBlockStoreVolumeSource( - obj: AwsElasticBlockStoreVolumeSource | undefined, -): Record | undefined; -/** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource - */ -export interface AzureDiskVolumeSource { - /** - * Host Caching mode: None, Read Only, Read Write. - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#cachingMode - */ - readonly cachingMode?: string; - /** - * The Name of the data disk in the blob storage - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskName - */ - readonly diskName: string; - /** - * The URI the data disk in the blob storage - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskURI - */ - readonly diskUri: string; - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#kind - */ - readonly kind?: string; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#readOnly - */ - readonly readOnly?: boolean; -} -/** - * Converts an object of type 'AzureDiskVolumeSource' to JSON representation. - */ -export declare function toJson_AzureDiskVolumeSource( - obj: AzureDiskVolumeSource | undefined, -): Record | undefined; -/** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource - */ -export interface AzureFilePersistentVolumeSource { - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * the name of secret that contains Azure Storage Account Name and Key - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretName - */ - readonly secretName: string; - /** - * the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretNamespace - */ - readonly secretNamespace?: string; - /** - * Share Name - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#shareName - */ - readonly shareName: string; -} -/** - * Converts an object of type 'AzureFilePersistentVolumeSource' to JSON representation. - */ -export declare function toJson_AzureFilePersistentVolumeSource( - obj: AzureFilePersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource - */ -export interface CephFsPersistentVolumeSource { - /** - * Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#monitors - */ - readonly monitors: string[]; - /** - * Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#path - */ - readonly path?: string; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretFile - */ - readonly secretFile?: string; - /** - * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - /** - * Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#user - */ - readonly user?: string; -} -/** - * Converts an object of type 'CephFsPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_CephFsPersistentVolumeSource( - obj: CephFsPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource - */ -export interface CinderPersistentVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: points to a secret object containing parameters used to connect to OpenStack. - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - /** - * volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#volumeID - */ - readonly volumeId: string; -} -/** - * Converts an object of type 'CinderPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_CinderPersistentVolumeSource( - obj: CinderPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents storage that is managed by an external CSI volume driver (Beta feature) - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource - */ -export interface CsiPersistentVolumeSource { - /** - * ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerExpandSecretRef - */ - readonly controllerExpandSecretRef?: SecretReference; - /** - * ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerPublishSecretRef - */ - readonly controllerPublishSecretRef?: SecretReference; - /** - * Driver is the name of the driver to use for this volume. Required. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#driver - */ - readonly driver: string; - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodePublishSecretRef - */ - readonly nodePublishSecretRef?: SecretReference; - /** - * NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeStageSecretRef - */ - readonly nodeStageSecretRef?: SecretReference; - /** - * Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * - * @default false (read/write). - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Attributes of the volume to publish. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeAttributes - */ - readonly volumeAttributes?: { - [key: string]: string; - }; - /** - * VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeHandle - */ - readonly volumeHandle: string; -} -/** - * Converts an object of type 'CsiPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_CsiPersistentVolumeSource( - obj: CsiPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.FCVolumeSource - */ -export interface FcVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.FCVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Optional: FC target lun number - * - * @schema io.k8s.api.core.v1.FCVolumeSource#lun - */ - readonly lun?: number; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.FCVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: FC target worldwide names (WWNs) - * - * @schema io.k8s.api.core.v1.FCVolumeSource#targetWWNs - */ - readonly targetWwNs?: string[]; - /** - * Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - * - * @schema io.k8s.api.core.v1.FCVolumeSource#wwids - */ - readonly wwids?: string[]; -} -/** - * Converts an object of type 'FcVolumeSource' to JSON representation. - */ -export declare function toJson_FcVolumeSource( - obj: FcVolumeSource | undefined, -): Record | undefined; -/** - * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource - */ -export interface FlexPersistentVolumeSource { - /** - * Driver is the name of the driver to use for this volume. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#driver - */ - readonly driver: string; - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Optional: Extra command options if any. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#options - */ - readonly options?: { - [key: string]: string; - }; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; -} -/** - * Converts an object of type 'FlexPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_FlexPersistentVolumeSource( - obj: FlexPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.FlockerVolumeSource - */ -export interface FlockerVolumeSource { - /** - * Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * - * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetName - */ - readonly datasetName?: string; - /** - * UUID of the dataset. This is unique identifier of a Flocker dataset - * - * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetUUID - */ - readonly datasetUuid?: string; -} -/** - * Converts an object of type 'FlockerVolumeSource' to JSON representation. - */ -export declare function toJson_FlockerVolumeSource( - obj: FlockerVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Persistent Disk resource in Google Compute Engine. - * - * A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource - */ -export interface GcePersistentDiskVolumeSource { - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#partition - */ - readonly partition?: number; - /** - * Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#pdName - */ - readonly pdName: string; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#readOnly - */ - readonly readOnly?: boolean; -} -/** - * Converts an object of type 'GcePersistentDiskVolumeSource' to JSON representation. - */ -export declare function toJson_GcePersistentDiskVolumeSource( - obj: GcePersistentDiskVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource - */ -export interface GlusterfsPersistentVolumeSource { - /** - * EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpoints - */ - readonly endpoints: string; - /** - * EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpointsNamespace - */ - readonly endpointsNamespace?: string; - /** - * Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#path - */ - readonly path: string; - /** - * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; -} -/** - * Converts an object of type 'GlusterfsPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_GlusterfsPersistentVolumeSource( - obj: GlusterfsPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.HostPathVolumeSource - */ -export interface HostPathVolumeSource { - /** - * Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @schema io.k8s.api.core.v1.HostPathVolumeSource#path - */ - readonly path: string; - /** - * Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @default More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * @schema io.k8s.api.core.v1.HostPathVolumeSource#type - */ - readonly type?: string; -} -/** - * Converts an object of type 'HostPathVolumeSource' to JSON representation. - */ -export declare function toJson_HostPathVolumeSource( - obj: HostPathVolumeSource | undefined, -): Record | undefined; -/** - * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource - */ -export interface IscsiPersistentVolumeSource { - /** - * whether support iSCSI Discovery CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthDiscovery - */ - readonly chapAuthDiscovery?: boolean; - /** - * whether support iSCSI Session CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthSession - */ - readonly chapAuthSession?: boolean; - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#initiatorName - */ - readonly initiatorName?: string; - /** - * Target iSCSI Qualified Name. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iqn - */ - readonly iqn: string; - /** - * iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * - * @default default' (tcp). - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iscsiInterface - */ - readonly iscsiInterface?: string; - /** - * iSCSI Target Lun number. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#lun - */ - readonly lun: number; - /** - * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#portals - */ - readonly portals?: string[]; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * CHAP Secret for iSCSI target and initiator authentication - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - /** - * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#targetPortal - */ - readonly targetPortal: string; -} -/** - * Converts an object of type 'IscsiPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_IscsiPersistentVolumeSource( - obj: IscsiPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Local represents directly-attached storage with node affinity (Beta feature) - * - * @schema io.k8s.api.core.v1.LocalVolumeSource - */ -export interface LocalVolumeSource { - /** - * Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * - * @schema io.k8s.api.core.v1.LocalVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - * - * @schema io.k8s.api.core.v1.LocalVolumeSource#path - */ - readonly path: string; -} -/** - * Converts an object of type 'LocalVolumeSource' to JSON representation. - */ -export declare function toJson_LocalVolumeSource( - obj: LocalVolumeSource | undefined, -): Record | undefined; -/** - * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.NFSVolumeSource - */ -export interface NfsVolumeSource { - /** - * Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.NFSVolumeSource#path - */ - readonly path: string; - /** - * ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * @schema io.k8s.api.core.v1.NFSVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.NFSVolumeSource#server - */ - readonly server: string; -} -/** - * Converts an object of type 'NfsVolumeSource' to JSON representation. - */ -export declare function toJson_NfsVolumeSource( - obj: NfsVolumeSource | undefined, -): Record | undefined; -/** - * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. - * - * @schema io.k8s.api.core.v1.VolumeNodeAffinity - */ -export interface VolumeNodeAffinity { - /** - * Required specifies hard node constraints that must be met. - * - * @schema io.k8s.api.core.v1.VolumeNodeAffinity#required - */ - readonly required?: NodeSelector; -} -/** - * Converts an object of type 'VolumeNodeAffinity' to JSON representation. - */ -export declare function toJson_VolumeNodeAffinity( - obj: VolumeNodeAffinity | undefined, -): Record | undefined; -/** - * Represents a Photon Controller persistent disk resource. - * - * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource - */ -export interface PhotonPersistentDiskVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#fsType - */ - readonly fsType?: string; - /** - * ID that identifies Photon Controller persistent disk - * - * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#pdID - */ - readonly pdId: string; -} -/** - * Converts an object of type 'PhotonPersistentDiskVolumeSource' to JSON representation. - */ -export declare function toJson_PhotonPersistentDiskVolumeSource( - obj: PhotonPersistentDiskVolumeSource | undefined, -): Record | undefined; -/** - * PortworxVolumeSource represents a Portworx volume resource. - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource - */ -export interface PortworxVolumeSource { - /** - * FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.PortworxVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * VolumeID uniquely identifies a Portworx volume - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource#volumeID - */ - readonly volumeId: string; -} -/** - * Converts an object of type 'PortworxVolumeSource' to JSON representation. - */ -export declare function toJson_PortworxVolumeSource( - obj: PortworxVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource - */ -export interface QuobyteVolumeSource { - /** - * Group to map volume access to Default is no group - * - * @default no group - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#group - */ - readonly group?: string; - /** - * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#registry - */ - readonly registry: string; - /** - * Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#tenant - */ - readonly tenant?: string; - /** - * User to map volume access to Defaults to serivceaccount user - * - * @default serivceaccount user - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#user - */ - readonly user?: string; - /** - * Volume is a string that references an already created Quobyte volume by name. - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#volume - */ - readonly volume: string; -} -/** - * Converts an object of type 'QuobyteVolumeSource' to JSON representation. - */ -export declare function toJson_QuobyteVolumeSource( - obj: QuobyteVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource - */ -export interface RbdPersistentVolumeSource { - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#image - */ - readonly image: string; - /** - * Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#keyring - */ - readonly keyring?: string; - /** - * A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#monitors - */ - readonly monitors: string[]; - /** - * The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#pool - */ - readonly pool?: string; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - /** - * The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#user - */ - readonly user?: string; -} -/** - * Converts an object of type 'RbdPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_RbdPersistentVolumeSource( - obj: RbdPersistentVolumeSource | undefined, -): Record | undefined; -/** - * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource - */ -export interface ScaleIoPersistentVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * - * @default xfs" - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The host address of the ScaleIO API Gateway. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#gateway - */ - readonly gateway: string; - /** - * The name of the ScaleIO Protection Domain for the configured storage. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#protectionDomain - */ - readonly protectionDomain?: string; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#secretRef - */ - readonly secretRef: SecretReference; - /** - * Flag to enable/disable SSL communication with Gateway, default false - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#sslEnabled - */ - readonly sslEnabled?: boolean; - /** - * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * - * @default ThinProvisioned. - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storageMode - */ - readonly storageMode?: string; - /** - * The ScaleIO Storage Pool associated with the protection domain. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storagePool - */ - readonly storagePool?: string; - /** - * The name of the storage system as configured in ScaleIO. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#system - */ - readonly system: string; - /** - * The name of a volume already created in the ScaleIO system that is associated with this volume source. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#volumeName - */ - readonly volumeName?: string; -} -/** - * Converts an object of type 'ScaleIoPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_ScaleIoPersistentVolumeSource( - obj: ScaleIoPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a StorageOS persistent volume resource. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource - */ -export interface StorageOsPersistentVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#secretRef - */ - readonly secretRef?: ObjectReference; - /** - * VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeName - */ - readonly volumeName?: string; - /** - * VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeNamespace - */ - readonly volumeNamespace?: string; -} -/** - * Converts an object of type 'StorageOsPersistentVolumeSource' to JSON representation. - */ -export declare function toJson_StorageOsPersistentVolumeSource( - obj: StorageOsPersistentVolumeSource | undefined, -): Record | undefined; -/** - * Represents a vSphere volume resource. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource - */ -export interface VsphereVirtualDiskVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyID - */ - readonly storagePolicyId?: string; - /** - * Storage Policy Based Management (SPBM) profile name. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyName - */ - readonly storagePolicyName?: string; - /** - * Path that identifies vSphere volume vmdk - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#volumePath - */ - readonly volumePath: string; -} -/** - * Converts an object of type 'VsphereVirtualDiskVolumeSource' to JSON representation. - */ -export declare function toJson_VsphereVirtualDiskVolumeSource( - obj: VsphereVirtualDiskVolumeSource | undefined, -): Record | undefined; -/** - * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference - */ -export interface TypedLocalObjectReference { - /** - * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference#apiGroup - */ - readonly apiGroup?: string; - /** - * Kind is the type of resource being referenced - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference#kind - */ - readonly kind: string; - /** - * Name is the name of resource being referenced - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference#name - */ - readonly name: string; -} -/** - * Converts an object of type 'TypedLocalObjectReference' to JSON representation. - */ -export declare function toJson_TypedLocalObjectReference( - obj: TypedLocalObjectReference | undefined, -): Record | undefined; -/** - * ResourceRequirements describes the compute resource requirements. - * - * @schema io.k8s.api.core.v1.ResourceRequirements - */ -export interface ResourceRequirements { - /** - * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.ResourceRequirements#limits - */ - readonly limits?: { - [key: string]: Quantity; - }; - /** - * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.ResourceRequirements#requests - */ - readonly requests?: { - [key: string]: Quantity; - }; -} -/** - * Converts an object of type 'ResourceRequirements' to JSON representation. - */ -export declare function toJson_ResourceRequirements( - obj: ResourceRequirements | undefined, -): Record | undefined; -/** - * Affinity is a group of affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.Affinity - */ -export interface Affinity { - /** - * Describes node affinity scheduling rules for the pod. - * - * @schema io.k8s.api.core.v1.Affinity#nodeAffinity - */ - readonly nodeAffinity?: NodeAffinity; - /** - * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema io.k8s.api.core.v1.Affinity#podAffinity - */ - readonly podAffinity?: PodAffinity; - /** - * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema io.k8s.api.core.v1.Affinity#podAntiAffinity - */ - readonly podAntiAffinity?: PodAntiAffinity; -} -/** - * Converts an object of type 'Affinity' to JSON representation. - */ -export declare function toJson_Affinity( - obj: Affinity | undefined, -): Record | undefined; -/** - * A single application container that you want to run within a pod. - * - * @schema io.k8s.api.core.v1.Container - */ -export interface Container { - /** - * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.Container#args - */ - readonly args?: string[]; - /** - * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.Container#command - */ - readonly command?: string[]; - /** - * List of environment variables to set in the container. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#env - */ - readonly env?: EnvVar[]; - /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#envFrom - */ - readonly envFrom?: EnvFromSource[]; - /** - * Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * - * @schema io.k8s.api.core.v1.Container#image - */ - readonly image?: string; - /** - * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * - * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * @schema io.k8s.api.core.v1.Container#imagePullPolicy - */ - readonly imagePullPolicy?: string; - /** - * Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#lifecycle - */ - readonly lifecycle?: Lifecycle; - /** - * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Container#livenessProbe - */ - readonly livenessProbe?: Probe; - /** - * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#name - */ - readonly name: string; - /** - * List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#ports - */ - readonly ports?: ContainerPort[]; - /** - * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Container#readinessProbe - */ - readonly readinessProbe?: Probe; - /** - * Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.Container#resources - */ - readonly resources?: ResourceRequirements; - /** - * SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * - * @schema io.k8s.api.core.v1.Container#securityContext - */ - readonly securityContext?: SecurityContext; - /** - * StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Container#startupProbe - */ - readonly startupProbe?: Probe; - /** - * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.Container#stdin - */ - readonly stdin?: boolean; - /** - * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * - * @default false - * @schema io.k8s.api.core.v1.Container#stdinOnce - */ - readonly stdinOnce?: boolean; - /** - * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * - * @default dev/termination-log. Cannot be updated. - * @schema io.k8s.api.core.v1.Container#terminationMessagePath - */ - readonly terminationMessagePath?: string; - /** - * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * - * @default File. Cannot be updated. - * @schema io.k8s.api.core.v1.Container#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - /** - * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.Container#tty - */ - readonly tty?: boolean; - /** - * volumeDevices is the list of block devices to be used by the container. - * - * @schema io.k8s.api.core.v1.Container#volumeDevices - */ - readonly volumeDevices?: VolumeDevice[]; - /** - * Pod volumes to mount into the container's filesystem. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#volumeMounts - */ - readonly volumeMounts?: VolumeMount[]; - /** - * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#workingDir - */ - readonly workingDir?: string; -} -/** - * Converts an object of type 'Container' to JSON representation. - */ -export declare function toJson_Container( - obj: Container | undefined, -): Record | undefined; -/** - * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. - * - * @schema io.k8s.api.core.v1.PodDNSConfig - */ -export interface PodDnsConfig { - /** - * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * - * @schema io.k8s.api.core.v1.PodDNSConfig#nameservers - */ - readonly nameservers?: string[]; - /** - * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * - * @schema io.k8s.api.core.v1.PodDNSConfig#options - */ - readonly options?: PodDnsConfigOption[]; - /** - * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - * - * @schema io.k8s.api.core.v1.PodDNSConfig#searches - */ - readonly searches?: string[]; -} -/** - * Converts an object of type 'PodDnsConfig' to JSON representation. - */ -export declare function toJson_PodDnsConfig( - obj: PodDnsConfig | undefined, -): Record | undefined; -/** - * An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag. - * - * @schema io.k8s.api.core.v1.EphemeralContainer - */ -export interface EphemeralContainer { - /** - * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.EphemeralContainer#args - */ - readonly args?: string[]; - /** - * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.EphemeralContainer#command - */ - readonly command?: string[]; - /** - * List of environment variables to set in the container. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#env - */ - readonly env?: EnvVar[]; - /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#envFrom - */ - readonly envFrom?: EnvFromSource[]; - /** - * Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * - * @schema io.k8s.api.core.v1.EphemeralContainer#image - */ - readonly image?: string; - /** - * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * - * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * @schema io.k8s.api.core.v1.EphemeralContainer#imagePullPolicy - */ - readonly imagePullPolicy?: string; - /** - * Lifecycle is not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#lifecycle - */ - readonly lifecycle?: Lifecycle; - /** - * Probes are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#livenessProbe - */ - readonly livenessProbe?: Probe; - /** - * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#name - */ - readonly name: string; - /** - * Ports are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#ports - */ - readonly ports?: ContainerPort[]; - /** - * Probes are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#readinessProbe - */ - readonly readinessProbe?: Probe; - /** - * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#resources - */ - readonly resources?: ResourceRequirements; - /** - * Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#securityContext - */ - readonly securityContext?: SecurityContext; - /** - * Probes are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#startupProbe - */ - readonly startupProbe?: Probe; - /** - * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.EphemeralContainer#stdin - */ - readonly stdin?: boolean; - /** - * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * - * @default false - * @schema io.k8s.api.core.v1.EphemeralContainer#stdinOnce - */ - readonly stdinOnce?: boolean; - /** - * If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#targetContainerName - */ - readonly targetContainerName?: string; - /** - * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * - * @default dev/termination-log. Cannot be updated. - * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePath - */ - readonly terminationMessagePath?: string; - /** - * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * - * @default File. Cannot be updated. - * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - /** - * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.EphemeralContainer#tty - */ - readonly tty?: boolean; - /** - * volumeDevices is the list of block devices to be used by the container. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#volumeDevices - */ - readonly volumeDevices?: VolumeDevice[]; - /** - * Pod volumes to mount into the container's filesystem. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#volumeMounts - */ - readonly volumeMounts?: VolumeMount[]; - /** - * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#workingDir - */ - readonly workingDir?: string; -} -/** - * Converts an object of type 'EphemeralContainer' to JSON representation. - */ -export declare function toJson_EphemeralContainer( - obj: EphemeralContainer | undefined, -): Record | undefined; -/** - * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. - * - * @schema io.k8s.api.core.v1.HostAlias - */ -export interface HostAlias { - /** - * Hostnames for the above IP address. - * - * @schema io.k8s.api.core.v1.HostAlias#hostnames - */ - readonly hostnames?: string[]; - /** - * IP address of the host file entry. - * - * @schema io.k8s.api.core.v1.HostAlias#ip - */ - readonly ip?: string; -} -/** - * Converts an object of type 'HostAlias' to JSON representation. - */ -export declare function toJson_HostAlias( - obj: HostAlias | undefined, -): Record | undefined; -/** - * PodReadinessGate contains the reference to a pod condition - * - * @schema io.k8s.api.core.v1.PodReadinessGate - */ -export interface PodReadinessGate { - /** - * ConditionType refers to a condition in the pod's condition list with matching type. - * - * @schema io.k8s.api.core.v1.PodReadinessGate#conditionType - */ - readonly conditionType: string; -} -/** - * Converts an object of type 'PodReadinessGate' to JSON representation. - */ -export declare function toJson_PodReadinessGate( - obj: PodReadinessGate | undefined, -): Record | undefined; -/** - * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. - * - * @schema io.k8s.api.core.v1.PodSecurityContext - */ -export interface PodSecurityContext { - /** - * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - * - * 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - * - * If unset, the Kubelet will not modify the ownership and permissions of any volume. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroup - */ - readonly fsGroup?: number; - /** - * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - /** - * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - /** - * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - /** - * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * - * @default user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * @schema io.k8s.api.core.v1.PodSecurityContext#runAsUser - */ - readonly runAsUser?: number; - /** - * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: SeLinuxOptions; - /** - * The seccomp options to use by the containers in this pod. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#seccompProfile - */ - readonly seccompProfile?: SeccompProfile; - /** - * A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - /** - * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#sysctls - */ - readonly sysctls?: Sysctl[]; - /** - * The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#windowsOptions - */ - readonly windowsOptions?: WindowsSecurityContextOptions; -} -/** - * Converts an object of type 'PodSecurityContext' to JSON representation. - */ -export declare function toJson_PodSecurityContext( - obj: PodSecurityContext | undefined, -): Record | undefined; -/** - * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - * - * @schema io.k8s.api.core.v1.Toleration - */ -export interface Toleration { - /** - * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * - * @schema io.k8s.api.core.v1.Toleration#effect - */ - readonly effect?: string; - /** - * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * - * @schema io.k8s.api.core.v1.Toleration#key - */ - readonly key?: string; - /** - * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * - * @default Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * @schema io.k8s.api.core.v1.Toleration#operator - */ - readonly operator?: string; - /** - * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * - * @schema io.k8s.api.core.v1.Toleration#tolerationSeconds - */ - readonly tolerationSeconds?: number; - /** - * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - * - * @schema io.k8s.api.core.v1.Toleration#value - */ - readonly value?: string; -} -/** - * Converts an object of type 'Toleration' to JSON representation. - */ -export declare function toJson_Toleration( - obj: Toleration | undefined, -): Record | undefined; -/** - * TopologySpreadConstraint specifies how to spread matching pods among the given topology. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint - */ -export interface TopologySpreadConstraint { - /** - * LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#labelSelector - */ - readonly labelSelector?: LabelSelector; - /** - * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#maxSkew - */ - readonly maxSkew: number; - /** - * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#topologyKey - */ - readonly topologyKey: string; - /** - * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, - * but giving higher precedence to topologies that would help reduce the - * skew. - * A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assigment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; -} -/** - * Converts an object of type 'TopologySpreadConstraint' to JSON representation. - */ -export declare function toJson_TopologySpreadConstraint( - obj: TopologySpreadConstraint | undefined, -): Record | undefined; -/** - * Volume represents a named volume in a pod that may be accessed by any container in the pod. - * - * @schema io.k8s.api.core.v1.Volume - */ -export interface Volume { - /** - * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.Volume#awsElasticBlockStore - */ - readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; - /** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.Volume#azureDisk - */ - readonly azureDisk?: AzureDiskVolumeSource; - /** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.Volume#azureFile - */ - readonly azureFile?: AzureFileVolumeSource; - /** - * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.Volume#cephfs - */ - readonly cephfs?: CephFsVolumeSource; - /** - * Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.Volume#cinder - */ - readonly cinder?: CinderVolumeSource; - /** - * ConfigMap represents a configMap that should populate this volume - * - * @schema io.k8s.api.core.v1.Volume#configMap - */ - readonly configMap?: ConfigMapVolumeSource; - /** - * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). - * - * @schema io.k8s.api.core.v1.Volume#csi - */ - readonly csi?: CsiVolumeSource; - /** - * DownwardAPI represents downward API about the pod that should populate this volume - * - * @schema io.k8s.api.core.v1.Volume#downwardAPI - */ - readonly downwardApi?: DownwardApiVolumeSource; - /** - * EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * - * @schema io.k8s.api.core.v1.Volume#emptyDir - */ - readonly emptyDir?: EmptyDirVolumeSource; - /** - * Ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. - * - * Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity - * tracking are needed, - * c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through - * a PersistentVolumeClaim (see EphemeralVolumeSource for more - * information on the connection between this volume type - * and PersistentVolumeClaim). - * - * Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. - * - * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. - * - * A pod can use both types of ephemeral volumes and persistent volumes at the same time. - * - * This is a beta feature and only available when the GenericEphemeralVolume feature gate is enabled. - * - * @schema io.k8s.api.core.v1.Volume#ephemeral - */ - readonly ephemeral?: EphemeralVolumeSource; - /** - * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * - * @schema io.k8s.api.core.v1.Volume#fc - */ - readonly fc?: FcVolumeSource; - /** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.Volume#flexVolume - */ - readonly flexVolume?: FlexVolumeSource; - /** - * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * - * @schema io.k8s.api.core.v1.Volume#flocker - */ - readonly flocker?: FlockerVolumeSource; - /** - * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.Volume#gcePersistentDisk - */ - readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; - /** - * GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * - * @schema io.k8s.api.core.v1.Volume#gitRepo - */ - readonly gitRepo?: GitRepoVolumeSource; - /** - * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * - * @schema io.k8s.api.core.v1.Volume#glusterfs - */ - readonly glusterfs?: GlusterfsVolumeSource; - /** - * HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @schema io.k8s.api.core.v1.Volume#hostPath - */ - readonly hostPath?: HostPathVolumeSource; - /** - * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * - * @schema io.k8s.api.core.v1.Volume#iscsi - */ - readonly iscsi?: IscsiVolumeSource; - /** - * Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.Volume#name - */ - readonly name: string; - /** - * NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.Volume#nfs - */ - readonly nfs?: NfsVolumeSource; - /** - * PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.Volume#persistentVolumeClaim - */ - readonly persistentVolumeClaim?: PersistentVolumeClaimVolumeSource; - /** - * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.Volume#photonPersistentDisk - */ - readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; - /** - * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.Volume#portworxVolume - */ - readonly portworxVolume?: PortworxVolumeSource; - /** - * Items for all in one resources secrets, configmaps, and downward API - * - * @schema io.k8s.api.core.v1.Volume#projected - */ - readonly projected?: ProjectedVolumeSource; - /** - * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.Volume#quobyte - */ - readonly quobyte?: QuobyteVolumeSource; - /** - * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * - * @schema io.k8s.api.core.v1.Volume#rbd - */ - readonly rbd?: RbdVolumeSource; - /** - * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * - * @schema io.k8s.api.core.v1.Volume#scaleIO - */ - readonly scaleIo?: ScaleIoVolumeSource; - /** - * Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * - * @schema io.k8s.api.core.v1.Volume#secret - */ - readonly secret?: SecretVolumeSource; - /** - * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * - * @schema io.k8s.api.core.v1.Volume#storageos - */ - readonly storageos?: StorageOsVolumeSource; - /** - * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.Volume#vsphereVolume - */ - readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; -} -/** - * Converts an object of type 'Volume' to JSON representation. - */ -export declare function toJson_Volume( - obj: Volume | undefined, -): Record | undefined; -/** - * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. - * - * @schema io.k8s.api.core.v1.ScopeSelector - */ -export interface ScopeSelector { - /** - * A list of scope selector requirements by scope of the resources. - * - * @schema io.k8s.api.core.v1.ScopeSelector#matchExpressions - */ - readonly matchExpressions?: ScopedResourceSelectorRequirement[]; -} -/** - * Converts an object of type 'ScopeSelector' to JSON representation. - */ -export declare function toJson_ScopeSelector( - obj: ScopeSelector | undefined, -): Record | undefined; -/** - * ServicePort contains information on service's port. - * - * @schema io.k8s.api.core.v1.ServicePort - */ -export interface ServicePort { - /** - * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. - * - * @schema io.k8s.api.core.v1.ServicePort#appProtocol - */ - readonly appProtocol?: string; - /** - * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. - * - * @schema io.k8s.api.core.v1.ServicePort#name - */ - readonly name?: string; - /** - * The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - * - * @schema io.k8s.api.core.v1.ServicePort#nodePort - */ - readonly nodePort?: number; - /** - * The port that will be exposed by this service. - * - * @schema io.k8s.api.core.v1.ServicePort#port - */ - readonly port: number; - /** - * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - * - * @default TCP. - * @schema io.k8s.api.core.v1.ServicePort#protocol - */ - readonly protocol?: string; - /** - * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - * - * @schema io.k8s.api.core.v1.ServicePort#targetPort - */ - readonly targetPort?: IntOrString; -} -/** - * Converts an object of type 'ServicePort' to JSON representation. - */ -export declare function toJson_ServicePort( - obj: ServicePort | undefined, -): Record | undefined; -/** - * SessionAffinityConfig represents the configurations of session affinity. - * - * @schema io.k8s.api.core.v1.SessionAffinityConfig - */ -export interface SessionAffinityConfig { - /** - * clientIP contains the configurations of Client IP based session affinity. - * - * @schema io.k8s.api.core.v1.SessionAffinityConfig#clientIP - */ - readonly clientIp?: ClientIpConfig; -} -/** - * Converts an object of type 'SessionAffinityConfig' to JSON representation. - */ -export declare function toJson_SessionAffinityConfig( - obj: SessionAffinityConfig | undefined, -): Record | undefined; -/** - * EndpointConditions represents the current condition of an endpoint. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions - */ -export interface EndpointConditions { - /** - * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions#ready - */ - readonly ready?: boolean; - /** - * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions#serving - */ - readonly serving?: boolean; - /** - * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions#terminating - */ - readonly terminating?: boolean; -} -/** - * Converts an object of type 'EndpointConditions' to JSON representation. - */ -export declare function toJson_EndpointConditions( - obj: EndpointConditions | undefined, -): Record | undefined; -/** - * EndpointHints provides hints describing how an endpoint should be consumed. - * - * @schema io.k8s.api.discovery.v1.EndpointHints - */ -export interface EndpointHints { - /** - * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. - * - * @schema io.k8s.api.discovery.v1.EndpointHints#forZones - */ - readonly forZones?: ForZone[]; -} -/** - * Converts an object of type 'EndpointHints' to JSON representation. - */ -export declare function toJson_EndpointHints( - obj: EndpointHints | undefined, -): Record | undefined; -/** - * EndpointConditions represents the current condition of an endpoint. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointConditions - */ -export interface EndpointConditionsV1Beta1 { - /** - * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointConditions#ready - */ - readonly ready?: boolean; - /** - * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointConditions#serving - */ - readonly serving?: boolean; - /** - * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointConditions#terminating - */ - readonly terminating?: boolean; -} -/** - * Converts an object of type 'EndpointConditionsV1Beta1' to JSON representation. - */ -export declare function toJson_EndpointConditionsV1Beta1( - obj: EndpointConditionsV1Beta1 | undefined, -): Record | undefined; -/** - * EndpointHints provides hints describing how an endpoint should be consumed. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointHints - */ -export interface EndpointHintsV1Beta1 { - /** - * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries. - * - * @schema io.k8s.api.discovery.v1beta1.EndpointHints#forZones - */ - readonly forZones?: ForZoneV1Beta1[]; -} -/** - * Converts an object of type 'EndpointHintsV1Beta1' to JSON representation. - */ -export declare function toJson_EndpointHintsV1Beta1( - obj: EndpointHintsV1Beta1 | undefined, -): Record | undefined; -/** - * FlowDistinguisherMethod specifies the method of a flow distinguisher. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod - */ -export interface FlowDistinguisherMethodV1Beta1 { - /** - * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod#type - */ - readonly type: string; -} -/** - * Converts an object of type 'FlowDistinguisherMethodV1Beta1' to JSON representation. - */ -export declare function toJson_FlowDistinguisherMethodV1Beta1( - obj: FlowDistinguisherMethodV1Beta1 | undefined, -): Record | undefined; -/** - * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference - */ -export interface PriorityLevelConfigurationReferenceV1Beta1 { - /** - * `name` is the name of the priority level configuration being referenced Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference#name - */ - readonly name: string; -} -/** - * Converts an object of type 'PriorityLevelConfigurationReferenceV1Beta1' to JSON representation. - */ -export declare function toJson_PriorityLevelConfigurationReferenceV1Beta1( - obj: PriorityLevelConfigurationReferenceV1Beta1 | undefined, -): Record | undefined; -/** - * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects - */ -export interface PolicyRulesWithSubjectsV1Beta1 { - /** - * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#nonResourceRules - */ - readonly nonResourceRules?: NonResourcePolicyRuleV1Beta1[]; - /** - * `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#resourceRules - */ - readonly resourceRules?: ResourcePolicyRuleV1Beta1[]; - /** - * subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#subjects - */ - readonly subjects: SubjectV1Beta1[]; -} -/** - * Converts an object of type 'PolicyRulesWithSubjectsV1Beta1' to JSON representation. - */ -export declare function toJson_PolicyRulesWithSubjectsV1Beta1( - obj: PolicyRulesWithSubjectsV1Beta1 | undefined, -): Record | undefined; -/** - * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - * * How are requests for this priority level limited? - * * What should be done with requests that exceed the limit? - * - * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration - */ -export interface LimitedPriorityLevelConfigurationV1Beta1 { - /** - * `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: - * - * ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - * - * bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. - * - * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration#assuredConcurrencyShares - */ - readonly assuredConcurrencyShares?: number; - /** - * `limitResponse` indicates what to do with requests that can not be executed right now - * - * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration#limitResponse - */ - readonly limitResponse?: LimitResponseV1Beta1; -} -/** - * Converts an object of type 'LimitedPriorityLevelConfigurationV1Beta1' to JSON representation. - */ -export declare function toJson_LimitedPriorityLevelConfigurationV1Beta1( - obj: LimitedPriorityLevelConfigurationV1Beta1 | undefined, -): Record | undefined; -/** - * IngressBackend describes all endpoints for a given service and port. - * - * @schema io.k8s.api.networking.v1.IngressBackend - */ -export interface IngressBackend { - /** - * Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". - * - * @schema io.k8s.api.networking.v1.IngressBackend#resource - */ - readonly resource?: TypedLocalObjectReference; - /** - * Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". - * - * @schema io.k8s.api.networking.v1.IngressBackend#service - */ - readonly service?: IngressServiceBackend; -} -/** - * Converts an object of type 'IngressBackend' to JSON representation. - */ -export declare function toJson_IngressBackend( - obj: IngressBackend | undefined, -): Record | undefined; -/** - * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. - * - * @schema io.k8s.api.networking.v1.IngressRule - */ -export interface IngressRule { - /** - * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - * the IP in the Spec of the parent Ingress. - * 2. The `:` delimiter is not respected because ports are not allowed. - * Currently the port of an Ingress is implicitly :80 for http and - * :443 for https. - * Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - * - * Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * - * @schema io.k8s.api.networking.v1.IngressRule#host - */ - readonly host?: string; - /** - * @schema io.k8s.api.networking.v1.IngressRule#http - */ - readonly http?: HttpIngressRuleValue; -} -/** - * Converts an object of type 'IngressRule' to JSON representation. - */ -export declare function toJson_IngressRule( - obj: IngressRule | undefined, -): Record | undefined; -/** - * IngressTLS describes the transport layer security associated with an Ingress. - * - * @schema io.k8s.api.networking.v1.IngressTLS - */ -export interface IngressTls { - /** - * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * - * @default the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * @schema io.k8s.api.networking.v1.IngressTLS#hosts - */ - readonly hosts?: string[]; - /** - * SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. - * - * @schema io.k8s.api.networking.v1.IngressTLS#secretName - */ - readonly secretName?: string; -} -/** - * Converts an object of type 'IngressTls' to JSON representation. - */ -export declare function toJson_IngressTls( - obj: IngressTls | undefined, -): Record | undefined; -/** - * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference - */ -export interface IngressClassParametersReference { - /** - * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#apiGroup - */ - readonly apiGroup?: string; - /** - * Kind is the type of resource being referenced. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#kind - */ - readonly kind: string; - /** - * Name is the name of resource being referenced. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#name - */ - readonly name: string; - /** - * Namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#namespace - */ - readonly namespace?: string; - /** - * Scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". Field can be enabled with IngressClassNamespacedParams feature gate. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#scope - */ - readonly scope?: string; -} -/** - * Converts an object of type 'IngressClassParametersReference' to JSON representation. - */ -export declare function toJson_IngressClassParametersReference( - obj: IngressClassParametersReference | undefined, -): Record | undefined; -/** - * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 - * - * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule - */ -export interface NetworkPolicyEgressRule { - /** - * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#ports - */ - readonly ports?: NetworkPolicyPort[]; - /** - * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#to - */ - readonly to?: NetworkPolicyPeer[]; -} -/** - * Converts an object of type 'NetworkPolicyEgressRule' to JSON representation. - */ -export declare function toJson_NetworkPolicyEgressRule( - obj: NetworkPolicyEgressRule | undefined, -): Record | undefined; -/** - * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule - */ -export interface NetworkPolicyIngressRule { - /** - * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#from - */ - readonly from?: NetworkPolicyPeer[]; - /** - * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#ports - */ - readonly ports?: NetworkPolicyPort[]; -} -/** - * Converts an object of type 'NetworkPolicyIngressRule' to JSON representation. - */ -export declare function toJson_NetworkPolicyIngressRule( - obj: NetworkPolicyIngressRule | undefined, -): Record | undefined; -/** - * Overhead structure represents the resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1alpha1.Overhead - */ -export interface OverheadV1Alpha1 { - /** - * PodFixed represents the fixed resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1alpha1.Overhead#podFixed - */ - readonly podFixed?: { - [key: string]: Quantity; - }; -} -/** - * Converts an object of type 'OverheadV1Alpha1' to JSON representation. - */ -export declare function toJson_OverheadV1Alpha1( - obj: OverheadV1Alpha1 | undefined, -): Record | undefined; -/** - * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. - * - * @schema io.k8s.api.node.v1alpha1.Scheduling - */ -export interface SchedulingV1Alpha1 { - /** - * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * - * @schema io.k8s.api.node.v1alpha1.Scheduling#nodeSelector - */ - readonly nodeSelector?: { - [key: string]: string; - }; - /** - * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * - * @schema io.k8s.api.node.v1alpha1.Scheduling#tolerations - */ - readonly tolerations?: Toleration[]; -} -/** - * Converts an object of type 'SchedulingV1Alpha1' to JSON representation. - */ -export declare function toJson_SchedulingV1Alpha1( - obj: SchedulingV1Alpha1 | undefined, -): Record | undefined; -/** - * 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 - * - * @schema IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind - */ -export declare enum IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind { - /** DeleteOptions */ - DELETE_OPTIONS = 'DeleteOptions', -} -/** - * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions - */ -export interface Preconditions { - /** - * Specifies the target ResourceVersion - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#resourceVersion - */ - readonly resourceVersion?: string; - /** - * Specifies the target UID. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#uid - */ - readonly uid?: string; -} -/** - * Converts an object of type 'Preconditions' to JSON representation. - */ -export declare function toJson_Preconditions( - obj: Preconditions | undefined, -): Record | undefined; -/** - * @schema io.k8s.apimachinery.pkg.util.intstr.IntOrString - */ -export declare class IntOrString { - readonly value: any; - static fromString(value: string): IntOrString; - static fromNumber(value: number): IntOrString; - private constructor(); -} -/** - * AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. - * - * @schema io.k8s.api.policy.v1beta1.AllowedCSIDriver - */ -export interface AllowedCsiDriverV1Beta1 { - /** - * Name is the registered name of the CSI driver - * - * @schema io.k8s.api.policy.v1beta1.AllowedCSIDriver#name - */ - readonly name: string; -} -/** - * Converts an object of type 'AllowedCsiDriverV1Beta1' to JSON representation. - */ -export declare function toJson_AllowedCsiDriverV1Beta1( - obj: AllowedCsiDriverV1Beta1 | undefined, -): Record | undefined; -/** - * AllowedFlexVolume represents a single Flexvolume that is allowed to be used. - * - * @schema io.k8s.api.policy.v1beta1.AllowedFlexVolume - */ -export interface AllowedFlexVolumeV1Beta1 { - /** - * driver is the name of the Flexvolume driver. - * - * @schema io.k8s.api.policy.v1beta1.AllowedFlexVolume#driver - */ - readonly driver: string; -} -/** - * Converts an object of type 'AllowedFlexVolumeV1Beta1' to JSON representation. - */ -export declare function toJson_AllowedFlexVolumeV1Beta1( - obj: AllowedFlexVolumeV1Beta1 | undefined, -): Record | undefined; -/** - * AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. - * - * @schema io.k8s.api.policy.v1beta1.AllowedHostPath - */ -export interface AllowedHostPathV1Beta1 { - /** - * pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - * - * Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * - * @schema io.k8s.api.policy.v1beta1.AllowedHostPath#pathPrefix - */ - readonly pathPrefix?: string; - /** - * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - * - * @schema io.k8s.api.policy.v1beta1.AllowedHostPath#readOnly - */ - readonly readOnly?: boolean; -} -/** - * Converts an object of type 'AllowedHostPathV1Beta1' to JSON representation. - */ -export declare function toJson_AllowedHostPathV1Beta1( - obj: AllowedHostPathV1Beta1 | undefined, -): Record | undefined; -/** - * FSGroupStrategyOptions defines the strategy type and options used to create the strategy. - * - * @schema io.k8s.api.policy.v1beta1.FSGroupStrategyOptions - */ -export interface FsGroupStrategyOptionsV1Beta1 { - /** - * ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * - * @schema io.k8s.api.policy.v1beta1.FSGroupStrategyOptions#ranges - */ - readonly ranges?: IdRangeV1Beta1[]; - /** - * rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - * - * @schema io.k8s.api.policy.v1beta1.FSGroupStrategyOptions#rule - */ - readonly rule?: string; -} -/** - * Converts an object of type 'FsGroupStrategyOptionsV1Beta1' to JSON representation. - */ -export declare function toJson_FsGroupStrategyOptionsV1Beta1( - obj: FsGroupStrategyOptionsV1Beta1 | undefined, -): Record | undefined; -/** - * HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. - * - * @schema io.k8s.api.policy.v1beta1.HostPortRange - */ -export interface HostPortRangeV1Beta1 { - /** - * max is the end of the range, inclusive. - * - * @schema io.k8s.api.policy.v1beta1.HostPortRange#max - */ - readonly max: number; - /** - * min is the start of the range, inclusive. - * - * @schema io.k8s.api.policy.v1beta1.HostPortRange#min - */ - readonly min: number; -} -/** - * Converts an object of type 'HostPortRangeV1Beta1' to JSON representation. - */ -export declare function toJson_HostPortRangeV1Beta1( - obj: HostPortRangeV1Beta1 | undefined, -): Record | undefined; -/** - * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. - * - * @schema io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions - */ -export interface RunAsGroupStrategyOptionsV1Beta1 { - /** - * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * - * @schema io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions#ranges - */ - readonly ranges?: IdRangeV1Beta1[]; - /** - * rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - * - * @schema io.k8s.api.policy.v1beta1.RunAsGroupStrategyOptions#rule - */ - readonly rule: string; -} -/** - * Converts an object of type 'RunAsGroupStrategyOptionsV1Beta1' to JSON representation. - */ -export declare function toJson_RunAsGroupStrategyOptionsV1Beta1( - obj: RunAsGroupStrategyOptionsV1Beta1 | undefined, -): Record | undefined; -/** - * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. - * - * @schema io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions - */ -export interface RunAsUserStrategyOptionsV1Beta1 { - /** - * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * - * @schema io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions#ranges - */ - readonly ranges?: IdRangeV1Beta1[]; - /** - * rule is the strategy that will dictate the allowable RunAsUser values that may be set. - * - * @schema io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions#rule - */ - readonly rule: string; -} -/** - * Converts an object of type 'RunAsUserStrategyOptionsV1Beta1' to JSON representation. - */ -export declare function toJson_RunAsUserStrategyOptionsV1Beta1( - obj: RunAsUserStrategyOptionsV1Beta1 | undefined, -): Record | undefined; -/** - * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. - * - * @schema io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions - */ -export interface RuntimeClassStrategyOptionsV1Beta1 { - /** - * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * - * @schema io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions#allowedRuntimeClassNames - */ - readonly allowedRuntimeClassNames: string[]; - /** - * defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - * - * @schema io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions#defaultRuntimeClassName - */ - readonly defaultRuntimeClassName?: string; -} -/** - * Converts an object of type 'RuntimeClassStrategyOptionsV1Beta1' to JSON representation. - */ -export declare function toJson_RuntimeClassStrategyOptionsV1Beta1( - obj: RuntimeClassStrategyOptionsV1Beta1 | undefined, -): Record | undefined; -/** - * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. - * - * @schema io.k8s.api.policy.v1beta1.SELinuxStrategyOptions - */ -export interface SeLinuxStrategyOptionsV1Beta1 { - /** - * rule is the strategy that will dictate the allowable labels that may be set. - * - * @schema io.k8s.api.policy.v1beta1.SELinuxStrategyOptions#rule - */ - readonly rule: string; - /** - * seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * - * @schema io.k8s.api.policy.v1beta1.SELinuxStrategyOptions#seLinuxOptions - */ - readonly seLinuxOptions?: SeLinuxOptions; -} -/** - * Converts an object of type 'SeLinuxStrategyOptionsV1Beta1' to JSON representation. - */ -export declare function toJson_SeLinuxStrategyOptionsV1Beta1( - obj: SeLinuxStrategyOptionsV1Beta1 | undefined, -): Record | undefined; -/** - * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. - * - * @schema io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions - */ -export interface SupplementalGroupsStrategyOptionsV1Beta1 { - /** - * ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * - * @schema io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions#ranges - */ - readonly ranges?: IdRangeV1Beta1[]; - /** - * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - * - * @schema io.k8s.api.policy.v1beta1.SupplementalGroupsStrategyOptions#rule - */ - readonly rule?: string; -} -/** - * Converts an object of type 'SupplementalGroupsStrategyOptionsV1Beta1' to JSON representation. - */ -export declare function toJson_SupplementalGroupsStrategyOptionsV1Beta1( - obj: SupplementalGroupsStrategyOptionsV1Beta1 | undefined, -): Record | undefined; -/** - * TokenRequest contains parameters of a service account token. - * - * @schema io.k8s.api.storage.v1.TokenRequest - */ -export interface TokenRequest { - /** - * Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver. - * - * @schema io.k8s.api.storage.v1.TokenRequest#audience - */ - readonly audience: string; - /** - * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". - * - * @schema io.k8s.api.storage.v1.TokenRequest#expirationSeconds - */ - readonly expirationSeconds?: number; -} -/** - * Converts an object of type 'TokenRequest' to JSON representation. - */ -export declare function toJson_TokenRequest( - obj: TokenRequest | undefined, -): Record | undefined; -/** - * CSINodeDriver holds information about the specification of one CSI driver installed on a node - * - * @schema io.k8s.api.storage.v1.CSINodeDriver - */ -export interface CsiNodeDriver { - /** - * allocatable represents the volume resources of a node that are available for scheduling. This field is beta. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#allocatable - */ - readonly allocatable?: VolumeNodeResources; - /** - * This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#name - */ - readonly name: string; - /** - * nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#nodeID - */ - readonly nodeId: string; - /** - * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#topologyKeys - */ - readonly topologyKeys?: string[]; -} -/** - * Converts an object of type 'CsiNodeDriver' to JSON representation. - */ -export declare function toJson_CsiNodeDriver( - obj: CsiNodeDriver | undefined, -): Record | undefined; -/** - * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. - * - * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement - */ -export interface TopologySelectorLabelRequirement { - /** - * The label key that the selector applies to. - * - * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#key - */ - readonly key: string; - /** - * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - * - * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#values - */ - readonly values: string[]; -} -/** - * Converts an object of type 'TopologySelectorLabelRequirement' to JSON representation. - */ -export declare function toJson_TopologySelectorLabelRequirement( - obj: TopologySelectorLabelRequirement | undefined, -): Record | undefined; -/** - * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSource - */ -export interface VolumeAttachmentSource { - /** - * inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#inlineVolumeSpec - */ - readonly inlineVolumeSpec?: PersistentVolumeSpec; - /** - * Name of the persistent volume to attach. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#persistentVolumeName - */ - readonly persistentVolumeName?: string; -} -/** - * Converts an object of type 'VolumeAttachmentSource' to JSON representation. - */ -export declare function toJson_VolumeAttachmentSource( - obj: VolumeAttachmentSource | undefined, -): Record | undefined; -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement - */ -export interface LabelSelectorRequirement { - /** - * key is the label key that the selector applies to. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#key - */ - readonly key: string; - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#operator - */ - readonly operator: string; - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#values - */ - readonly values?: string[]; -} -/** - * Converts an object of type 'LabelSelectorRequirement' to JSON representation. - */ -export declare function toJson_LabelSelectorRequirement( - obj: LabelSelectorRequirement | undefined, -): Record | undefined; -/** - * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSource - */ -export interface VolumeAttachmentSourceV1Alpha1 { - /** - * inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSource#inlineVolumeSpec - */ - readonly inlineVolumeSpec?: PersistentVolumeSpec; - /** - * Name of the persistent volume to attach. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttachmentSource#persistentVolumeName - */ - readonly persistentVolumeName?: string; -} -/** - * Converts an object of type 'VolumeAttachmentSourceV1Alpha1' to JSON representation. - */ -export declare function toJson_VolumeAttachmentSourceV1Alpha1( - obj: VolumeAttachmentSourceV1Alpha1 | undefined, -): Record | undefined; -/** - * CustomResourceConversion describes how to convert different versions of a CR. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion - */ -export interface CustomResourceConversion { - /** - * strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - * is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#strategy - */ - readonly strategy: string; - /** - * webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#webhook - */ - readonly webhook?: WebhookConversion; -} -/** - * Converts an object of type 'CustomResourceConversion' to JSON representation. - */ -export declare function toJson_CustomResourceConversion( - obj: CustomResourceConversion | undefined, -): Record | undefined; -/** - * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames - */ -export interface CustomResourceDefinitionNames { - /** - * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#categories - */ - readonly categories?: string[]; - /** - * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#kind - */ - readonly kind: string; - /** - * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * - * @default kind`List". - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#listKind - */ - readonly listKind?: string; - /** - * plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#plural - */ - readonly plural: string; - /** - * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#shortNames - */ - readonly shortNames?: string[]; - /** - * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - * - * @default lowercased `kind`. - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#singular - */ - readonly singular?: string; -} -/** - * Converts an object of type 'CustomResourceDefinitionNames' to JSON representation. - */ -export declare function toJson_CustomResourceDefinitionNames( - obj: CustomResourceDefinitionNames | undefined, -): Record | undefined; -/** - * CustomResourceDefinitionVersion describes a version for CRD. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion - */ -export interface CustomResourceDefinitionVersion { - /** - * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#additionalPrinterColumns - */ - readonly additionalPrinterColumns?: CustomResourceColumnDefinition[]; - /** - * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. - * - * @default false. - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecated - */ - readonly deprecated?: boolean; - /** - * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecationWarning - */ - readonly deprecationWarning?: string; - /** - * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#name - */ - readonly name: string; - /** - * schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#schema - */ - readonly schema?: CustomResourceValidation; - /** - * served is a flag enabling/disabling this version from being served via REST APIs - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#served - */ - readonly served: boolean; - /** - * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#storage - */ - readonly storage: boolean; - /** - * subresources specify what subresources this version of the defined custom resource have. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#subresources - */ - readonly subresources?: CustomResourceSubresources; -} -/** - * Converts an object of type 'CustomResourceDefinitionVersion' to JSON representation. - */ -export declare function toJson_CustomResourceDefinitionVersion( - obj: CustomResourceDefinitionVersion | undefined, -): Record | undefined; -/** - * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause - */ -export interface StatusCause { - /** - * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. - * - * Examples: - * "name" - the field "name" on the current resource - * "items[0].name" - the field "name" on the first array entry in "items" - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#field - */ - readonly field?: string; - /** - * A human-readable description of the cause of the error. This field may be presented as-is to a reader. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#message - */ - readonly message?: string; - /** - * A machine-readable description of the cause of the error. If this value is empty there is no information available. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#reason - */ - readonly reason?: string; -} -/** - * Converts an object of type 'StatusCause' to JSON representation. - */ -export declare function toJson_StatusCause( - obj: StatusCause | undefined, -): Record | undefined; -/** - * ServiceReference holds a reference to Service.legacy.k8s.io - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference - */ -export interface ServiceReference { - /** - * `name` is the name of the service. Required - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#name - */ - readonly name: string; - /** - * `namespace` is the namespace of the service. Required - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#namespace - */ - readonly namespace: string; - /** - * `path` is an optional URL path which will be sent in any request to this service. - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#path - */ - readonly path?: string; - /** - * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - * - * @default 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#port - */ - readonly port?: number; -} -/** - * Converts an object of type 'ServiceReference' to JSON representation. - */ -export declare function toJson_ServiceReference( - obj: ServiceReference | undefined, -): Record | undefined; -/** - * Spec to control the desired behavior of daemon set rolling update. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet - */ -export interface RollingUpdateDaemonSet { - /** - * The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxSurge - */ - readonly maxSurge?: IntOrString; - /** - * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; -} -/** - * Converts an object of type 'RollingUpdateDaemonSet' to JSON representation. - */ -export declare function toJson_RollingUpdateDaemonSet( - obj: RollingUpdateDaemonSet | undefined, -): Record | undefined; -/** - * Spec to control the desired behavior of rolling update. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDeployment - */ -export interface RollingUpdateDeployment { - /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * - * @default 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxSurge - */ - readonly maxSurge?: IntOrString; - /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - * - * @default 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; -} -/** - * Converts an object of type 'RollingUpdateDeployment' to JSON representation. - */ -export declare function toJson_RollingUpdateDeployment( - obj: RollingUpdateDeployment | undefined, -): Record | undefined; -/** - * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. - * - * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy - */ -export interface RollingUpdateStatefulSetStrategy { - /** - * Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - * - * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#partition - */ - readonly partition?: number; -} -/** - * Converts an object of type 'RollingUpdateStatefulSetStrategy' to JSON representation. - */ -export declare function toJson_RollingUpdateStatefulSetStrategy( - obj: RollingUpdateStatefulSetStrategy | undefined, -): Record | undefined; -/** - * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource - */ -export interface ContainerResourceMetricSourceV2Beta1 { - /** - * container is the name of the container in the pods of the scaling target - * - * @schema io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource#container - */ - readonly container: string; - /** - * name is the name of the resource in question. - * - * @schema io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource#name - */ - readonly name: string; - /** - * targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * - * @schema io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource#targetAverageUtilization - */ - readonly targetAverageUtilization?: number; - /** - * targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - * - * @schema io.k8s.api.autoscaling.v2beta1.ContainerResourceMetricSource#targetAverageValue - */ - readonly targetAverageValue?: Quantity; -} -/** - * Converts an object of type 'ContainerResourceMetricSourceV2Beta1' to JSON representation. - */ -export declare function toJson_ContainerResourceMetricSourceV2Beta1( - obj: ContainerResourceMetricSourceV2Beta1 | undefined, -): Record | undefined; -/** - * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2beta1.ExternalMetricSource - */ -export interface ExternalMetricSourceV2Beta1 { - /** - * metricName is the name of the metric in question. - * - * @schema io.k8s.api.autoscaling.v2beta1.ExternalMetricSource#metricName - */ - readonly metricName: string; - /** - * metricSelector is used to identify a specific time series within a given metric. - * - * @schema io.k8s.api.autoscaling.v2beta1.ExternalMetricSource#metricSelector - */ - readonly metricSelector?: LabelSelector; - /** - * targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. - * - * @schema io.k8s.api.autoscaling.v2beta1.ExternalMetricSource#targetAverageValue - */ - readonly targetAverageValue?: Quantity; - /** - * targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. - * - * @schema io.k8s.api.autoscaling.v2beta1.ExternalMetricSource#targetValue - */ - readonly targetValue?: Quantity; -} -/** - * Converts an object of type 'ExternalMetricSourceV2Beta1' to JSON representation. - */ -export declare function toJson_ExternalMetricSourceV2Beta1( - obj: ExternalMetricSourceV2Beta1 | undefined, -): Record | undefined; -/** - * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - * - * @schema io.k8s.api.autoscaling.v2beta1.ObjectMetricSource - */ -export interface ObjectMetricSourceV2Beta1 { - /** - * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * - * @schema io.k8s.api.autoscaling.v2beta1.ObjectMetricSource#averageValue - */ - readonly averageValue?: Quantity; - /** - * metricName is the name of the metric in question. - * - * @schema io.k8s.api.autoscaling.v2beta1.ObjectMetricSource#metricName - */ - readonly metricName: string; - /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * - * @schema io.k8s.api.autoscaling.v2beta1.ObjectMetricSource#selector - */ - readonly selector?: LabelSelector; - /** - * target is the described Kubernetes object. - * - * @schema io.k8s.api.autoscaling.v2beta1.ObjectMetricSource#target - */ - readonly target: CrossVersionObjectReferenceV2Beta1; - /** - * targetValue is the target value of the metric (as a quantity). - * - * @schema io.k8s.api.autoscaling.v2beta1.ObjectMetricSource#targetValue - */ - readonly targetValue: Quantity; -} -/** - * Converts an object of type 'ObjectMetricSourceV2Beta1' to JSON representation. - */ -export declare function toJson_ObjectMetricSourceV2Beta1( - obj: ObjectMetricSourceV2Beta1 | undefined, -): Record | undefined; -/** - * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * - * @schema io.k8s.api.autoscaling.v2beta1.PodsMetricSource - */ -export interface PodsMetricSourceV2Beta1 { - /** - * metricName is the name of the metric in question - * - * @schema io.k8s.api.autoscaling.v2beta1.PodsMetricSource#metricName - */ - readonly metricName: string; - /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * - * @schema io.k8s.api.autoscaling.v2beta1.PodsMetricSource#selector - */ - readonly selector?: LabelSelector; - /** - * targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * - * @schema io.k8s.api.autoscaling.v2beta1.PodsMetricSource#targetAverageValue - */ - readonly targetAverageValue: Quantity; -} -/** - * Converts an object of type 'PodsMetricSourceV2Beta1' to JSON representation. - */ -export declare function toJson_PodsMetricSourceV2Beta1( - obj: PodsMetricSourceV2Beta1 | undefined, -): Record | undefined; -/** - * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2beta1.ResourceMetricSource - */ -export interface ResourceMetricSourceV2Beta1 { - /** - * name is the name of the resource in question. - * - * @schema io.k8s.api.autoscaling.v2beta1.ResourceMetricSource#name - */ - readonly name: string; - /** - * targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * - * @schema io.k8s.api.autoscaling.v2beta1.ResourceMetricSource#targetAverageUtilization - */ - readonly targetAverageUtilization?: number; - /** - * targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - * - * @schema io.k8s.api.autoscaling.v2beta1.ResourceMetricSource#targetAverageValue - */ - readonly targetAverageValue?: Quantity; -} -/** - * Converts an object of type 'ResourceMetricSourceV2Beta1' to JSON representation. - */ -export declare function toJson_ResourceMetricSourceV2Beta1( - obj: ResourceMetricSourceV2Beta1 | undefined, -): Record | undefined; -/** - * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules - */ -export interface HpaScalingRulesV2Beta2 { - /** - * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#policies - */ - readonly policies?: HpaScalingPolicyV2Beta2[]; - /** - * selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#selectPolicy - */ - readonly selectPolicy?: string; - /** - * StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#stabilizationWindowSeconds - */ - readonly stabilizationWindowSeconds?: number; -} -/** - * Converts an object of type 'HpaScalingRulesV2Beta2' to JSON representation. - */ -export declare function toJson_HpaScalingRulesV2Beta2( - obj: HpaScalingRulesV2Beta2 | undefined, -): Record | undefined; -/** - * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource - */ -export interface ContainerResourceMetricSourceV2Beta2 { - /** - * container is the name of the container in the pods of the scaling target - * - * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#container - */ - readonly container: string; - /** - * name is the name of the resource in question. - * - * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#name - */ - readonly name: string; - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#target - */ - readonly target: MetricTargetV2Beta2; -} -/** - * Converts an object of type 'ContainerResourceMetricSourceV2Beta2' to JSON representation. - */ -export declare function toJson_ContainerResourceMetricSourceV2Beta2( - obj: ContainerResourceMetricSourceV2Beta2 | undefined, -): Record | undefined; -/** - * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - * - * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource - */ -export interface ExternalMetricSourceV2Beta2 { - /** - * metric identifies the target metric by name and selector - * - * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#metric - */ - readonly metric: MetricIdentifierV2Beta2; - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#target - */ - readonly target: MetricTargetV2Beta2; -} -/** - * Converts an object of type 'ExternalMetricSourceV2Beta2' to JSON representation. - */ -export declare function toJson_ExternalMetricSourceV2Beta2( - obj: ExternalMetricSourceV2Beta2 | undefined, -): Record | undefined; -/** - * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - * - * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource - */ -export interface ObjectMetricSourceV2Beta2 { - /** - * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#describedObject - */ - readonly describedObject: CrossVersionObjectReferenceV2Beta2; - /** - * metric identifies the target metric by name and selector - * - * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#metric - */ - readonly metric: MetricIdentifierV2Beta2; - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#target - */ - readonly target: MetricTargetV2Beta2; -} -/** - * Converts an object of type 'ObjectMetricSourceV2Beta2' to JSON representation. - */ -export declare function toJson_ObjectMetricSourceV2Beta2( - obj: ObjectMetricSourceV2Beta2 | undefined, -): Record | undefined; -/** - * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * - * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource - */ -export interface PodsMetricSourceV2Beta2 { - /** - * metric identifies the target metric by name and selector - * - * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource#metric - */ - readonly metric: MetricIdentifierV2Beta2; - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource#target - */ - readonly target: MetricTargetV2Beta2; -} -/** - * Converts an object of type 'PodsMetricSourceV2Beta2' to JSON representation. - */ -export declare function toJson_PodsMetricSourceV2Beta2( - obj: PodsMetricSourceV2Beta2 | undefined, -): Record | undefined; -/** - * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource - */ -export interface ResourceMetricSourceV2Beta2 { - /** - * name is the name of the resource in question. - * - * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#name - */ - readonly name: string; - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#target - */ - readonly target: MetricTargetV2Beta2; -} -/** - * Converts an object of type 'ResourceMetricSourceV2Beta2' to JSON representation. - */ -export declare function toJson_ResourceMetricSourceV2Beta2( - obj: ResourceMetricSourceV2Beta2 | undefined, -): Record | undefined; -/** - * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource - */ -export interface ConfigMapNodeConfigSource { - /** - * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#kubeletConfigKey - */ - readonly kubeletConfigKey: string; - /** - * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#name - */ - readonly name: string; - /** - * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#namespace - */ - readonly namespace: string; - /** - * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#resourceVersion - */ - readonly resourceVersion?: string; - /** - * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#uid - */ - readonly uid?: string; -} -/** - * Converts an object of type 'ConfigMapNodeConfigSource' to JSON representation. - */ -export declare function toJson_ConfigMapNodeConfigSource( - obj: ConfigMapNodeConfigSource | undefined, -): Record | undefined; -/** - * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace - * - * @schema io.k8s.api.core.v1.SecretReference - */ -export interface SecretReference { - /** - * Name is unique within a namespace to reference a secret resource. - * - * @schema io.k8s.api.core.v1.SecretReference#name - */ - readonly name?: string; - /** - * Namespace defines the space within which the secret name must be unique. - * - * @schema io.k8s.api.core.v1.SecretReference#namespace - */ - readonly namespace?: string; -} -/** - * Converts an object of type 'SecretReference' to JSON representation. - */ -export declare function toJson_SecretReference( - obj: SecretReference | undefined, -): Record | undefined; -/** - * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. - * - * @schema io.k8s.api.core.v1.NodeSelector - */ -export interface NodeSelector { - /** - * Required. A list of node selector terms. The terms are ORed. - * - * @schema io.k8s.api.core.v1.NodeSelector#nodeSelectorTerms - */ - readonly nodeSelectorTerms: NodeSelectorTerm[]; -} -/** - * Converts an object of type 'NodeSelector' to JSON representation. - */ -export declare function toJson_NodeSelector( - obj: NodeSelector | undefined, -): Record | undefined; -/** - * Node affinity is a group of node affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.NodeAffinity - */ -export interface NodeAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * - * @schema io.k8s.api.core.v1.NodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]; - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * - * @schema io.k8s.api.core.v1.NodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector; -} -/** - * Converts an object of type 'NodeAffinity' to JSON representation. - */ -export declare function toJson_NodeAffinity( - obj: NodeAffinity | undefined, -): Record | undefined; -/** - * Pod affinity is a group of inter pod affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.PodAffinity - */ -export interface PodAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * - * @schema io.k8s.api.core.v1.PodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * - * @schema io.k8s.api.core.v1.PodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; -} -/** - * Converts an object of type 'PodAffinity' to JSON representation. - */ -export declare function toJson_PodAffinity( - obj: PodAffinity | undefined, -): Record | undefined; -/** - * Pod anti affinity is a group of inter pod anti affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.PodAntiAffinity - */ -export interface PodAntiAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * - * @schema io.k8s.api.core.v1.PodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; - /** - * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * - * @schema io.k8s.api.core.v1.PodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; -} -/** - * Converts an object of type 'PodAntiAffinity' to JSON representation. - */ -export declare function toJson_PodAntiAffinity( - obj: PodAntiAffinity | undefined, -): Record | undefined; -/** - * EnvVar represents an environment variable present in a Container. - * - * @schema io.k8s.api.core.v1.EnvVar - */ -export interface EnvVar { - /** - * Name of the environment variable. Must be a C_IDENTIFIER. - * - * @schema io.k8s.api.core.v1.EnvVar#name - */ - readonly name: string; - /** - * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * - * @default . - * @schema io.k8s.api.core.v1.EnvVar#value - */ - readonly value?: string; - /** - * Source for the environment variable's value. Cannot be used if value is not empty. - * - * @schema io.k8s.api.core.v1.EnvVar#valueFrom - */ - readonly valueFrom?: EnvVarSource; -} -/** - * Converts an object of type 'EnvVar' to JSON representation. - */ -export declare function toJson_EnvVar( - obj: EnvVar | undefined, -): Record | undefined; -/** - * EnvFromSource represents the source of a set of ConfigMaps - * - * @schema io.k8s.api.core.v1.EnvFromSource - */ -export interface EnvFromSource { - /** - * The ConfigMap to select from - * - * @schema io.k8s.api.core.v1.EnvFromSource#configMapRef - */ - readonly configMapRef?: ConfigMapEnvSource; - /** - * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * - * @schema io.k8s.api.core.v1.EnvFromSource#prefix - */ - readonly prefix?: string; - /** - * The Secret to select from - * - * @schema io.k8s.api.core.v1.EnvFromSource#secretRef - */ - readonly secretRef?: SecretEnvSource; -} -/** - * Converts an object of type 'EnvFromSource' to JSON representation. - */ -export declare function toJson_EnvFromSource( - obj: EnvFromSource | undefined, -): Record | undefined; -/** - * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. - * - * @schema io.k8s.api.core.v1.Lifecycle - */ -export interface Lifecycle { - /** - * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * - * @schema io.k8s.api.core.v1.Lifecycle#postStart - */ - readonly postStart?: Handler; - /** - * PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * - * @schema io.k8s.api.core.v1.Lifecycle#preStop - */ - readonly preStop?: Handler; -} -/** - * Converts an object of type 'Lifecycle' to JSON representation. - */ -export declare function toJson_Lifecycle( - obj: Lifecycle | undefined, -): Record | undefined; -/** - * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. - * - * @schema io.k8s.api.core.v1.Probe - */ -export interface Probe { - /** - * One and only one of the following should be specified. Exec specifies the action to take. - * - * @schema io.k8s.api.core.v1.Probe#exec - */ - readonly exec?: ExecAction; - /** - * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * - * @default 3. Minimum value is 1. - * @schema io.k8s.api.core.v1.Probe#failureThreshold - */ - readonly failureThreshold?: number; - /** - * HTTPGet specifies the http request to perform. - * - * @schema io.k8s.api.core.v1.Probe#httpGet - */ - readonly httpGet?: HttpGetAction; - /** - * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Probe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - /** - * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * - * @default 10 seconds. Minimum value is 1. - * @schema io.k8s.api.core.v1.Probe#periodSeconds - */ - readonly periodSeconds?: number; - /** - * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * - * @default 1. Must be 1 for liveness and startup. Minimum value is 1. - * @schema io.k8s.api.core.v1.Probe#successThreshold - */ - readonly successThreshold?: number; - /** - * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * - * @schema io.k8s.api.core.v1.Probe#tcpSocket - */ - readonly tcpSocket?: TcpSocketAction; - /** - * Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. - * - * @schema io.k8s.api.core.v1.Probe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - /** - * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @default 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * @schema io.k8s.api.core.v1.Probe#timeoutSeconds - */ - readonly timeoutSeconds?: number; -} -/** - * Converts an object of type 'Probe' to JSON representation. - */ -export declare function toJson_Probe( - obj: Probe | undefined, -): Record | undefined; -/** - * ContainerPort represents a network port in a single container. - * - * @schema io.k8s.api.core.v1.ContainerPort - */ -export interface ContainerPort { - /** - * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * - * @schema io.k8s.api.core.v1.ContainerPort#containerPort - */ - readonly containerPort: number; - /** - * What host IP to bind the external port to. - * - * @schema io.k8s.api.core.v1.ContainerPort#hostIP - */ - readonly hostIp?: string; - /** - * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * - * @schema io.k8s.api.core.v1.ContainerPort#hostPort - */ - readonly hostPort?: number; - /** - * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * - * @schema io.k8s.api.core.v1.ContainerPort#name - */ - readonly name?: string; - /** - * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - * - * @default TCP". - * @schema io.k8s.api.core.v1.ContainerPort#protocol - */ - readonly protocol?: string; -} -/** - * Converts an object of type 'ContainerPort' to JSON representation. - */ -export declare function toJson_ContainerPort( - obj: ContainerPort | undefined, -): Record | undefined; -/** - * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext - */ -export interface SecurityContext { - /** - * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * - * @schema io.k8s.api.core.v1.SecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - /** - * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * - * @default the default set of capabilities granted by the container runtime. - * @schema io.k8s.api.core.v1.SecurityContext#capabilities - */ - readonly capabilities?: Capabilities; - /** - * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.SecurityContext#privileged - */ - readonly privileged?: boolean; - /** - * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * - * @schema io.k8s.api.core.v1.SecurityContext#procMount - */ - readonly procMount?: string; - /** - * Whether this container has a read-only root filesystem. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.SecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - /** - * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - /** - * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - /** - * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @default user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @schema io.k8s.api.core.v1.SecurityContext#runAsUser - */ - readonly runAsUser?: number; - /** - * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: SeLinuxOptions; - /** - * The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. - * - * @schema io.k8s.api.core.v1.SecurityContext#seccompProfile - */ - readonly seccompProfile?: SeccompProfile; - /** - * The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext#windowsOptions - */ - readonly windowsOptions?: WindowsSecurityContextOptions; -} -/** - * Converts an object of type 'SecurityContext' to JSON representation. - */ -export declare function toJson_SecurityContext( - obj: SecurityContext | undefined, -): Record | undefined; -/** - * volumeDevice describes a mapping of a raw block device within a container. - * - * @schema io.k8s.api.core.v1.VolumeDevice - */ -export interface VolumeDevice { - /** - * devicePath is the path inside of the container that the device will be mapped to. - * - * @schema io.k8s.api.core.v1.VolumeDevice#devicePath - */ - readonly devicePath: string; - /** - * name must match the name of a persistentVolumeClaim in the pod - * - * @schema io.k8s.api.core.v1.VolumeDevice#name - */ - readonly name: string; -} -/** - * Converts an object of type 'VolumeDevice' to JSON representation. - */ -export declare function toJson_VolumeDevice( - obj: VolumeDevice | undefined, -): Record | undefined; -/** - * VolumeMount describes a mounting of a Volume within a container. - * - * @schema io.k8s.api.core.v1.VolumeMount - */ -export interface VolumeMount { - /** - * Path within the container at which the volume should be mounted. Must not contain ':'. - * - * @schema io.k8s.api.core.v1.VolumeMount#mountPath - */ - readonly mountPath: string; - /** - * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * - * @schema io.k8s.api.core.v1.VolumeMount#mountPropagation - */ - readonly mountPropagation?: string; - /** - * This must match the Name of a Volume. - * - * @schema io.k8s.api.core.v1.VolumeMount#name - */ - readonly name: string; - /** - * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.VolumeMount#readOnly - */ - readonly readOnly?: boolean; - /** - * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * - * @default volume's root). - * @schema io.k8s.api.core.v1.VolumeMount#subPath - */ - readonly subPath?: string; - /** - * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - * - * @default volume's root). SubPathExpr and SubPath are mutually exclusive. - * @schema io.k8s.api.core.v1.VolumeMount#subPathExpr - */ - readonly subPathExpr?: string; -} -/** - * Converts an object of type 'VolumeMount' to JSON representation. - */ -export declare function toJson_VolumeMount( - obj: VolumeMount | undefined, -): Record | undefined; -/** - * PodDNSConfigOption defines DNS resolver options of a pod. - * - * @schema io.k8s.api.core.v1.PodDNSConfigOption - */ -export interface PodDnsConfigOption { - /** - * Required. - * - * @schema io.k8s.api.core.v1.PodDNSConfigOption#name - */ - readonly name?: string; - /** - * @schema io.k8s.api.core.v1.PodDNSConfigOption#value - */ - readonly value?: string; -} -/** - * Converts an object of type 'PodDnsConfigOption' to JSON representation. - */ -export declare function toJson_PodDnsConfigOption( - obj: PodDnsConfigOption | undefined, -): Record | undefined; -/** - * SELinuxOptions are the labels to be applied to the container - * - * @schema io.k8s.api.core.v1.SELinuxOptions - */ -export interface SeLinuxOptions { - /** - * Level is SELinux level label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#level - */ - readonly level?: string; - /** - * Role is a SELinux role label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#role - */ - readonly role?: string; - /** - * Type is a SELinux type label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#type - */ - readonly type?: string; - /** - * User is a SELinux user label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#user - */ - readonly user?: string; -} -/** - * Converts an object of type 'SeLinuxOptions' to JSON representation. - */ -export declare function toJson_SeLinuxOptions( - obj: SeLinuxOptions | undefined, -): Record | undefined; -/** - * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. - * - * @schema io.k8s.api.core.v1.SeccompProfile - */ -export interface SeccompProfile { - /** - * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost". - * - * @schema io.k8s.api.core.v1.SeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - /** - * type indicates which kind of seccomp profile will be applied. Valid options are: - * - * Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. - * - * @schema io.k8s.api.core.v1.SeccompProfile#type - */ - readonly type: string; -} -/** - * Converts an object of type 'SeccompProfile' to JSON representation. - */ -export declare function toJson_SeccompProfile( - obj: SeccompProfile | undefined, -): Record | undefined; -/** - * Sysctl defines a kernel parameter to be set - * - * @schema io.k8s.api.core.v1.Sysctl - */ -export interface Sysctl { - /** - * Name of a property to set - * - * @schema io.k8s.api.core.v1.Sysctl#name - */ - readonly name: string; - /** - * Value of a property to set - * - * @schema io.k8s.api.core.v1.Sysctl#value - */ - readonly value: string; -} -/** - * Converts an object of type 'Sysctl' to JSON representation. - */ -export declare function toJson_Sysctl( - obj: Sysctl | undefined, -): Record | undefined; -/** - * WindowsSecurityContextOptions contain Windows-specific options and credentials. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions - */ -export interface WindowsSecurityContextOptions { - /** - * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - /** - * GMSACredentialSpecName is the name of the GMSA credential spec to use. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - /** - * HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#hostProcess - */ - readonly hostProcess?: boolean; - /** - * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @default the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#runAsUserName - */ - readonly runAsUserName?: string; -} -/** - * Converts an object of type 'WindowsSecurityContextOptions' to JSON representation. - */ -export declare function toJson_WindowsSecurityContextOptions( - obj: WindowsSecurityContextOptions | undefined, -): Record | undefined; -/** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource - */ -export interface AzureFileVolumeSource { - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.AzureFileVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * the name of secret that contains Azure Storage Account Name and Key - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource#secretName - */ - readonly secretName: string; - /** - * Share Name - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource#shareName - */ - readonly shareName: string; -} -/** - * Converts an object of type 'AzureFileVolumeSource' to JSON representation. - */ -export declare function toJson_AzureFileVolumeSource( - obj: AzureFileVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource - */ -export interface CephFsVolumeSource { - /** - * Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#monitors - */ - readonly monitors: string[]; - /** - * Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#path - */ - readonly path?: string; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.CephFSVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretFile - */ - readonly secretFile?: string; - /** - * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - /** - * Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#user - */ - readonly user?: string; -} -/** - * Converts an object of type 'CephFsVolumeSource' to JSON representation. - */ -export declare function toJson_CephFsVolumeSource( - obj: CephFsVolumeSource | undefined, -): Record | undefined; -/** - * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CinderVolumeSource - */ -export interface CinderVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * @schema io.k8s.api.core.v1.CinderVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: points to a secret object containing parameters used to connect to OpenStack. - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - /** - * volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#volumeID - */ - readonly volumeId: string; -} -/** - * Converts an object of type 'CinderVolumeSource' to JSON representation. - */ -export declare function toJson_CinderVolumeSource( - obj: CinderVolumeSource | undefined, -): Record | undefined; -/** - * Adapts a ConfigMap into a volume. - * - * The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource - */ -export interface ConfigMapVolumeSource { - /** - * Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#defaultMode - */ - readonly defaultMode?: number; - /** - * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#items - */ - readonly items?: KeyToPath[]; - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#name - */ - readonly name?: string; - /** - * Specify whether the ConfigMap or its keys must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'ConfigMapVolumeSource' to JSON representation. - */ -export declare function toJson_ConfigMapVolumeSource( - obj: ConfigMapVolumeSource | undefined, -): Record | undefined; -/** - * Represents a source location of a volume to mount, managed by an external CSI driver - * - * @schema io.k8s.api.core.v1.CSIVolumeSource - */ -export interface CsiVolumeSource { - /** - * Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#driver - */ - readonly driver: string; - /** - * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#fsType - */ - readonly fsType?: string; - /** - * NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#nodePublishSecretRef - */ - readonly nodePublishSecretRef?: LocalObjectReference; - /** - * Specifies a read-only configuration for the volume. Defaults to false (read/write). - * - * @default false (read/write). - * @schema io.k8s.api.core.v1.CSIVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#volumeAttributes - */ - readonly volumeAttributes?: { - [key: string]: string; - }; -} -/** - * Converts an object of type 'CsiVolumeSource' to JSON representation. - */ -export declare function toJson_CsiVolumeSource( - obj: CsiVolumeSource | undefined, -): Record | undefined; -/** - * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource - */ -export interface DownwardApiVolumeSource { - /** - * Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#defaultMode - */ - readonly defaultMode?: number; - /** - * Items is a list of downward API volume file - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#items - */ - readonly items?: DownwardApiVolumeFile[]; -} -/** - * Converts an object of type 'DownwardApiVolumeSource' to JSON representation. - */ -export declare function toJson_DownwardApiVolumeSource( - obj: DownwardApiVolumeSource | undefined, -): Record | undefined; -/** - * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.EmptyDirVolumeSource - */ -export interface EmptyDirVolumeSource { - /** - * What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * - * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#medium - */ - readonly medium?: string; - /** - * Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - * - * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#sizeLimit - */ - readonly sizeLimit?: Quantity; -} -/** - * Converts an object of type 'EmptyDirVolumeSource' to JSON representation. - */ -export declare function toJson_EmptyDirVolumeSource( - obj: EmptyDirVolumeSource | undefined, -): Record | undefined; -/** - * Represents an ephemeral volume that is handled by a normal storage driver. - * - * @schema io.k8s.api.core.v1.EphemeralVolumeSource - */ -export interface EphemeralVolumeSource { - /** - * Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long). - * - * An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster. - * - * This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created. - * - * Required, must not be nil. - * - * @schema io.k8s.api.core.v1.EphemeralVolumeSource#volumeClaimTemplate - */ - readonly volumeClaimTemplate?: PersistentVolumeClaimTemplate; -} -/** - * Converts an object of type 'EphemeralVolumeSource' to JSON representation. - */ -export declare function toJson_EphemeralVolumeSource( - obj: EphemeralVolumeSource | undefined, -): Record | undefined; -/** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource - */ -export interface FlexVolumeSource { - /** - * Driver is the name of the driver to use for this volume. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#driver - */ - readonly driver: string; - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Optional: Extra command options if any. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#options - */ - readonly options?: { - [key: string]: string; - }; - /** - * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.FlexVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; -} -/** - * Converts an object of type 'FlexVolumeSource' to JSON representation. - */ -export declare function toJson_FlexVolumeSource( - obj: FlexVolumeSource | undefined, -): Record | undefined; -/** - * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. - * - * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource - */ -export interface GitRepoVolumeSource { - /** - * Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource#directory - */ - readonly directory?: string; - /** - * Repository URL - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource#repository - */ - readonly repository: string; - /** - * Commit hash for the specified revision. - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource#revision - */ - readonly revision?: string; -} -/** - * Converts an object of type 'GitRepoVolumeSource' to JSON representation. - */ -export declare function toJson_GitRepoVolumeSource( - obj: GitRepoVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource - */ -export interface GlusterfsVolumeSource { - /** - * EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#endpoints - */ - readonly endpoints: string; - /** - * Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#path - */ - readonly path: string; - /** - * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#readOnly - */ - readonly readOnly?: boolean; -} -/** - * Converts an object of type 'GlusterfsVolumeSource' to JSON representation. - */ -export declare function toJson_GlusterfsVolumeSource( - obj: GlusterfsVolumeSource | undefined, -): Record | undefined; -/** - * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource - */ -export interface IscsiVolumeSource { - /** - * whether support iSCSI Discovery CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthDiscovery - */ - readonly chapAuthDiscovery?: boolean; - /** - * whether support iSCSI Session CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthSession - */ - readonly chapAuthSession?: boolean; - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#initiatorName - */ - readonly initiatorName?: string; - /** - * Target iSCSI Qualified Name. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iqn - */ - readonly iqn: string; - /** - * iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * - * @default default' (tcp). - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iscsiInterface - */ - readonly iscsiInterface?: string; - /** - * iSCSI Target Lun number. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#lun - */ - readonly lun: number; - /** - * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#portals - */ - readonly portals?: string[]; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * CHAP Secret for iSCSI target and initiator authentication - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - /** - * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#targetPortal - */ - readonly targetPortal: string; -} -/** - * Converts an object of type 'IscsiVolumeSource' to JSON representation. - */ -export declare function toJson_IscsiVolumeSource( - obj: IscsiVolumeSource | undefined, -): Record | undefined; -/** - * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource - */ -export interface PersistentVolumeClaimVolumeSource { - /** - * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#claimName - */ - readonly claimName: string; - /** - * Will force the ReadOnly setting in VolumeMounts. Default false. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#readOnly - */ - readonly readOnly?: boolean; -} -/** - * Converts an object of type 'PersistentVolumeClaimVolumeSource' to JSON representation. - */ -export declare function toJson_PersistentVolumeClaimVolumeSource( - obj: PersistentVolumeClaimVolumeSource | undefined, -): Record | undefined; -/** - * Represents a projected volume source - * - * @schema io.k8s.api.core.v1.ProjectedVolumeSource - */ -export interface ProjectedVolumeSource { - /** - * Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @schema io.k8s.api.core.v1.ProjectedVolumeSource#defaultMode - */ - readonly defaultMode?: number; - /** - * list of volume projections - * - * @schema io.k8s.api.core.v1.ProjectedVolumeSource#sources - */ - readonly sources?: VolumeProjection[]; -} -/** - * Converts an object of type 'ProjectedVolumeSource' to JSON representation. - */ -export declare function toJson_ProjectedVolumeSource( - obj: ProjectedVolumeSource | undefined, -): Record | undefined; -/** - * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.RBDVolumeSource - */ -export interface RbdVolumeSource { - /** - * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * - * @schema io.k8s.api.core.v1.RBDVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDVolumeSource#image - */ - readonly image: string; - /** - * Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#keyring - */ - readonly keyring?: string; - /** - * A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDVolumeSource#monitors - */ - readonly monitors: string[]; - /** - * The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#pool - */ - readonly pool?: string; - /** - * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - /** - * The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#user - */ - readonly user?: string; -} -/** - * Converts an object of type 'RbdVolumeSource' to JSON representation. - */ -export declare function toJson_RbdVolumeSource( - obj: RbdVolumeSource | undefined, -): Record | undefined; -/** - * ScaleIOVolumeSource represents a persistent ScaleIO volume - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource - */ -export interface ScaleIoVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * - * @default xfs". - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#fsType - */ - readonly fsType?: string; - /** - * The host address of the ScaleIO API Gateway. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#gateway - */ - readonly gateway: string; - /** - * The name of the ScaleIO Protection Domain for the configured storage. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#protectionDomain - */ - readonly protectionDomain?: string; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#secretRef - */ - readonly secretRef: LocalObjectReference; - /** - * Flag to enable/disable SSL communication with Gateway, default false - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#sslEnabled - */ - readonly sslEnabled?: boolean; - /** - * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * - * @default ThinProvisioned. - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storageMode - */ - readonly storageMode?: string; - /** - * The ScaleIO Storage Pool associated with the protection domain. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storagePool - */ - readonly storagePool?: string; - /** - * The name of the storage system as configured in ScaleIO. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#system - */ - readonly system: string; - /** - * The name of a volume already created in the ScaleIO system that is associated with this volume source. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#volumeName - */ - readonly volumeName?: string; -} -/** - * Converts an object of type 'ScaleIoVolumeSource' to JSON representation. - */ -export declare function toJson_ScaleIoVolumeSource( - obj: ScaleIoVolumeSource | undefined, -): Record | undefined; -/** - * Adapts a Secret into a volume. - * - * The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.SecretVolumeSource - */ -export interface SecretVolumeSource { - /** - * Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @schema io.k8s.api.core.v1.SecretVolumeSource#defaultMode - */ - readonly defaultMode?: number; - /** - * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.SecretVolumeSource#items - */ - readonly items?: KeyToPath[]; - /** - * Specify whether the Secret or its keys must be defined - * - * @schema io.k8s.api.core.v1.SecretVolumeSource#optional - */ - readonly optional?: boolean; - /** - * Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * - * @schema io.k8s.api.core.v1.SecretVolumeSource#secretName - */ - readonly secretName?: string; -} -/** - * Converts an object of type 'SecretVolumeSource' to JSON representation. - */ -export declare function toJson_SecretVolumeSource( - obj: SecretVolumeSource | undefined, -): Record | undefined; -/** - * Represents a StorageOS persistent volume resource. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource - */ -export interface StorageOsVolumeSource { - /** - * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#fsType - */ - readonly fsType?: string; - /** - * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#readOnly - */ - readonly readOnly?: boolean; - /** - * SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - /** - * VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeName - */ - readonly volumeName?: string; - /** - * VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeNamespace - */ - readonly volumeNamespace?: string; -} -/** - * Converts an object of type 'StorageOsVolumeSource' to JSON representation. - */ -export declare function toJson_StorageOsVolumeSource( - obj: StorageOsVolumeSource | undefined, -): Record | undefined; -/** - * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement - */ -export interface ScopedResourceSelectorRequirement { - /** - * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#operator - */ - readonly operator: string; - /** - * The name of the scope that the selector applies to. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#scopeName - */ - readonly scopeName: string; - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#values - */ - readonly values?: string[]; -} -/** - * Converts an object of type 'ScopedResourceSelectorRequirement' to JSON representation. - */ -export declare function toJson_ScopedResourceSelectorRequirement( - obj: ScopedResourceSelectorRequirement | undefined, -): Record | undefined; -/** - * ClientIPConfig represents the configurations of Client IP based session affinity. - * - * @schema io.k8s.api.core.v1.ClientIPConfig - */ -export interface ClientIpConfig { - /** - * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). - * - * @schema io.k8s.api.core.v1.ClientIPConfig#timeoutSeconds - */ - readonly timeoutSeconds?: number; -} -/** - * Converts an object of type 'ClientIpConfig' to JSON representation. - */ -export declare function toJson_ClientIpConfig( - obj: ClientIpConfig | undefined, -): Record | undefined; -/** - * ForZone provides information about which zones should consume this endpoint. - * - * @schema io.k8s.api.discovery.v1.ForZone - */ -export interface ForZone { - /** - * name represents the name of the zone. - * - * @schema io.k8s.api.discovery.v1.ForZone#name - */ - readonly name: string; -} -/** - * Converts an object of type 'ForZone' to JSON representation. - */ -export declare function toJson_ForZone( - obj: ForZone | undefined, -): Record | undefined; -/** - * ForZone provides information about which zones should consume this endpoint. - * - * @schema io.k8s.api.discovery.v1beta1.ForZone - */ -export interface ForZoneV1Beta1 { - /** - * name represents the name of the zone. - * - * @schema io.k8s.api.discovery.v1beta1.ForZone#name - */ - readonly name: string; -} -/** - * Converts an object of type 'ForZoneV1Beta1' to JSON representation. - */ -export declare function toJson_ForZoneV1Beta1( - obj: ForZoneV1Beta1 | undefined, -): Record | undefined; -/** - * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. - * - * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule - */ -export interface NonResourcePolicyRuleV1Beta1 { - /** - * `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - * - "/healthz" is legal - * - "/hea*" is illegal - * - "/hea" is legal but matches nothing - * - "/hea/*" also matches nothing - * - "/healthz/*" matches all per-component health checks. - * "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule#nonResourceURLs - */ - readonly nonResourceUrLs: string[]; - /** - * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule#verbs - */ - readonly verbs: string[]; -} -/** - * Converts an object of type 'NonResourcePolicyRuleV1Beta1' to JSON representation. - */ -export declare function toJson_NonResourcePolicyRuleV1Beta1( - obj: NonResourcePolicyRuleV1Beta1 | undefined, -): Record | undefined; -/** - * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule - */ -export interface ResourcePolicyRuleV1Beta1 { - /** - * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#apiGroups - */ - readonly apiGroups: string[]; - /** - * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#clusterScope - */ - readonly clusterScope?: boolean; - /** - * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#namespaces - */ - readonly namespaces?: string[]; - /** - * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#resources - */ - readonly resources: string[]; - /** - * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#verbs - */ - readonly verbs: string[]; -} -/** - * Converts an object of type 'ResourcePolicyRuleV1Beta1' to JSON representation. - */ -export declare function toJson_ResourcePolicyRuleV1Beta1( - obj: ResourcePolicyRuleV1Beta1 | undefined, -): Record | undefined; -/** - * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. - * - * @schema io.k8s.api.flowcontrol.v1beta1.Subject - */ -export interface SubjectV1Beta1 { - /** - * `group` matches based on user group name. - * - * @schema io.k8s.api.flowcontrol.v1beta1.Subject#group - */ - readonly group?: GroupSubjectV1Beta1; - /** - * `kind` indicates which one of the other fields is non-empty. Required - * - * @schema io.k8s.api.flowcontrol.v1beta1.Subject#kind - */ - readonly kind: string; - /** - * `serviceAccount` matches ServiceAccounts. - * - * @schema io.k8s.api.flowcontrol.v1beta1.Subject#serviceAccount - */ - readonly serviceAccount?: ServiceAccountSubjectV1Beta1; - /** - * `user` matches based on username. - * - * @schema io.k8s.api.flowcontrol.v1beta1.Subject#user - */ - readonly user?: UserSubjectV1Beta1; -} -/** - * Converts an object of type 'SubjectV1Beta1' to JSON representation. - */ -export declare function toJson_SubjectV1Beta1( - obj: SubjectV1Beta1 | undefined, -): Record | undefined; -/** - * LimitResponse defines how to handle requests that can not be executed right now. - * - * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse - */ -export interface LimitResponseV1Beta1 { - /** - * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * - * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse#queuing - */ - readonly queuing?: QueuingConfigurationV1Beta1; - /** - * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse#type - */ - readonly type: string; -} -/** - * Converts an object of type 'LimitResponseV1Beta1' to JSON representation. - */ -export declare function toJson_LimitResponseV1Beta1( - obj: LimitResponseV1Beta1 | undefined, -): Record | undefined; -/** - * IngressServiceBackend references a Kubernetes Service as a Backend. - * - * @schema io.k8s.api.networking.v1.IngressServiceBackend - */ -export interface IngressServiceBackend { - /** - * Name is the referenced service. The service must exist in the same namespace as the Ingress object. - * - * @schema io.k8s.api.networking.v1.IngressServiceBackend#name - */ - readonly name: string; - /** - * Port of the referenced service. A port name or port number is required for a IngressServiceBackend. - * - * @schema io.k8s.api.networking.v1.IngressServiceBackend#port - */ - readonly port?: ServiceBackendPort; -} -/** - * Converts an object of type 'IngressServiceBackend' to JSON representation. - */ -export declare function toJson_IngressServiceBackend( - obj: IngressServiceBackend | undefined, -): Record | undefined; -/** - * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. - * - * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue - */ -export interface HttpIngressRuleValue { - /** - * A collection of paths that map requests to backends. - * - * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue#paths - */ - readonly paths: HttpIngressPath[]; -} -/** - * Converts an object of type 'HttpIngressRuleValue' to JSON representation. - */ -export declare function toJson_HttpIngressRuleValue( - obj: HttpIngressRuleValue | undefined, -): Record | undefined; -/** - * NetworkPolicyPort describes a port to allow traffic on - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort - */ -export interface NetworkPolicyPort { - /** - * If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort". - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort#endPort - */ - readonly endPort?: number; - /** - * The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort#port - */ - readonly port?: IntOrString; - /** - * The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort#protocol - */ - readonly protocol?: string; -} -/** - * Converts an object of type 'NetworkPolicyPort' to JSON representation. - */ -export declare function toJson_NetworkPolicyPort( - obj: NetworkPolicyPort | undefined, -): Record | undefined; -/** - * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer - */ -export interface NetworkPolicyPeer { - /** - * IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#ipBlock - */ - readonly ipBlock?: IpBlock; - /** - * Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - * - * If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - /** - * This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - * - * If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#podSelector - */ - readonly podSelector?: LabelSelector; -} -/** - * Converts an object of type 'NetworkPolicyPeer' to JSON representation. - */ -export declare function toJson_NetworkPolicyPeer( - obj: NetworkPolicyPeer | undefined, -): Record | undefined; -/** - * IDRange provides a min/max of an allowed range of IDs. - * - * @schema io.k8s.api.policy.v1beta1.IDRange - */ -export interface IdRangeV1Beta1 { - /** - * max is the end of the range, inclusive. - * - * @schema io.k8s.api.policy.v1beta1.IDRange#max - */ - readonly max: number; - /** - * min is the start of the range, inclusive. - * - * @schema io.k8s.api.policy.v1beta1.IDRange#min - */ - readonly min: number; -} -/** - * Converts an object of type 'IdRangeV1Beta1' to JSON representation. - */ -export declare function toJson_IdRangeV1Beta1( - obj: IdRangeV1Beta1 | undefined, -): Record | undefined; -/** - * VolumeNodeResources is a set of resource limits for scheduling of volumes. - * - * @schema io.k8s.api.storage.v1.VolumeNodeResources - */ -export interface VolumeNodeResources { - /** - * Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. - * - * @schema io.k8s.api.storage.v1.VolumeNodeResources#count - */ - readonly count?: number; -} -/** - * Converts an object of type 'VolumeNodeResources' to JSON representation. - */ -export declare function toJson_VolumeNodeResources( - obj: VolumeNodeResources | undefined, -): Record | undefined; -/** - * WebhookConversion describes how to call a conversion webhook - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion - */ -export interface WebhookConversion { - /** - * clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#clientConfig - */ - readonly clientConfig?: WebhookClientConfig; - /** - * conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#conversionReviewVersions - */ - readonly conversionReviewVersions: string[]; -} -/** - * Converts an object of type 'WebhookConversion' to JSON representation. - */ -export declare function toJson_WebhookConversion( - obj: WebhookConversion | undefined, -): Record | undefined; -/** - * CustomResourceColumnDefinition specifies a column for server side printing. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition - */ -export interface CustomResourceColumnDefinition { - /** - * description is a human readable description of this column. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#description - */ - readonly description?: string; - /** - * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#format - */ - readonly format?: string; - /** - * jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#jsonPath - */ - readonly jsonPath: string; - /** - * name is a human readable name for the column. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#name - */ - readonly name: string; - /** - * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#priority - */ - readonly priority?: number; - /** - * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#type - */ - readonly type: string; -} -/** - * Converts an object of type 'CustomResourceColumnDefinition' to JSON representation. - */ -export declare function toJson_CustomResourceColumnDefinition( - obj: CustomResourceColumnDefinition | undefined, -): Record | undefined; -/** - * CustomResourceValidation is a list of validation methods for CustomResources. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation - */ -export interface CustomResourceValidation { - /** - * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation#openAPIV3Schema - */ - readonly openApiv3Schema?: JsonSchemaProps; -} -/** - * Converts an object of type 'CustomResourceValidation' to JSON representation. - */ -export declare function toJson_CustomResourceValidation( - obj: CustomResourceValidation | undefined, -): Record | undefined; -/** - * CustomResourceSubresources defines the status and scale subresources for CustomResources. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources - */ -export interface CustomResourceSubresources { - /** - * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#scale - */ - readonly scale?: CustomResourceSubresourceScale; - /** - * status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#status - */ - readonly status?: any; -} -/** - * Converts an object of type 'CustomResourceSubresources' to JSON representation. - */ -export declare function toJson_CustomResourceSubresources( - obj: CustomResourceSubresources | undefined, -): Record | undefined; -/** - * HPAScalingPolicy is a single policy which must hold true for a specified past interval. - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy - */ -export interface HpaScalingPolicyV2Beta2 { - /** - * PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#periodSeconds - */ - readonly periodSeconds: number; - /** - * Type is used to specify the scaling policy. - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#type - */ - readonly type: string; - /** - * Value contains the amount of change which is permitted by the policy. It must be greater than zero - * - * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#value - */ - readonly value: number; -} -/** - * Converts an object of type 'HpaScalingPolicyV2Beta2' to JSON representation. - */ -export declare function toJson_HpaScalingPolicyV2Beta2( - obj: HpaScalingPolicyV2Beta2 | undefined, -): Record | undefined; -/** - * MetricTarget defines the target value, average value, or average utilization of a specific metric - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget - */ -export interface MetricTargetV2Beta2 { - /** - * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#averageUtilization - */ - readonly averageUtilization?: number; - /** - * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#averageValue - */ - readonly averageValue?: Quantity; - /** - * type represents whether the metric type is Utilization, Value, or AverageValue - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#type - */ - readonly type: string; - /** - * value is the target value of the metric (as a quantity). - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#value - */ - readonly value?: Quantity; -} -/** - * Converts an object of type 'MetricTargetV2Beta2' to JSON representation. - */ -export declare function toJson_MetricTargetV2Beta2( - obj: MetricTargetV2Beta2 | undefined, -): Record | undefined; -/** - * MetricIdentifier defines the name and optionally selector for a metric - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier - */ -export interface MetricIdentifierV2Beta2 { - /** - * name is the name of the given metric - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier#name - */ - readonly name: string; - /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * - * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier#selector - */ - readonly selector?: LabelSelector; -} -/** - * Converts an object of type 'MetricIdentifierV2Beta2' to JSON representation. - */ -export declare function toJson_MetricIdentifierV2Beta2( - obj: MetricIdentifierV2Beta2 | undefined, -): Record | undefined; -/** - * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - * - * @schema io.k8s.api.core.v1.NodeSelectorTerm - */ -export interface NodeSelectorTerm { - /** - * A list of node selector requirements by node's labels. - * - * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchExpressions - */ - readonly matchExpressions?: NodeSelectorRequirement[]; - /** - * A list of node selector requirements by node's fields. - * - * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchFields - */ - readonly matchFields?: NodeSelectorRequirement[]; -} -/** - * Converts an object of type 'NodeSelectorTerm' to JSON representation. - */ -export declare function toJson_NodeSelectorTerm( - obj: NodeSelectorTerm | undefined, -): Record | undefined; -/** - * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - * - * @schema io.k8s.api.core.v1.PreferredSchedulingTerm - */ -export interface PreferredSchedulingTerm { - /** - * A node selector term, associated with the corresponding weight. - * - * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#preference - */ - readonly preference: NodeSelectorTerm; - /** - * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - * - * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#weight - */ - readonly weight: number; -} -/** - * Converts an object of type 'PreferredSchedulingTerm' to JSON representation. - */ -export declare function toJson_PreferredSchedulingTerm( - obj: PreferredSchedulingTerm | undefined, -): Record | undefined; -/** - * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - * - * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm - */ -export interface WeightedPodAffinityTerm { - /** - * Required. A pod affinity term, associated with the corresponding weight. - * - * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#podAffinityTerm - */ - readonly podAffinityTerm: PodAffinityTerm; - /** - * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - * - * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#weight - */ - readonly weight: number; -} -/** - * Converts an object of type 'WeightedPodAffinityTerm' to JSON representation. - */ -export declare function toJson_WeightedPodAffinityTerm( - obj: WeightedPodAffinityTerm | undefined, -): Record | undefined; -/** - * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running - * - * @schema io.k8s.api.core.v1.PodAffinityTerm - */ -export interface PodAffinityTerm { - /** - * A label query over a set of resources, in this case pods. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#labelSelector - */ - readonly labelSelector?: LabelSelector; - /** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - /** - * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace" - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#topologyKey - */ - readonly topologyKey: string; -} -/** - * Converts an object of type 'PodAffinityTerm' to JSON representation. - */ -export declare function toJson_PodAffinityTerm( - obj: PodAffinityTerm | undefined, -): Record | undefined; -/** - * EnvVarSource represents a source for the value of an EnvVar. - * - * @schema io.k8s.api.core.v1.EnvVarSource - */ -export interface EnvVarSource { - /** - * Selects a key of a ConfigMap. - * - * @schema io.k8s.api.core.v1.EnvVarSource#configMapKeyRef - */ - readonly configMapKeyRef?: ConfigMapKeySelector; - /** - * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. - * - * @schema io.k8s.api.core.v1.EnvVarSource#fieldRef - */ - readonly fieldRef?: ObjectFieldSelector; - /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * - * @schema io.k8s.api.core.v1.EnvVarSource#resourceFieldRef - */ - readonly resourceFieldRef?: ResourceFieldSelector; - /** - * Selects a key of a secret in the pod's namespace - * - * @schema io.k8s.api.core.v1.EnvVarSource#secretKeyRef - */ - readonly secretKeyRef?: SecretKeySelector; -} -/** - * Converts an object of type 'EnvVarSource' to JSON representation. - */ -export declare function toJson_EnvVarSource( - obj: EnvVarSource | undefined, -): Record | undefined; -/** - * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. - * - * The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. - * - * @schema io.k8s.api.core.v1.ConfigMapEnvSource - */ -export interface ConfigMapEnvSource { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapEnvSource#name - */ - readonly name?: string; - /** - * Specify whether the ConfigMap must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapEnvSource#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'ConfigMapEnvSource' to JSON representation. - */ -export declare function toJson_ConfigMapEnvSource( - obj: ConfigMapEnvSource | undefined, -): Record | undefined; -/** - * SecretEnvSource selects a Secret to populate the environment variables with. - * - * The contents of the target Secret's Data field will represent the key-value pairs as environment variables. - * - * @schema io.k8s.api.core.v1.SecretEnvSource - */ -export interface SecretEnvSource { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.SecretEnvSource#name - */ - readonly name?: string; - /** - * Specify whether the Secret must be defined - * - * @schema io.k8s.api.core.v1.SecretEnvSource#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'SecretEnvSource' to JSON representation. - */ -export declare function toJson_SecretEnvSource( - obj: SecretEnvSource | undefined, -): Record | undefined; -/** - * Handler defines a specific action that should be taken - * - * @schema io.k8s.api.core.v1.Handler - */ -export interface Handler { - /** - * One and only one of the following should be specified. Exec specifies the action to take. - * - * @schema io.k8s.api.core.v1.Handler#exec - */ - readonly exec?: ExecAction; - /** - * HTTPGet specifies the http request to perform. - * - * @schema io.k8s.api.core.v1.Handler#httpGet - */ - readonly httpGet?: HttpGetAction; - /** - * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * - * @schema io.k8s.api.core.v1.Handler#tcpSocket - */ - readonly tcpSocket?: TcpSocketAction; -} -/** - * Converts an object of type 'Handler' to JSON representation. - */ -export declare function toJson_Handler( - obj: Handler | undefined, -): Record | undefined; -/** - * ExecAction describes a "run in container" action. - * - * @schema io.k8s.api.core.v1.ExecAction - */ -export interface ExecAction { - /** - * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - * - * @schema io.k8s.api.core.v1.ExecAction#command - */ - readonly command?: string[]; -} -/** - * Converts an object of type 'ExecAction' to JSON representation. - */ -export declare function toJson_ExecAction( - obj: ExecAction | undefined, -): Record | undefined; -/** - * HTTPGetAction describes an action based on HTTP Get requests. - * - * @schema io.k8s.api.core.v1.HTTPGetAction - */ -export interface HttpGetAction { - /** - * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#host - */ - readonly host?: string; - /** - * Custom headers to set in the request. HTTP allows repeated headers. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#httpHeaders - */ - readonly httpHeaders?: HttpHeader[]; - /** - * Path to access on the HTTP server. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#path - */ - readonly path?: string; - /** - * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#port - */ - readonly port: IntOrString; - /** - * Scheme to use for connecting to the host. Defaults to HTTP. - * - * @default HTTP. - * @schema io.k8s.api.core.v1.HTTPGetAction#scheme - */ - readonly scheme?: string; -} -/** - * Converts an object of type 'HttpGetAction' to JSON representation. - */ -export declare function toJson_HttpGetAction( - obj: HttpGetAction | undefined, -): Record | undefined; -/** - * TCPSocketAction describes an action based on opening a socket - * - * @schema io.k8s.api.core.v1.TCPSocketAction - */ -export interface TcpSocketAction { - /** - * Optional: Host name to connect to, defaults to the pod IP. - * - * @schema io.k8s.api.core.v1.TCPSocketAction#host - */ - readonly host?: string; - /** - * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * - * @schema io.k8s.api.core.v1.TCPSocketAction#port - */ - readonly port: IntOrString; -} -/** - * Converts an object of type 'TcpSocketAction' to JSON representation. - */ -export declare function toJson_TcpSocketAction( - obj: TcpSocketAction | undefined, -): Record | undefined; -/** - * Adds and removes POSIX capabilities from running containers. - * - * @schema io.k8s.api.core.v1.Capabilities - */ -export interface Capabilities { - /** - * Added capabilities - * - * @schema io.k8s.api.core.v1.Capabilities#add - */ - readonly add?: string[]; - /** - * Removed capabilities - * - * @schema io.k8s.api.core.v1.Capabilities#drop - */ - readonly drop?: string[]; -} -/** - * Converts an object of type 'Capabilities' to JSON representation. - */ -export declare function toJson_Capabilities( - obj: Capabilities | undefined, -): Record | undefined; -/** - * Maps a string key to a path within a volume. - * - * @schema io.k8s.api.core.v1.KeyToPath - */ -export interface KeyToPath { - /** - * The key to project. - * - * @schema io.k8s.api.core.v1.KeyToPath#key - */ - readonly key: string; - /** - * Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @schema io.k8s.api.core.v1.KeyToPath#mode - */ - readonly mode?: number; - /** - * The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - * - * @schema io.k8s.api.core.v1.KeyToPath#path - */ - readonly path: string; -} -/** - * Converts an object of type 'KeyToPath' to JSON representation. - */ -export declare function toJson_KeyToPath( - obj: KeyToPath | undefined, -): Record | undefined; -/** - * DownwardAPIVolumeFile represents information to create the file containing the pod field - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile - */ -export interface DownwardApiVolumeFile { - /** - * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#fieldRef - */ - readonly fieldRef?: ObjectFieldSelector; - /** - * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#mode - */ - readonly mode?: number; - /** - * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#path - */ - readonly path: string; - /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#resourceFieldRef - */ - readonly resourceFieldRef?: ResourceFieldSelector; -} -/** - * Converts an object of type 'DownwardApiVolumeFile' to JSON representation. - */ -export declare function toJson_DownwardApiVolumeFile( - obj: DownwardApiVolumeFile | undefined, -): Record | undefined; -/** - * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate - */ -export interface PersistentVolumeClaimTemplate { - /** - * May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#metadata - */ - readonly metadata?: ObjectMeta; - /** - * The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#spec - */ - readonly spec: PersistentVolumeClaimSpec; -} -/** - * Converts an object of type 'PersistentVolumeClaimTemplate' to JSON representation. - */ -export declare function toJson_PersistentVolumeClaimTemplate( - obj: PersistentVolumeClaimTemplate | undefined, -): Record | undefined; -/** - * Projection that may be projected along with other supported volume types - * - * @schema io.k8s.api.core.v1.VolumeProjection - */ -export interface VolumeProjection { - /** - * information about the configMap data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#configMap - */ - readonly configMap?: ConfigMapProjection; - /** - * information about the downwardAPI data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#downwardAPI - */ - readonly downwardApi?: DownwardApiProjection; - /** - * information about the secret data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#secret - */ - readonly secret?: SecretProjection; - /** - * information about the serviceAccountToken data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#serviceAccountToken - */ - readonly serviceAccountToken?: ServiceAccountTokenProjection; -} -/** - * Converts an object of type 'VolumeProjection' to JSON representation. - */ -export declare function toJson_VolumeProjection( - obj: VolumeProjection | undefined, -): Record | undefined; -/** - * GroupSubject holds detailed information for group-kind subject. - * - * @schema io.k8s.api.flowcontrol.v1beta1.GroupSubject - */ -export interface GroupSubjectV1Beta1 { - /** - * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.GroupSubject#name - */ - readonly name: string; -} -/** - * Converts an object of type 'GroupSubjectV1Beta1' to JSON representation. - */ -export declare function toJson_GroupSubjectV1Beta1( - obj: GroupSubjectV1Beta1 | undefined, -): Record | undefined; -/** - * ServiceAccountSubject holds detailed information for service-account-kind subject. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject - */ -export interface ServiceAccountSubjectV1Beta1 { - /** - * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#name - */ - readonly name: string; - /** - * `namespace` is the namespace of matching ServiceAccount objects. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#namespace - */ - readonly namespace: string; -} -/** - * Converts an object of type 'ServiceAccountSubjectV1Beta1' to JSON representation. - */ -export declare function toJson_ServiceAccountSubjectV1Beta1( - obj: ServiceAccountSubjectV1Beta1 | undefined, -): Record | undefined; -/** - * UserSubject holds detailed information for user-kind subject. - * - * @schema io.k8s.api.flowcontrol.v1beta1.UserSubject - */ -export interface UserSubjectV1Beta1 { - /** - * `name` is the username that matches, or "*" to match all usernames. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta1.UserSubject#name - */ - readonly name: string; -} -/** - * Converts an object of type 'UserSubjectV1Beta1' to JSON representation. - */ -export declare function toJson_UserSubjectV1Beta1( - obj: UserSubjectV1Beta1 | undefined, -): Record | undefined; -/** - * QueuingConfiguration holds the configuration parameters for queuing - * - * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration - */ -export interface QueuingConfigurationV1Beta1 { - /** - * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * - * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#handSize - */ - readonly handSize?: number; - /** - * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * - * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#queueLengthLimit - */ - readonly queueLengthLimit?: number; - /** - * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - * - * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#queues - */ - readonly queues?: number; -} -/** - * Converts an object of type 'QueuingConfigurationV1Beta1' to JSON representation. - */ -export declare function toJson_QueuingConfigurationV1Beta1( - obj: QueuingConfigurationV1Beta1 | undefined, -): Record | undefined; -/** - * ServiceBackendPort is the service port being referenced. - * - * @schema io.k8s.api.networking.v1.ServiceBackendPort - */ -export interface ServiceBackendPort { - /** - * Name is the name of the port on the Service. This is a mutually exclusive setting with "Number". - * - * @schema io.k8s.api.networking.v1.ServiceBackendPort#name - */ - readonly name?: string; - /** - * Number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". - * - * @schema io.k8s.api.networking.v1.ServiceBackendPort#number - */ - readonly number?: number; -} -/** - * Converts an object of type 'ServiceBackendPort' to JSON representation. - */ -export declare function toJson_ServiceBackendPort( - obj: ServiceBackendPort | undefined, -): Record | undefined; -/** - * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath - */ -export interface HttpIngressPath { - /** - * Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath#backend - */ - readonly backend: IngressBackend; - /** - * Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath#path - */ - readonly path?: string; - /** - * PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - * done on a path element by element basis. A path element refers is the - * list of labels in the path split by the '/' separator. A request is a - * match for path p if every p is an element-wise prefix of p of the - * request path. Note that if the last element of the path is a substring - * of the last element in request path, it is not a match (e.g. /foo/bar - * matches /foo/bar/baz, but does not match /foo/barbaz). - * * ImplementationSpecific: Interpretation of the Path matching is up to - * the IngressClass. Implementations can treat this as a separate PathType - * or treat it identically to Prefix or Exact path types. - * Implementations are required to support all path types. - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath#pathType - */ - readonly pathType: string; -} -/** - * Converts an object of type 'HttpIngressPath' to JSON representation. - */ -export declare function toJson_HttpIngressPath( - obj: HttpIngressPath | undefined, -): Record | undefined; -/** - * IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. - * - * @schema io.k8s.api.networking.v1.IPBlock - */ -export interface IpBlock { - /** - * CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" - * - * @schema io.k8s.api.networking.v1.IPBlock#cidr - */ - readonly cidr: string; - /** - * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range - * - * @schema io.k8s.api.networking.v1.IPBlock#except - */ - readonly except?: string[]; -} -/** - * Converts an object of type 'IpBlock' to JSON representation. - */ -export declare function toJson_IpBlock( - obj: IpBlock | undefined, -): Record | undefined; -/** - * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps - */ -export interface JsonSchemaProps { - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$ref - */ - readonly ref?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$schema - */ - readonly schema?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalItems - */ - readonly additionalItems?: any; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalProperties - */ - readonly additionalProperties?: any; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#allOf - */ - readonly allOf?: JsonSchemaProps[]; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#anyOf - */ - readonly anyOf?: JsonSchemaProps[]; - /** - * default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#default - */ - readonly default?: any; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#definitions - */ - readonly definitions?: { - [key: string]: JsonSchemaProps; - }; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#dependencies - */ - readonly dependencies?: { - [key: string]: any; - }; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#description - */ - readonly description?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#enum - */ - readonly enum?: any[]; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#example - */ - readonly example?: any; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMaximum - */ - readonly exclusiveMaximum?: boolean; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMinimum - */ - readonly exclusiveMinimum?: boolean; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#externalDocs - */ - readonly externalDocs?: ExternalDocumentation; - /** - * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - * - * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#format - */ - readonly format?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#id - */ - readonly id?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#items - */ - readonly items?: any; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxItems - */ - readonly maxItems?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxLength - */ - readonly maxLength?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxProperties - */ - readonly maxProperties?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maximum - */ - readonly maximum?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minItems - */ - readonly minItems?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minLength - */ - readonly minLength?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minProperties - */ - readonly minProperties?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minimum - */ - readonly minimum?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#multipleOf - */ - readonly multipleOf?: number; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#not - */ - readonly not?: JsonSchemaProps; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#nullable - */ - readonly nullable?: boolean; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#oneOf - */ - readonly oneOf?: JsonSchemaProps[]; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#pattern - */ - readonly pattern?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#patternProperties - */ - readonly patternProperties?: { - [key: string]: JsonSchemaProps; - }; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#properties - */ - readonly properties?: { - [key: string]: JsonSchemaProps; - }; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#required - */ - readonly required?: string[]; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#title - */ - readonly title?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#type - */ - readonly type?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#uniqueItems - */ - readonly uniqueItems?: boolean; - /** - * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-embedded-resource - */ - readonly xKubernetesEmbeddedResource?: boolean; - /** - * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - * - * 1) anyOf: - * - type: integer - * - type: string - * 2) allOf: - * - anyOf: - * - type: integer - * - type: string - * - ... zero or more - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-int-or-string - */ - readonly xKubernetesIntOrString?: boolean; - /** - * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - * - * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - * - * The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-map-keys - */ - readonly xKubernetesListMapKeys?: string[]; - /** - * x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - * - * 1) `atomic`: the list is treated as a single entity, like a scalar. - * Atomic lists will be entirely replaced when updated. This extension - * may be used on any type of list (struct, scalar, ...). - * 2) `set`: - * Sets are lists that must not have multiple items with the same value. Each - * value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - * array with x-kubernetes-list-type `atomic`. - * 3) `map`: - * These lists are like maps in that their elements have a non-index key - * used to identify them. Order is preserved upon merge. The map tag - * must only be used on a list with elements of type object. - * Defaults to atomic for arrays. - * - * @default atomic for arrays. - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-type - */ - readonly xKubernetesListType?: string; - /** - * x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - * - * 1) `granular`: - * These maps are actual maps (key-value pairs) and each fields are independent - * from each other (they can each be manipulated by separate actors). This is - * the default behaviour for all maps. - * 2) `atomic`: the list is treated as a single entity, like a scalar. - * Atomic maps will be entirely replaced when updated. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-map-type - */ - readonly xKubernetesMapType?: string; - /** - * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-preserve-unknown-fields - */ - readonly xKubernetesPreserveUnknownFields?: boolean; -} -/** - * Converts an object of type 'JsonSchemaProps' to JSON representation. - */ -export declare function toJson_JsonSchemaProps( - obj: JsonSchemaProps | undefined, -): Record | undefined; -/** - * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale - */ -export interface CustomResourceSubresourceScale { - /** - * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#labelSelectorPath - */ - readonly labelSelectorPath?: string; - /** - * specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#specReplicasPath - */ - readonly specReplicasPath: string; - /** - * statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#statusReplicasPath - */ - readonly statusReplicasPath: string; -} -/** - * Converts an object of type 'CustomResourceSubresourceScale' to JSON representation. - */ -export declare function toJson_CustomResourceSubresourceScale( - obj: CustomResourceSubresourceScale | undefined, -): Record | undefined; -/** - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement - */ -export interface NodeSelectorRequirement { - /** - * The label key that the selector applies to. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement#key - */ - readonly key: string; - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement#operator - */ - readonly operator: string; - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement#values - */ - readonly values?: string[]; -} -/** - * Converts an object of type 'NodeSelectorRequirement' to JSON representation. - */ -export declare function toJson_NodeSelectorRequirement( - obj: NodeSelectorRequirement | undefined, -): Record | undefined; -/** - * Selects a key from a ConfigMap. - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector - */ -export interface ConfigMapKeySelector { - /** - * The key to select. - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector#key - */ - readonly key: string; - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector#name - */ - readonly name?: string; - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'ConfigMapKeySelector' to JSON representation. - */ -export declare function toJson_ConfigMapKeySelector( - obj: ConfigMapKeySelector | undefined, -): Record | undefined; -/** - * ObjectFieldSelector selects an APIVersioned field of an object. - * - * @schema io.k8s.api.core.v1.ObjectFieldSelector - */ -export interface ObjectFieldSelector { - /** - * Version of the schema the FieldPath is written in terms of, defaults to "v1". - * - * @schema io.k8s.api.core.v1.ObjectFieldSelector#apiVersion - */ - readonly apiVersion?: string; - /** - * Path of the field to select in the specified API version. - * - * @schema io.k8s.api.core.v1.ObjectFieldSelector#fieldPath - */ - readonly fieldPath: string; -} -/** - * Converts an object of type 'ObjectFieldSelector' to JSON representation. - */ -export declare function toJson_ObjectFieldSelector( - obj: ObjectFieldSelector | undefined, -): Record | undefined; -/** - * ResourceFieldSelector represents container resources (cpu, memory) and their output format - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector - */ -export interface ResourceFieldSelector { - /** - * Container name: required for volumes, optional for env vars - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector#containerName - */ - readonly containerName?: string; - /** - * Specifies the output format of the exposed resources, defaults to "1" - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector#divisor - */ - readonly divisor?: Quantity; - /** - * Required: resource to select - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector#resource - */ - readonly resource: string; -} -/** - * Converts an object of type 'ResourceFieldSelector' to JSON representation. - */ -export declare function toJson_ResourceFieldSelector( - obj: ResourceFieldSelector | undefined, -): Record | undefined; -/** - * SecretKeySelector selects a key of a Secret. - * - * @schema io.k8s.api.core.v1.SecretKeySelector - */ -export interface SecretKeySelector { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema io.k8s.api.core.v1.SecretKeySelector#key - */ - readonly key: string; - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.SecretKeySelector#name - */ - readonly name?: string; - /** - * Specify whether the Secret or its key must be defined - * - * @schema io.k8s.api.core.v1.SecretKeySelector#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'SecretKeySelector' to JSON representation. - */ -export declare function toJson_SecretKeySelector( - obj: SecretKeySelector | undefined, -): Record | undefined; -/** - * HTTPHeader describes a custom header to be used in HTTP probes - * - * @schema io.k8s.api.core.v1.HTTPHeader - */ -export interface HttpHeader { - /** - * The header field name - * - * @schema io.k8s.api.core.v1.HTTPHeader#name - */ - readonly name: string; - /** - * The header field value - * - * @schema io.k8s.api.core.v1.HTTPHeader#value - */ - readonly value: string; -} -/** - * Converts an object of type 'HttpHeader' to JSON representation. - */ -export declare function toJson_HttpHeader( - obj: HttpHeader | undefined, -): Record | undefined; -/** - * Adapts a ConfigMap into a projected volume. - * - * The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. - * - * @schema io.k8s.api.core.v1.ConfigMapProjection - */ -export interface ConfigMapProjection { - /** - * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.ConfigMapProjection#items - */ - readonly items?: KeyToPath[]; - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapProjection#name - */ - readonly name?: string; - /** - * Specify whether the ConfigMap or its keys must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapProjection#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'ConfigMapProjection' to JSON representation. - */ -export declare function toJson_ConfigMapProjection( - obj: ConfigMapProjection | undefined, -): Record | undefined; -/** - * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. - * - * @schema io.k8s.api.core.v1.DownwardAPIProjection - */ -export interface DownwardApiProjection { - /** - * Items is a list of DownwardAPIVolume file - * - * @schema io.k8s.api.core.v1.DownwardAPIProjection#items - */ - readonly items?: DownwardApiVolumeFile[]; -} -/** - * Converts an object of type 'DownwardApiProjection' to JSON representation. - */ -export declare function toJson_DownwardApiProjection( - obj: DownwardApiProjection | undefined, -): Record | undefined; -/** - * Adapts a secret into a projected volume. - * - * The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. - * - * @schema io.k8s.api.core.v1.SecretProjection - */ -export interface SecretProjection { - /** - * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.SecretProjection#items - */ - readonly items?: KeyToPath[]; - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.SecretProjection#name - */ - readonly name?: string; - /** - * Specify whether the Secret or its key must be defined - * - * @schema io.k8s.api.core.v1.SecretProjection#optional - */ - readonly optional?: boolean; -} -/** - * Converts an object of type 'SecretProjection' to JSON representation. - */ -export declare function toJson_SecretProjection( - obj: SecretProjection | undefined, -): Record | undefined; -/** - * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). - * - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection - */ -export interface ServiceAccountTokenProjection { - /** - * Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#audience - */ - readonly audience?: string; - /** - * ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * - * @default 1 hour and must be at least 10 minutes. - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#expirationSeconds - */ - readonly expirationSeconds?: number; - /** - * Path is the path relative to the mount point of the file to project the token into. - * - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#path - */ - readonly path: string; -} -/** - * Converts an object of type 'ServiceAccountTokenProjection' to JSON representation. - */ -export declare function toJson_ServiceAccountTokenProjection( - obj: ServiceAccountTokenProjection | undefined, -): Record | undefined; -/** - * ExternalDocumentation allows referencing an external resource for extended documentation. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation - */ -export interface ExternalDocumentation { - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#description - */ - readonly description?: string; - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#url - */ - readonly url?: string; -} -/** - * Converts an object of type 'ExternalDocumentation' to JSON representation. - */ -export declare function toJson_ExternalDocumentation( - obj: ExternalDocumentation | undefined, -): Record | undefined; diff --git a/.devops/aws/src/imports/k8s.ts b/.devops/aws/src/imports/k8s.ts deleted file mode 100644 index e3efc08..0000000 --- a/.devops/aws/src/imports/k8s.ts +++ /dev/null @@ -1,30594 +0,0 @@ -// generated by cdk8s -import { ApiObject, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - -/** - * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration - */ -export class KubeMutatingWebhookConfiguration extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1', - kind: 'MutatingWebhookConfiguration', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeMutatingWebhookConfigurationProps = {}): any { - return { - ...KubeMutatingWebhookConfiguration.GVK, - ...toJson_KubeMutatingWebhookConfigurationProps(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeMutatingWebhookConfigurationProps = {}) { - super(scope, id, { - ...KubeMutatingWebhookConfiguration.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeMutatingWebhookConfiguration.GVK, - ...toJson_KubeMutatingWebhookConfigurationProps(resolved), - }; - } -} - -/** - * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList - */ -export class KubeMutatingWebhookConfigurationList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1', - kind: 'MutatingWebhookConfigurationList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeMutatingWebhookConfigurationListProps): any { - return { - ...KubeMutatingWebhookConfigurationList.GVK, - ...toJson_KubeMutatingWebhookConfigurationListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeMutatingWebhookConfigurationListProps) { - super(scope, id, { - ...KubeMutatingWebhookConfigurationList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeMutatingWebhookConfigurationList.GVK, - ...toJson_KubeMutatingWebhookConfigurationListProps(resolved), - }; - } -} - -/** - * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration - */ -export class KubeValidatingWebhookConfiguration extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1', - kind: 'ValidatingWebhookConfiguration', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingWebhookConfigurationProps = {}): any { - return { - ...KubeValidatingWebhookConfiguration.GVK, - ...toJson_KubeValidatingWebhookConfigurationProps(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingWebhookConfigurationProps = {}) { - super(scope, id, { - ...KubeValidatingWebhookConfiguration.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingWebhookConfiguration.GVK, - ...toJson_KubeValidatingWebhookConfigurationProps(resolved), - }; - } -} - -/** - * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList - */ -export class KubeValidatingWebhookConfigurationList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1', - kind: 'ValidatingWebhookConfigurationList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingWebhookConfigurationListProps): any { - return { - ...KubeValidatingWebhookConfigurationList.GVK, - ...toJson_KubeValidatingWebhookConfigurationListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingWebhookConfigurationListProps) { - super(scope, id, { - ...KubeValidatingWebhookConfigurationList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingWebhookConfigurationList.GVK, - ...toJson_KubeValidatingWebhookConfigurationListProps(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy - */ -export class KubeValidatingAdmissionPolicyV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1alpha1', - kind: 'ValidatingAdmissionPolicy', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyV1Alpha1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyV1Alpha1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyV1Alpha1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. - -For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. - -The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding - */ -export class KubeValidatingAdmissionPolicyBindingV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1alpha1', - kind: 'ValidatingAdmissionPolicyBinding', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyBindingV1Alpha1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyBindingV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyBindingV1Alpha1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyBindingV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyBindingV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingV1Alpha1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList - */ -export class KubeValidatingAdmissionPolicyBindingListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1alpha1', - kind: 'ValidatingAdmissionPolicyBindingList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyBindingListV1Alpha1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyBindingListV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyBindingListV1Alpha1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyBindingListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyBindingListV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingListV1Alpha1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList - */ -export class KubeValidatingAdmissionPolicyListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1alpha1', - kind: 'ValidatingAdmissionPolicyList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyListV1Alpha1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyListV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyListV1Alpha1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyListV1Alpha1.GVK, - ...toJson_KubeValidatingAdmissionPolicyListV1Alpha1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy - */ -export class KubeValidatingAdmissionPolicyV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1beta1', - kind: 'ValidatingAdmissionPolicy', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyV1Beta1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyV1Beta1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyV1Beta1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyV1Beta1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyV1Beta1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. - -For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. - -The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding - */ -export class KubeValidatingAdmissionPolicyBindingV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1beta1', - kind: 'ValidatingAdmissionPolicyBinding', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyBindingV1Beta1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyBindingV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingV1Beta1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyBindingV1Beta1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyBindingV1Beta1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyBindingV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingV1Beta1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList - */ -export class KubeValidatingAdmissionPolicyBindingListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1beta1', - kind: 'ValidatingAdmissionPolicyBindingList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyBindingListV1Beta1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyBindingListV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingListV1Beta1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyBindingListV1Beta1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyBindingListV1Beta1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyBindingListV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyBindingListV1Beta1Props(resolved), - }; - } -} - -/** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList - */ -export class KubeValidatingAdmissionPolicyListV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'admissionregistration.k8s.io/v1beta1', - kind: 'ValidatingAdmissionPolicyList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeValidatingAdmissionPolicyListV1Beta1Props = {}): any { - return { - ...KubeValidatingAdmissionPolicyListV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyListV1Beta1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeValidatingAdmissionPolicyListV1Beta1Props = {}) { - super(scope, id, { - ...KubeValidatingAdmissionPolicyListV1Beta1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeValidatingAdmissionPolicyListV1Beta1.GVK, - ...toJson_KubeValidatingAdmissionPolicyListV1Beta1Props(resolved), - }; - } -} - -/** - * Storage version of a specific resource. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion - */ -export class KubeStorageVersionV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'internal.apiserver.k8s.io/v1alpha1', - kind: 'StorageVersion', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStorageVersionV1Alpha1Props): any { - return { - ...KubeStorageVersionV1Alpha1.GVK, - ...toJson_KubeStorageVersionV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStorageVersionV1Alpha1Props) { - super(scope, id, { - ...KubeStorageVersionV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStorageVersionV1Alpha1.GVK, - ...toJson_KubeStorageVersionV1Alpha1Props(resolved), - }; - } -} - -/** - * A list of StorageVersions. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList - */ -export class KubeStorageVersionListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'internal.apiserver.k8s.io/v1alpha1', - kind: 'StorageVersionList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStorageVersionListV1Alpha1Props): any { - return { - ...KubeStorageVersionListV1Alpha1.GVK, - ...toJson_KubeStorageVersionListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStorageVersionListV1Alpha1Props) { - super(scope, id, { - ...KubeStorageVersionListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStorageVersionListV1Alpha1.GVK, - ...toJson_KubeStorageVersionListV1Alpha1Props(resolved), - }; - } -} - -/** - * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - * - * @schema io.k8s.api.apps.v1.ControllerRevision - */ -export class KubeControllerRevision extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevision" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'ControllerRevision', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevision". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeControllerRevisionProps): any { - return { - ...KubeControllerRevision.GVK, - ...toJson_KubeControllerRevisionProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.ControllerRevision" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeControllerRevisionProps) { - super(scope, id, { - ...KubeControllerRevision.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeControllerRevision.GVK, - ...toJson_KubeControllerRevisionProps(resolved), - }; - } -} - -/** - * ControllerRevisionList is a resource containing a list of ControllerRevision objects. - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList - */ -export class KubeControllerRevisionList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevisionList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'ControllerRevisionList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevisionList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeControllerRevisionListProps): any { - return { - ...KubeControllerRevisionList.GVK, - ...toJson_KubeControllerRevisionListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.ControllerRevisionList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeControllerRevisionListProps) { - super(scope, id, { - ...KubeControllerRevisionList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeControllerRevisionList.GVK, - ...toJson_KubeControllerRevisionListProps(resolved), - }; - } -} - -/** - * DaemonSet represents the configuration of a daemon set. - * - * @schema io.k8s.api.apps.v1.DaemonSet - */ -export class KubeDaemonSet extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSet" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'DaemonSet', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSet". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeDaemonSetProps = {}): any { - return { - ...KubeDaemonSet.GVK, - ...toJson_KubeDaemonSetProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.DaemonSet" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeDaemonSetProps = {}) { - super(scope, id, { - ...KubeDaemonSet.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeDaemonSet.GVK, - ...toJson_KubeDaemonSetProps(resolved), - }; - } -} - -/** - * DaemonSetList is a collection of daemon sets. - * - * @schema io.k8s.api.apps.v1.DaemonSetList - */ -export class KubeDaemonSetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSetList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'DaemonSetList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeDaemonSetListProps): any { - return { - ...KubeDaemonSetList.GVK, - ...toJson_KubeDaemonSetListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.DaemonSetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeDaemonSetListProps) { - super(scope, id, { - ...KubeDaemonSetList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeDaemonSetList.GVK, - ...toJson_KubeDaemonSetListProps(resolved), - }; - } -} - -/** - * Deployment enables declarative updates for Pods and ReplicaSets. - * - * @schema io.k8s.api.apps.v1.Deployment - */ -export class KubeDeployment extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.Deployment" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'Deployment', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.Deployment". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeDeploymentProps = {}): any { - return { - ...KubeDeployment.GVK, - ...toJson_KubeDeploymentProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.Deployment" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeDeploymentProps = {}) { - super(scope, id, { - ...KubeDeployment.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeDeployment.GVK, - ...toJson_KubeDeploymentProps(resolved), - }; - } -} - -/** - * DeploymentList is a list of Deployments. - * - * @schema io.k8s.api.apps.v1.DeploymentList - */ -export class KubeDeploymentList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DeploymentList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'DeploymentList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DeploymentList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeDeploymentListProps): any { - return { - ...KubeDeploymentList.GVK, - ...toJson_KubeDeploymentListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.DeploymentList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeDeploymentListProps) { - super(scope, id, { - ...KubeDeploymentList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeDeploymentList.GVK, - ...toJson_KubeDeploymentListProps(resolved), - }; - } -} - -/** - * ReplicaSet ensures that a specified number of pod replicas are running at any given time. - * - * @schema io.k8s.api.apps.v1.ReplicaSet - */ -export class KubeReplicaSet extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSet" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'ReplicaSet', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSet". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeReplicaSetProps = {}): any { - return { - ...KubeReplicaSet.GVK, - ...toJson_KubeReplicaSetProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.ReplicaSet" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeReplicaSetProps = {}) { - super(scope, id, { - ...KubeReplicaSet.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeReplicaSet.GVK, - ...toJson_KubeReplicaSetProps(resolved), - }; - } -} - -/** - * ReplicaSetList is a collection of ReplicaSets. - * - * @schema io.k8s.api.apps.v1.ReplicaSetList - */ -export class KubeReplicaSetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSetList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'ReplicaSetList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeReplicaSetListProps): any { - return { - ...KubeReplicaSetList.GVK, - ...toJson_KubeReplicaSetListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.ReplicaSetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeReplicaSetListProps) { - super(scope, id, { - ...KubeReplicaSetList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeReplicaSetList.GVK, - ...toJson_KubeReplicaSetListProps(resolved), - }; - } -} - -/** - * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - -The StatefulSet guarantees that a given network identity will always map to the same storage identity. - * - * @schema io.k8s.api.apps.v1.StatefulSet - */ -export class KubeStatefulSet extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSet" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'StatefulSet', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSet". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStatefulSetProps = {}): any { - return { - ...KubeStatefulSet.GVK, - ...toJson_KubeStatefulSetProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.StatefulSet" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStatefulSetProps = {}) { - super(scope, id, { - ...KubeStatefulSet.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStatefulSet.GVK, - ...toJson_KubeStatefulSetProps(resolved), - }; - } -} - -/** - * StatefulSetList is a collection of StatefulSets. - * - * @schema io.k8s.api.apps.v1.StatefulSetList - */ -export class KubeStatefulSetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSetList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apps/v1', - kind: 'StatefulSetList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStatefulSetListProps): any { - return { - ...KubeStatefulSetList.GVK, - ...toJson_KubeStatefulSetListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.apps.v1.StatefulSetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStatefulSetListProps) { - super(scope, id, { - ...KubeStatefulSetList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStatefulSetList.GVK, - ...toJson_KubeStatefulSetListProps(resolved), - }; - } -} - -/** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. - * - * @schema io.k8s.api.authentication.v1.SelfSubjectReview - */ -export class KubeSelfSubjectReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.SelfSubjectReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authentication.k8s.io/v1', - kind: 'SelfSubjectReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.SelfSubjectReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSelfSubjectReviewProps = {}): any { - return { - ...KubeSelfSubjectReview.GVK, - ...toJson_KubeSelfSubjectReviewProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authentication.v1.SelfSubjectReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSelfSubjectReviewProps = {}) { - super(scope, id, { - ...KubeSelfSubjectReview.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSelfSubjectReview.GVK, - ...toJson_KubeSelfSubjectReviewProps(resolved), - }; - } -} - -/** - * TokenRequest requests a token for a given service account. - * - * @schema io.k8s.api.authentication.v1.TokenRequest - */ -export class KubeTokenRequest extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenRequest" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authentication.k8s.io/v1', - kind: 'TokenRequest', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenRequest". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeTokenRequestProps): any { - return { - ...KubeTokenRequest.GVK, - ...toJson_KubeTokenRequestProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authentication.v1.TokenRequest" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeTokenRequestProps) { - super(scope, id, { - ...KubeTokenRequest.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeTokenRequest.GVK, - ...toJson_KubeTokenRequestProps(resolved), - }; - } -} - -/** - * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - * - * @schema io.k8s.api.authentication.v1.TokenReview - */ -export class KubeTokenReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authentication.k8s.io/v1', - kind: 'TokenReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeTokenReviewProps): any { - return { - ...KubeTokenReview.GVK, - ...toJson_KubeTokenReviewProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authentication.v1.TokenReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeTokenReviewProps) { - super(scope, id, { - ...KubeTokenReview.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeTokenReview.GVK, - ...toJson_KubeTokenReviewProps(resolved), - }; - } -} - -/** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. - * - * @schema io.k8s.api.authentication.v1alpha1.SelfSubjectReview - */ -export class KubeSelfSubjectReviewV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1alpha1.SelfSubjectReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authentication.k8s.io/v1alpha1', - kind: 'SelfSubjectReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1alpha1.SelfSubjectReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSelfSubjectReviewV1Alpha1Props = {}): any { - return { - ...KubeSelfSubjectReviewV1Alpha1.GVK, - ...toJson_KubeSelfSubjectReviewV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.authentication.v1alpha1.SelfSubjectReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSelfSubjectReviewV1Alpha1Props = {}) { - super(scope, id, { - ...KubeSelfSubjectReviewV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSelfSubjectReviewV1Alpha1.GVK, - ...toJson_KubeSelfSubjectReviewV1Alpha1Props(resolved), - }; - } -} - -/** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. - * - * @schema io.k8s.api.authentication.v1beta1.SelfSubjectReview - */ -export class KubeSelfSubjectReviewV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authentication.v1beta1.SelfSubjectReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authentication.k8s.io/v1beta1', - kind: 'SelfSubjectReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1beta1.SelfSubjectReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSelfSubjectReviewV1Beta1Props = {}): any { - return { - ...KubeSelfSubjectReviewV1Beta1.GVK, - ...toJson_KubeSelfSubjectReviewV1Beta1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.authentication.v1beta1.SelfSubjectReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSelfSubjectReviewV1Beta1Props = {}) { - super(scope, id, { - ...KubeSelfSubjectReviewV1Beta1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSelfSubjectReviewV1Beta1.GVK, - ...toJson_KubeSelfSubjectReviewV1Beta1Props(resolved), - }; - } -} - -/** - * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview - */ -export class KubeLocalSubjectAccessReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.LocalSubjectAccessReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authorization.k8s.io/v1', - kind: 'LocalSubjectAccessReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.LocalSubjectAccessReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeLocalSubjectAccessReviewProps): any { - return { - ...KubeLocalSubjectAccessReview.GVK, - ...toJson_KubeLocalSubjectAccessReviewProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authorization.v1.LocalSubjectAccessReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeLocalSubjectAccessReviewProps) { - super(scope, id, { - ...KubeLocalSubjectAccessReview.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeLocalSubjectAccessReview.GVK, - ...toJson_KubeLocalSubjectAccessReviewProps(resolved), - }; - } -} - -/** - * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview - */ -export class KubeSelfSubjectAccessReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectAccessReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authorization.k8s.io/v1', - kind: 'SelfSubjectAccessReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectAccessReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSelfSubjectAccessReviewProps): any { - return { - ...KubeSelfSubjectAccessReview.GVK, - ...toJson_KubeSelfSubjectAccessReviewProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authorization.v1.SelfSubjectAccessReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSelfSubjectAccessReviewProps) { - super(scope, id, { - ...KubeSelfSubjectAccessReview.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSelfSubjectAccessReview.GVK, - ...toJson_KubeSelfSubjectAccessReviewProps(resolved), - }; - } -} - -/** - * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview - */ -export class KubeSelfSubjectRulesReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectRulesReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authorization.k8s.io/v1', - kind: 'SelfSubjectRulesReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectRulesReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSelfSubjectRulesReviewProps): any { - return { - ...KubeSelfSubjectRulesReview.GVK, - ...toJson_KubeSelfSubjectRulesReviewProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authorization.v1.SelfSubjectRulesReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSelfSubjectRulesReviewProps) { - super(scope, id, { - ...KubeSelfSubjectRulesReview.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSelfSubjectRulesReview.GVK, - ...toJson_KubeSelfSubjectRulesReviewProps(resolved), - }; - } -} - -/** - * SubjectAccessReview checks whether or not a user or group can perform an action. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview - */ -export class KubeSubjectAccessReview extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SubjectAccessReview" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'authorization.k8s.io/v1', - kind: 'SubjectAccessReview', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SubjectAccessReview". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSubjectAccessReviewProps): any { - return { - ...KubeSubjectAccessReview.GVK, - ...toJson_KubeSubjectAccessReviewProps(props), - }; - } - - /** - * Defines a "io.k8s.api.authorization.v1.SubjectAccessReview" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSubjectAccessReviewProps) { - super(scope, id, { - ...KubeSubjectAccessReview.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSubjectAccessReview.GVK, - ...toJson_KubeSubjectAccessReviewProps(resolved), - }; - } -} - -/** - * configuration of a horizontal pod autoscaler. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler - */ -export class KubeHorizontalPodAutoscaler extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'autoscaling/v1', - kind: 'HorizontalPodAutoscaler', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeHorizontalPodAutoscalerProps = {}): any { - return { - ...KubeHorizontalPodAutoscaler.GVK, - ...toJson_KubeHorizontalPodAutoscalerProps(props), - }; - } - - /** - * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerProps = {}) { - super(scope, id, { - ...KubeHorizontalPodAutoscaler.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeHorizontalPodAutoscaler.GVK, - ...toJson_KubeHorizontalPodAutoscalerProps(resolved), - }; - } -} - -/** - * list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList - */ -export class KubeHorizontalPodAutoscalerList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'autoscaling/v1', - kind: 'HorizontalPodAutoscalerList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeHorizontalPodAutoscalerListProps): any { - return { - ...KubeHorizontalPodAutoscalerList.GVK, - ...toJson_KubeHorizontalPodAutoscalerListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListProps) { - super(scope, id, { - ...KubeHorizontalPodAutoscalerList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeHorizontalPodAutoscalerList.GVK, - ...toJson_KubeHorizontalPodAutoscalerListProps(resolved), - }; - } -} - -/** - * Scale represents a scaling request for a resource. - * - * @schema io.k8s.api.autoscaling.v1.Scale - */ -export class KubeScale extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.Scale" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'autoscaling/v1', - kind: 'Scale', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.Scale". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeScaleProps = {}): any { - return { - ...KubeScale.GVK, - ...toJson_KubeScaleProps(props), - }; - } - - /** - * Defines a "io.k8s.api.autoscaling.v1.Scale" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeScaleProps = {}) { - super(scope, id, { - ...KubeScale.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeScale.GVK, - ...toJson_KubeScaleProps(resolved), - }; - } -} - -/** - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler - */ -export class KubeHorizontalPodAutoscalerV2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'autoscaling/v2', - kind: 'HorizontalPodAutoscaler', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeHorizontalPodAutoscalerV2Props = {}): any { - return { - ...KubeHorizontalPodAutoscalerV2.GVK, - ...toJson_KubeHorizontalPodAutoscalerV2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerV2Props = {}) { - super(scope, id, { - ...KubeHorizontalPodAutoscalerV2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeHorizontalPodAutoscalerV2.GVK, - ...toJson_KubeHorizontalPodAutoscalerV2Props(resolved), - }; - } -} - -/** - * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList - */ -export class KubeHorizontalPodAutoscalerListV2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'autoscaling/v2', - kind: 'HorizontalPodAutoscalerList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeHorizontalPodAutoscalerListV2Props): any { - return { - ...KubeHorizontalPodAutoscalerListV2.GVK, - ...toJson_KubeHorizontalPodAutoscalerListV2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListV2Props) { - super(scope, id, { - ...KubeHorizontalPodAutoscalerListV2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeHorizontalPodAutoscalerListV2.GVK, - ...toJson_KubeHorizontalPodAutoscalerListV2Props(resolved), - }; - } -} - -/** - * CronJob represents the configuration of a single cron job. - * - * @schema io.k8s.api.batch.v1.CronJob - */ -export class KubeCronJob extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJob" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'batch/v1', - kind: 'CronJob', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJob". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCronJobProps = {}): any { - return { - ...KubeCronJob.GVK, - ...toJson_KubeCronJobProps(props), - }; - } - - /** - * Defines a "io.k8s.api.batch.v1.CronJob" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCronJobProps = {}) { - super(scope, id, { - ...KubeCronJob.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCronJob.GVK, - ...toJson_KubeCronJobProps(resolved), - }; - } -} - -/** - * CronJobList is a collection of cron jobs. - * - * @schema io.k8s.api.batch.v1.CronJobList - */ -export class KubeCronJobList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJobList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'batch/v1', - kind: 'CronJobList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJobList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCronJobListProps): any { - return { - ...KubeCronJobList.GVK, - ...toJson_KubeCronJobListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.batch.v1.CronJobList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCronJobListProps) { - super(scope, id, { - ...KubeCronJobList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCronJobList.GVK, - ...toJson_KubeCronJobListProps(resolved), - }; - } -} - -/** - * Job represents the configuration of a single job. - * - * @schema io.k8s.api.batch.v1.Job - */ -export class KubeJob extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.Job" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'batch/v1', - kind: 'Job', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.Job". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeJobProps = {}): any { - return { - ...KubeJob.GVK, - ...toJson_KubeJobProps(props), - }; - } - - /** - * Defines a "io.k8s.api.batch.v1.Job" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeJobProps = {}) { - super(scope, id, { - ...KubeJob.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeJob.GVK, - ...toJson_KubeJobProps(resolved), - }; - } -} - -/** - * JobList is a collection of jobs. - * - * @schema io.k8s.api.batch.v1.JobList - */ -export class KubeJobList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.batch.v1.JobList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'batch/v1', - kind: 'JobList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.JobList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeJobListProps): any { - return { - ...KubeJobList.GVK, - ...toJson_KubeJobListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.batch.v1.JobList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeJobListProps) { - super(scope, id, { - ...KubeJobList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeJobList.GVK, - ...toJson_KubeJobListProps(resolved), - }; - } -} - -/** - * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. - -Kubelets use this API to obtain: - 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). - 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). - -This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest - */ -export class KubeCertificateSigningRequest extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequest" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'certificates.k8s.io/v1', - kind: 'CertificateSigningRequest', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequest". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCertificateSigningRequestProps): any { - return { - ...KubeCertificateSigningRequest.GVK, - ...toJson_KubeCertificateSigningRequestProps(props), - }; - } - - /** - * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequest" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCertificateSigningRequestProps) { - super(scope, id, { - ...KubeCertificateSigningRequest.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCertificateSigningRequest.GVK, - ...toJson_KubeCertificateSigningRequestProps(resolved), - }; - } -} - -/** - * CertificateSigningRequestList is a collection of CertificateSigningRequest objects - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList - */ -export class KubeCertificateSigningRequestList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequestList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'certificates.k8s.io/v1', - kind: 'CertificateSigningRequestList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequestList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCertificateSigningRequestListProps): any { - return { - ...KubeCertificateSigningRequestList.GVK, - ...toJson_KubeCertificateSigningRequestListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequestList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCertificateSigningRequestListProps) { - super(scope, id, { - ...KubeCertificateSigningRequestList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCertificateSigningRequestList.GVK, - ...toJson_KubeCertificateSigningRequestListProps(resolved), - }; - } -} - -/** - * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). - -ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. - -It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundle - */ -export class KubeClusterTrustBundleV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'certificates.k8s.io/v1alpha1', - kind: 'ClusterTrustBundle', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeClusterTrustBundleV1Alpha1Props): any { - return { - ...KubeClusterTrustBundleV1Alpha1.GVK, - ...toJson_KubeClusterTrustBundleV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeClusterTrustBundleV1Alpha1Props) { - super(scope, id, { - ...KubeClusterTrustBundleV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeClusterTrustBundleV1Alpha1.GVK, - ...toJson_KubeClusterTrustBundleV1Alpha1Props(resolved), - }; - } -} - -/** - * ClusterTrustBundleList is a collection of ClusterTrustBundle objects - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList - */ -export class KubeClusterTrustBundleListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'certificates.k8s.io/v1alpha1', - kind: 'ClusterTrustBundleList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeClusterTrustBundleListV1Alpha1Props): any { - return { - ...KubeClusterTrustBundleListV1Alpha1.GVK, - ...toJson_KubeClusterTrustBundleListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeClusterTrustBundleListV1Alpha1Props) { - super(scope, id, { - ...KubeClusterTrustBundleListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeClusterTrustBundleListV1Alpha1.GVK, - ...toJson_KubeClusterTrustBundleListV1Alpha1Props(resolved), - }; - } -} - -/** - * Lease defines a lease concept. - * - * @schema io.k8s.api.coordination.v1.Lease - */ -export class KubeLease extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.Lease" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'coordination.k8s.io/v1', - kind: 'Lease', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.Lease". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeLeaseProps = {}): any { - return { - ...KubeLease.GVK, - ...toJson_KubeLeaseProps(props), - }; - } - - /** - * Defines a "io.k8s.api.coordination.v1.Lease" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeLeaseProps = {}) { - super(scope, id, { - ...KubeLease.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeLease.GVK, - ...toJson_KubeLeaseProps(resolved), - }; - } -} - -/** - * LeaseList is a list of Lease objects. - * - * @schema io.k8s.api.coordination.v1.LeaseList - */ -export class KubeLeaseList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.LeaseList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'coordination.k8s.io/v1', - kind: 'LeaseList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.LeaseList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeLeaseListProps): any { - return { - ...KubeLeaseList.GVK, - ...toJson_KubeLeaseListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.coordination.v1.LeaseList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeLeaseListProps) { - super(scope, id, { - ...KubeLeaseList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeLeaseList.GVK, - ...toJson_KubeLeaseListProps(resolved), - }; - } -} - -/** - * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. - * - * @schema io.k8s.api.core.v1.Binding - */ -export class KubeBinding extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Binding" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Binding', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Binding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeBindingProps): any { - return { - ...KubeBinding.GVK, - ...toJson_KubeBindingProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Binding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeBindingProps) { - super(scope, id, { - ...KubeBinding.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeBinding.GVK, - ...toJson_KubeBindingProps(resolved), - }; - } -} - -/** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatus - */ -export class KubeComponentStatus extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatus" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ComponentStatus', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatus". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeComponentStatusProps = {}): any { - return { - ...KubeComponentStatus.GVK, - ...toJson_KubeComponentStatusProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ComponentStatus" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeComponentStatusProps = {}) { - super(scope, id, { - ...KubeComponentStatus.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeComponentStatus.GVK, - ...toJson_KubeComponentStatusProps(resolved), - }; - } -} - -/** - * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatusList - */ -export class KubeComponentStatusList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatusList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ComponentStatusList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatusList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeComponentStatusListProps): any { - return { - ...KubeComponentStatusList.GVK, - ...toJson_KubeComponentStatusListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ComponentStatusList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeComponentStatusListProps) { - super(scope, id, { - ...KubeComponentStatusList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeComponentStatusList.GVK, - ...toJson_KubeComponentStatusListProps(resolved), - }; - } -} - -/** - * ConfigMap holds configuration data for pods to consume. - * - * @schema io.k8s.api.core.v1.ConfigMap - */ -export class KubeConfigMap extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMap" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ConfigMap', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMap". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeConfigMapProps = {}): any { - return { - ...KubeConfigMap.GVK, - ...toJson_KubeConfigMapProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ConfigMap" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeConfigMapProps = {}) { - super(scope, id, { - ...KubeConfigMap.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeConfigMap.GVK, - ...toJson_KubeConfigMapProps(resolved), - }; - } -} - -/** - * ConfigMapList is a resource containing a list of ConfigMap objects. - * - * @schema io.k8s.api.core.v1.ConfigMapList - */ -export class KubeConfigMapList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMapList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ConfigMapList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMapList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeConfigMapListProps): any { - return { - ...KubeConfigMapList.GVK, - ...toJson_KubeConfigMapListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ConfigMapList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeConfigMapListProps) { - super(scope, id, { - ...KubeConfigMapList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeConfigMapList.GVK, - ...toJson_KubeConfigMapListProps(resolved), - }; - } -} - -/** - * Endpoints is a collection of endpoints that implement the actual service. Example: - - Name: "mysvc", - Subsets: [ - { - Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - }, - { - Addresses: [{"ip": "10.10.3.3"}], - Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] - }, - ] - * - * @schema io.k8s.api.core.v1.Endpoints - */ -export class KubeEndpoints extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Endpoints" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Endpoints', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Endpoints". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEndpointsProps = {}): any { - return { - ...KubeEndpoints.GVK, - ...toJson_KubeEndpointsProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Endpoints" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEndpointsProps = {}) { - super(scope, id, { - ...KubeEndpoints.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEndpoints.GVK, - ...toJson_KubeEndpointsProps(resolved), - }; - } -} - -/** - * EndpointsList is a list of endpoints. - * - * @schema io.k8s.api.core.v1.EndpointsList - */ -export class KubeEndpointsList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.EndpointsList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'EndpointsList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.EndpointsList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEndpointsListProps): any { - return { - ...KubeEndpointsList.GVK, - ...toJson_KubeEndpointsListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.EndpointsList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEndpointsListProps) { - super(scope, id, { - ...KubeEndpointsList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEndpointsList.GVK, - ...toJson_KubeEndpointsListProps(resolved), - }; - } -} - -/** - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. - * - * @schema io.k8s.api.events.v1.Event - */ -export class KubeEvent extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.events.v1.Event" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'events.k8s.io/v1', - kind: 'Event', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.events.v1.Event". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEventProps): any { - return { - ...KubeEvent.GVK, - ...toJson_KubeEventProps(props), - }; - } - - /** - * Defines a "io.k8s.api.events.v1.Event" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEventProps) { - super(scope, id, { - ...KubeEvent.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEvent.GVK, - ...toJson_KubeEventProps(resolved), - }; - } -} - -/** - * EventList is a list of Event objects. - * - * @schema io.k8s.api.events.v1.EventList - */ -export class KubeEventList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.events.v1.EventList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'events.k8s.io/v1', - kind: 'EventList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.events.v1.EventList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEventListProps): any { - return { - ...KubeEventList.GVK, - ...toJson_KubeEventListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.events.v1.EventList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEventListProps) { - super(scope, id, { - ...KubeEventList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEventList.GVK, - ...toJson_KubeEventListProps(resolved), - }; - } -} - -/** - * LimitRange sets resource usage limits for each kind of resource in a Namespace. - * - * @schema io.k8s.api.core.v1.LimitRange - */ -export class KubeLimitRange extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRange" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'LimitRange', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRange". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeLimitRangeProps = {}): any { - return { - ...KubeLimitRange.GVK, - ...toJson_KubeLimitRangeProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.LimitRange" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeLimitRangeProps = {}) { - super(scope, id, { - ...KubeLimitRange.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeLimitRange.GVK, - ...toJson_KubeLimitRangeProps(resolved), - }; - } -} - -/** - * LimitRangeList is a list of LimitRange items. - * - * @schema io.k8s.api.core.v1.LimitRangeList - */ -export class KubeLimitRangeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRangeList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'LimitRangeList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRangeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeLimitRangeListProps): any { - return { - ...KubeLimitRangeList.GVK, - ...toJson_KubeLimitRangeListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.LimitRangeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeLimitRangeListProps) { - super(scope, id, { - ...KubeLimitRangeList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeLimitRangeList.GVK, - ...toJson_KubeLimitRangeListProps(resolved), - }; - } -} - -/** - * Namespace provides a scope for Names. Use of multiple namespaces is optional. - * - * @schema io.k8s.api.core.v1.Namespace - */ -export class KubeNamespace extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Namespace" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Namespace', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Namespace". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeNamespaceProps = {}): any { - return { - ...KubeNamespace.GVK, - ...toJson_KubeNamespaceProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Namespace" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeNamespaceProps = {}) { - super(scope, id, { - ...KubeNamespace.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeNamespace.GVK, - ...toJson_KubeNamespaceProps(resolved), - }; - } -} - -/** - * NamespaceList is a list of Namespaces. - * - * @schema io.k8s.api.core.v1.NamespaceList - */ -export class KubeNamespaceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.NamespaceList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'NamespaceList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NamespaceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeNamespaceListProps): any { - return { - ...KubeNamespaceList.GVK, - ...toJson_KubeNamespaceListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.NamespaceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeNamespaceListProps) { - super(scope, id, { - ...KubeNamespaceList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeNamespaceList.GVK, - ...toJson_KubeNamespaceListProps(resolved), - }; - } -} - -/** - * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). - * - * @schema io.k8s.api.core.v1.Node - */ -export class KubeNode extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Node" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Node', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Node". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeNodeProps = {}): any { - return { - ...KubeNode.GVK, - ...toJson_KubeNodeProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Node" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeNodeProps = {}) { - super(scope, id, { - ...KubeNode.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeNode.GVK, - ...toJson_KubeNodeProps(resolved), - }; - } -} - -/** - * NodeList is the whole list of all Nodes which have been registered with master. - * - * @schema io.k8s.api.core.v1.NodeList - */ -export class KubeNodeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.NodeList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'NodeList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NodeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeNodeListProps): any { - return { - ...KubeNodeList.GVK, - ...toJson_KubeNodeListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.NodeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeNodeListProps) { - super(scope, id, { - ...KubeNodeList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeNodeList.GVK, - ...toJson_KubeNodeListProps(resolved), - }; - } -} - -/** - * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolume - */ -export class KubePersistentVolume extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolume" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PersistentVolume', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolume". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePersistentVolumeProps = {}): any { - return { - ...KubePersistentVolume.GVK, - ...toJson_KubePersistentVolumeProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PersistentVolume" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePersistentVolumeProps = {}) { - super(scope, id, { - ...KubePersistentVolume.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePersistentVolume.GVK, - ...toJson_KubePersistentVolumeProps(resolved), - }; - } -} - -/** - * PersistentVolumeClaim is a user's request for and claim to a persistent volume - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim - */ -export class KubePersistentVolumeClaim extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaim" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PersistentVolumeClaim', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaim". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePersistentVolumeClaimProps = {}): any { - return { - ...KubePersistentVolumeClaim.GVK, - ...toJson_KubePersistentVolumeClaimProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PersistentVolumeClaim" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePersistentVolumeClaimProps = {}) { - super(scope, id, { - ...KubePersistentVolumeClaim.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePersistentVolumeClaim.GVK, - ...toJson_KubePersistentVolumeClaimProps(resolved), - }; - } -} - -/** - * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList - */ -export class KubePersistentVolumeClaimList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaimList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PersistentVolumeClaimList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaimList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePersistentVolumeClaimListProps): any { - return { - ...KubePersistentVolumeClaimList.GVK, - ...toJson_KubePersistentVolumeClaimListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PersistentVolumeClaimList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePersistentVolumeClaimListProps) { - super(scope, id, { - ...KubePersistentVolumeClaimList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePersistentVolumeClaimList.GVK, - ...toJson_KubePersistentVolumeClaimListProps(resolved), - }; - } -} - -/** - * PersistentVolumeList is a list of PersistentVolume items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeList - */ -export class KubePersistentVolumeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PersistentVolumeList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePersistentVolumeListProps): any { - return { - ...KubePersistentVolumeList.GVK, - ...toJson_KubePersistentVolumeListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PersistentVolumeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePersistentVolumeListProps) { - super(scope, id, { - ...KubePersistentVolumeList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePersistentVolumeList.GVK, - ...toJson_KubePersistentVolumeListProps(resolved), - }; - } -} - -/** - * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. - * - * @schema io.k8s.api.core.v1.Pod - */ -export class KubePod extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Pod" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Pod', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Pod". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodProps = {}): any { - return { - ...KubePod.GVK, - ...toJson_KubePodProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Pod" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodProps = {}) { - super(scope, id, { - ...KubePod.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePod.GVK, - ...toJson_KubePodProps(resolved), - }; - } -} - -/** - * PodList is a list of Pods. - * - * @schema io.k8s.api.core.v1.PodList - */ -export class KubePodList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PodList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodListProps): any { - return { - ...KubePodList.GVK, - ...toJson_KubePodListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PodList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodListProps) { - super(scope, id, { - ...KubePodList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodList.GVK, - ...toJson_KubePodListProps(resolved), - }; - } -} - -/** - * PodTemplate describes a template for creating copies of a predefined pod. - * - * @schema io.k8s.api.core.v1.PodTemplate - */ -export class KubePodTemplate extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplate" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PodTemplate', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplate". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodTemplateProps = {}): any { - return { - ...KubePodTemplate.GVK, - ...toJson_KubePodTemplateProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PodTemplate" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodTemplateProps = {}) { - super(scope, id, { - ...KubePodTemplate.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodTemplate.GVK, - ...toJson_KubePodTemplateProps(resolved), - }; - } -} - -/** - * PodTemplateList is a list of PodTemplates. - * - * @schema io.k8s.api.core.v1.PodTemplateList - */ -export class KubePodTemplateList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplateList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'PodTemplateList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplateList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodTemplateListProps): any { - return { - ...KubePodTemplateList.GVK, - ...toJson_KubePodTemplateListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.PodTemplateList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodTemplateListProps) { - super(scope, id, { - ...KubePodTemplateList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodTemplateList.GVK, - ...toJson_KubePodTemplateListProps(resolved), - }; - } -} - -/** - * ReplicationController represents the configuration of a replication controller. - * - * @schema io.k8s.api.core.v1.ReplicationController - */ -export class KubeReplicationController extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationController" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ReplicationController', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationController". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeReplicationControllerProps = {}): any { - return { - ...KubeReplicationController.GVK, - ...toJson_KubeReplicationControllerProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ReplicationController" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeReplicationControllerProps = {}) { - super(scope, id, { - ...KubeReplicationController.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeReplicationController.GVK, - ...toJson_KubeReplicationControllerProps(resolved), - }; - } -} - -/** - * ReplicationControllerList is a collection of replication controllers. - * - * @schema io.k8s.api.core.v1.ReplicationControllerList - */ -export class KubeReplicationControllerList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationControllerList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ReplicationControllerList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationControllerList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeReplicationControllerListProps): any { - return { - ...KubeReplicationControllerList.GVK, - ...toJson_KubeReplicationControllerListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ReplicationControllerList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeReplicationControllerListProps) { - super(scope, id, { - ...KubeReplicationControllerList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeReplicationControllerList.GVK, - ...toJson_KubeReplicationControllerListProps(resolved), - }; - } -} - -/** - * ResourceQuota sets aggregate quota restrictions enforced per namespace - * - * @schema io.k8s.api.core.v1.ResourceQuota - */ -export class KubeResourceQuota extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuota" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ResourceQuota', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuota". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceQuotaProps = {}): any { - return { - ...KubeResourceQuota.GVK, - ...toJson_KubeResourceQuotaProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ResourceQuota" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceQuotaProps = {}) { - super(scope, id, { - ...KubeResourceQuota.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceQuota.GVK, - ...toJson_KubeResourceQuotaProps(resolved), - }; - } -} - -/** - * ResourceQuotaList is a list of ResourceQuota items. - * - * @schema io.k8s.api.core.v1.ResourceQuotaList - */ -export class KubeResourceQuotaList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuotaList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ResourceQuotaList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuotaList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceQuotaListProps): any { - return { - ...KubeResourceQuotaList.GVK, - ...toJson_KubeResourceQuotaListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ResourceQuotaList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceQuotaListProps) { - super(scope, id, { - ...KubeResourceQuotaList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceQuotaList.GVK, - ...toJson_KubeResourceQuotaListProps(resolved), - }; - } -} - -/** - * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - * - * @schema io.k8s.api.core.v1.Secret - */ -export class KubeSecret extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Secret" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Secret', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Secret". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSecretProps = {}): any { - return { - ...KubeSecret.GVK, - ...toJson_KubeSecretProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Secret" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSecretProps = {}) { - super(scope, id, { - ...KubeSecret.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSecret.GVK, - ...toJson_KubeSecretProps(resolved), - }; - } -} - -/** - * SecretList is a list of Secret. - * - * @schema io.k8s.api.core.v1.SecretList - */ -export class KubeSecretList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.SecretList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'SecretList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.SecretList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeSecretListProps): any { - return { - ...KubeSecretList.GVK, - ...toJson_KubeSecretListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.SecretList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeSecretListProps) { - super(scope, id, { - ...KubeSecretList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeSecretList.GVK, - ...toJson_KubeSecretListProps(resolved), - }; - } -} - -/** - * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. - * - * @schema io.k8s.api.core.v1.Service - */ -export class KubeService extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.Service" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Service', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Service". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeServiceProps = {}): any { - return { - ...KubeService.GVK, - ...toJson_KubeServiceProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.Service" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeServiceProps = {}) { - super(scope, id, { - ...KubeService.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeService.GVK, - ...toJson_KubeServiceProps(resolved), - }; - } -} - -/** - * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets - * - * @schema io.k8s.api.core.v1.ServiceAccount - */ -export class KubeServiceAccount extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccount" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ServiceAccount', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccount". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeServiceAccountProps = {}): any { - return { - ...KubeServiceAccount.GVK, - ...toJson_KubeServiceAccountProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ServiceAccount" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeServiceAccountProps = {}) { - super(scope, id, { - ...KubeServiceAccount.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeServiceAccount.GVK, - ...toJson_KubeServiceAccountProps(resolved), - }; - } -} - -/** - * ServiceAccountList is a list of ServiceAccount objects - * - * @schema io.k8s.api.core.v1.ServiceAccountList - */ -export class KubeServiceAccountList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccountList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ServiceAccountList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccountList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeServiceAccountListProps): any { - return { - ...KubeServiceAccountList.GVK, - ...toJson_KubeServiceAccountListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ServiceAccountList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeServiceAccountListProps) { - super(scope, id, { - ...KubeServiceAccountList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeServiceAccountList.GVK, - ...toJson_KubeServiceAccountListProps(resolved), - }; - } -} - -/** - * ServiceList holds a list of services. - * - * @schema io.k8s.api.core.v1.ServiceList - */ -export class KubeServiceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'ServiceList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeServiceListProps): any { - return { - ...KubeServiceList.GVK, - ...toJson_KubeServiceListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.core.v1.ServiceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeServiceListProps) { - super(scope, id, { - ...KubeServiceList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeServiceList.GVK, - ...toJson_KubeServiceListProps(resolved), - }; - } -} - -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice - */ -export class KubeEndpointSlice extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSlice" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'discovery.k8s.io/v1', - kind: 'EndpointSlice', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSlice". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEndpointSliceProps): any { - return { - ...KubeEndpointSlice.GVK, - ...toJson_KubeEndpointSliceProps(props), - }; - } - - /** - * Defines a "io.k8s.api.discovery.v1.EndpointSlice" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEndpointSliceProps) { - super(scope, id, { - ...KubeEndpointSlice.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEndpointSlice.GVK, - ...toJson_KubeEndpointSliceProps(resolved), - }; - } -} - -/** - * EndpointSliceList represents a list of endpoint slices - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList - */ -export class KubeEndpointSliceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSliceList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'discovery.k8s.io/v1', - kind: 'EndpointSliceList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSliceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEndpointSliceListProps): any { - return { - ...KubeEndpointSliceList.GVK, - ...toJson_KubeEndpointSliceListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.discovery.v1.EndpointSliceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEndpointSliceListProps) { - super(scope, id, { - ...KubeEndpointSliceList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEndpointSliceList.GVK, - ...toJson_KubeEndpointSliceListProps(resolved), - }; - } -} - -/** - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchema - */ -export class KubeFlowSchema extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1.FlowSchema" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1', - kind: 'FlowSchema', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1.FlowSchema". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeFlowSchemaProps = {}): any { - return { - ...KubeFlowSchema.GVK, - ...toJson_KubeFlowSchemaProps(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1.FlowSchema" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeFlowSchemaProps = {}) { - super(scope, id, { - ...KubeFlowSchema.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeFlowSchema.GVK, - ...toJson_KubeFlowSchemaProps(resolved), - }; - } -} - -/** - * FlowSchemaList is a list of FlowSchema objects. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaList - */ -export class KubeFlowSchemaList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1.FlowSchemaList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1', - kind: 'FlowSchemaList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1.FlowSchemaList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeFlowSchemaListProps): any { - return { - ...KubeFlowSchemaList.GVK, - ...toJson_KubeFlowSchemaListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1.FlowSchemaList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeFlowSchemaListProps) { - super(scope, id, { - ...KubeFlowSchemaList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeFlowSchemaList.GVK, - ...toJson_KubeFlowSchemaListProps(resolved), - }; - } -} - -/** - * PriorityLevelConfiguration represents the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration - */ -export class KubePriorityLevelConfiguration extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1', - kind: 'PriorityLevelConfiguration', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePriorityLevelConfigurationProps = {}): any { - return { - ...KubePriorityLevelConfiguration.GVK, - ...toJson_KubePriorityLevelConfigurationProps(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationProps = {}) { - super(scope, id, { - ...KubePriorityLevelConfiguration.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePriorityLevelConfiguration.GVK, - ...toJson_KubePriorityLevelConfigurationProps(resolved), - }; - } -} - -/** - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList - */ -export class KubePriorityLevelConfigurationList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1', - kind: 'PriorityLevelConfigurationList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePriorityLevelConfigurationListProps): any { - return { - ...KubePriorityLevelConfigurationList.GVK, - ...toJson_KubePriorityLevelConfigurationListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationListProps) { - super(scope, id, { - ...KubePriorityLevelConfigurationList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePriorityLevelConfigurationList.GVK, - ...toJson_KubePriorityLevelConfigurationListProps(resolved), - }; - } -} - -/** - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchema - */ -export class KubeFlowSchemaV1Beta3 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta3.FlowSchema" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta3', - kind: 'FlowSchema', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta3.FlowSchema". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeFlowSchemaV1Beta3Props = {}): any { - return { - ...KubeFlowSchemaV1Beta3.GVK, - ...toJson_KubeFlowSchemaV1Beta3Props(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1beta3.FlowSchema" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeFlowSchemaV1Beta3Props = {}) { - super(scope, id, { - ...KubeFlowSchemaV1Beta3.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeFlowSchemaV1Beta3.GVK, - ...toJson_KubeFlowSchemaV1Beta3Props(resolved), - }; - } -} - -/** - * FlowSchemaList is a list of FlowSchema objects. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaList - */ -export class KubeFlowSchemaListV1Beta3 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta3', - kind: 'FlowSchemaList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeFlowSchemaListV1Beta3Props): any { - return { - ...KubeFlowSchemaListV1Beta3.GVK, - ...toJson_KubeFlowSchemaListV1Beta3Props(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeFlowSchemaListV1Beta3Props) { - super(scope, id, { - ...KubeFlowSchemaListV1Beta3.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeFlowSchemaListV1Beta3.GVK, - ...toJson_KubeFlowSchemaListV1Beta3Props(resolved), - }; - } -} - -/** - * PriorityLevelConfiguration represents the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration - */ -export class KubePriorityLevelConfigurationV1Beta3 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta3', - kind: 'PriorityLevelConfiguration', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePriorityLevelConfigurationV1Beta3Props = {}): any { - return { - ...KubePriorityLevelConfigurationV1Beta3.GVK, - ...toJson_KubePriorityLevelConfigurationV1Beta3Props(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationV1Beta3Props = {}) { - super(scope, id, { - ...KubePriorityLevelConfigurationV1Beta3.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePriorityLevelConfigurationV1Beta3.GVK, - ...toJson_KubePriorityLevelConfigurationV1Beta3Props(resolved), - }; - } -} - -/** - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList - */ -export class KubePriorityLevelConfigurationListV1Beta3 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta3', - kind: 'PriorityLevelConfigurationList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePriorityLevelConfigurationListV1Beta3Props): any { - return { - ...KubePriorityLevelConfigurationListV1Beta3.GVK, - ...toJson_KubePriorityLevelConfigurationListV1Beta3Props(props), - }; - } - - /** - * Defines a "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationListV1Beta3Props) { - super(scope, id, { - ...KubePriorityLevelConfigurationListV1Beta3.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePriorityLevelConfigurationListV1Beta3.GVK, - ...toJson_KubePriorityLevelConfigurationListV1Beta3Props(resolved), - }; - } -} - -/** - * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - * - * @schema io.k8s.api.networking.v1.Ingress - */ -export class KubeIngress extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.Ingress" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1', - kind: 'Ingress', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.Ingress". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeIngressProps = {}): any { - return { - ...KubeIngress.GVK, - ...toJson_KubeIngressProps(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1.Ingress" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeIngressProps = {}) { - super(scope, id, { - ...KubeIngress.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeIngress.GVK, - ...toJson_KubeIngressProps(resolved), - }; - } -} - -/** - * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. - * - * @schema io.k8s.api.networking.v1.IngressClass - */ -export class KubeIngressClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClass" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1', - kind: 'IngressClass', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeIngressClassProps = {}): any { - return { - ...KubeIngressClass.GVK, - ...toJson_KubeIngressClassProps(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1.IngressClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeIngressClassProps = {}) { - super(scope, id, { - ...KubeIngressClass.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeIngressClass.GVK, - ...toJson_KubeIngressClassProps(resolved), - }; - } -} - -/** - * IngressClassList is a collection of IngressClasses. - * - * @schema io.k8s.api.networking.v1.IngressClassList - */ -export class KubeIngressClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClassList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1', - kind: 'IngressClassList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeIngressClassListProps): any { - return { - ...KubeIngressClassList.GVK, - ...toJson_KubeIngressClassListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1.IngressClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeIngressClassListProps) { - super(scope, id, { - ...KubeIngressClassList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeIngressClassList.GVK, - ...toJson_KubeIngressClassListProps(resolved), - }; - } -} - -/** - * IngressList is a collection of Ingress. - * - * @schema io.k8s.api.networking.v1.IngressList - */ -export class KubeIngressList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1', - kind: 'IngressList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeIngressListProps): any { - return { - ...KubeIngressList.GVK, - ...toJson_KubeIngressListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1.IngressList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeIngressListProps) { - super(scope, id, { - ...KubeIngressList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeIngressList.GVK, - ...toJson_KubeIngressListProps(resolved), - }; - } -} - -/** - * NetworkPolicy describes what network traffic is allowed for a set of Pods - * - * @schema io.k8s.api.networking.v1.NetworkPolicy - */ -export class KubeNetworkPolicy extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicy" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicy". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeNetworkPolicyProps = {}): any { - return { - ...KubeNetworkPolicy.GVK, - ...toJson_KubeNetworkPolicyProps(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1.NetworkPolicy" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeNetworkPolicyProps = {}) { - super(scope, id, { - ...KubeNetworkPolicy.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeNetworkPolicy.GVK, - ...toJson_KubeNetworkPolicyProps(resolved), - }; - } -} - -/** - * NetworkPolicyList is a list of NetworkPolicy objects. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList - */ -export class KubeNetworkPolicyList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicyList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicyList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicyList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeNetworkPolicyListProps): any { - return { - ...KubeNetworkPolicyList.GVK, - ...toJson_KubeNetworkPolicyListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1.NetworkPolicyList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeNetworkPolicyListProps) { - super(scope, id, { - ...KubeNetworkPolicyList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeNetworkPolicyList.GVK, - ...toJson_KubeNetworkPolicyListProps(resolved), - }; - } -} - -/** - * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 - * - * @schema io.k8s.api.networking.v1alpha1.IPAddress - */ -export class KubeIpAddressV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.IPAddress" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1alpha1', - kind: 'IPAddress', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.IPAddress". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeIpAddressV1Alpha1Props = {}): any { - return { - ...KubeIpAddressV1Alpha1.GVK, - ...toJson_KubeIpAddressV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1alpha1.IPAddress" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeIpAddressV1Alpha1Props = {}) { - super(scope, id, { - ...KubeIpAddressV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeIpAddressV1Alpha1.GVK, - ...toJson_KubeIpAddressV1Alpha1Props(resolved), - }; - } -} - -/** - * IPAddressList contains a list of IPAddress. - * - * @schema io.k8s.api.networking.v1alpha1.IPAddressList - */ -export class KubeIpAddressListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.IPAddressList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1alpha1', - kind: 'IPAddressList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.IPAddressList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeIpAddressListV1Alpha1Props): any { - return { - ...KubeIpAddressListV1Alpha1.GVK, - ...toJson_KubeIpAddressListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1alpha1.IPAddressList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeIpAddressListV1Alpha1Props) { - super(scope, id, { - ...KubeIpAddressListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeIpAddressListV1Alpha1.GVK, - ...toJson_KubeIpAddressListV1Alpha1Props(resolved), - }; - } -} - -/** - * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDR - */ -export class KubeServiceCidrv1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.ServiceCIDR" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1alpha1', - kind: 'ServiceCIDR', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.ServiceCIDR". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeServiceCidrv1Alpha1Props = {}): any { - return { - ...KubeServiceCidrv1Alpha1.GVK, - ...toJson_KubeServiceCidrv1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1alpha1.ServiceCIDR" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeServiceCidrv1Alpha1Props = {}) { - super(scope, id, { - ...KubeServiceCidrv1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeServiceCidrv1Alpha1.GVK, - ...toJson_KubeServiceCidrv1Alpha1Props(resolved), - }; - } -} - -/** - * ServiceCIDRList contains a list of ServiceCIDR objects. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDRList - */ -export class KubeServiceCidrListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.ServiceCIDRList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'networking.k8s.io/v1alpha1', - kind: 'ServiceCIDRList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.ServiceCIDRList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeServiceCidrListV1Alpha1Props): any { - return { - ...KubeServiceCidrListV1Alpha1.GVK, - ...toJson_KubeServiceCidrListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.networking.v1alpha1.ServiceCIDRList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeServiceCidrListV1Alpha1Props) { - super(scope, id, { - ...KubeServiceCidrListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeServiceCidrListV1Alpha1.GVK, - ...toJson_KubeServiceCidrListV1Alpha1Props(resolved), - }; - } -} - -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ - * - * @schema io.k8s.api.node.v1.RuntimeClass - */ -export class KubeRuntimeClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClass" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'node.k8s.io/v1', - kind: 'RuntimeClass', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeRuntimeClassProps): any { - return { - ...KubeRuntimeClass.GVK, - ...toJson_KubeRuntimeClassProps(props), - }; - } - - /** - * Defines a "io.k8s.api.node.v1.RuntimeClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeRuntimeClassProps) { - super(scope, id, { - ...KubeRuntimeClass.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeRuntimeClass.GVK, - ...toJson_KubeRuntimeClassProps(resolved), - }; - } -} - -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1.RuntimeClassList - */ -export class KubeRuntimeClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClassList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'node.k8s.io/v1', - kind: 'RuntimeClassList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeRuntimeClassListProps): any { - return { - ...KubeRuntimeClassList.GVK, - ...toJson_KubeRuntimeClassListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.node.v1.RuntimeClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeRuntimeClassListProps) { - super(scope, id, { - ...KubeRuntimeClassList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeRuntimeClassList.GVK, - ...toJson_KubeRuntimeClassListProps(resolved), - }; - } -} - -/** - * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. - * - * @schema io.k8s.api.policy.v1.Eviction - */ -export class KubeEviction extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1.Eviction" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'policy/v1', - kind: 'Eviction', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.Eviction". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeEvictionProps = {}): any { - return { - ...KubeEviction.GVK, - ...toJson_KubeEvictionProps(props), - }; - } - - /** - * Defines a "io.k8s.api.policy.v1.Eviction" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeEvictionProps = {}) { - super(scope, id, { - ...KubeEviction.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeEviction.GVK, - ...toJson_KubeEvictionProps(resolved), - }; - } -} - -/** - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget - */ -export class KubePodDisruptionBudget extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudget" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'policy/v1', - kind: 'PodDisruptionBudget', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudget". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodDisruptionBudgetProps = {}): any { - return { - ...KubePodDisruptionBudget.GVK, - ...toJson_KubePodDisruptionBudgetProps(props), - }; - } - - /** - * Defines a "io.k8s.api.policy.v1.PodDisruptionBudget" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodDisruptionBudgetProps = {}) { - super(scope, id, { - ...KubePodDisruptionBudget.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodDisruptionBudget.GVK, - ...toJson_KubePodDisruptionBudgetProps(resolved), - }; - } -} - -/** - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList - */ -export class KubePodDisruptionBudgetList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudgetList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'policy/v1', - kind: 'PodDisruptionBudgetList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudgetList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodDisruptionBudgetListProps): any { - return { - ...KubePodDisruptionBudgetList.GVK, - ...toJson_KubePodDisruptionBudgetListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.policy.v1.PodDisruptionBudgetList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodDisruptionBudgetListProps) { - super(scope, id, { - ...KubePodDisruptionBudgetList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodDisruptionBudgetList.GVK, - ...toJson_KubePodDisruptionBudgetListProps(resolved), - }; - } -} - -/** - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - * - * @schema io.k8s.api.rbac.v1.ClusterRole - */ -export class KubeClusterRole extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRole" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRole". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeClusterRoleProps = {}): any { - return { - ...KubeClusterRole.GVK, - ...toJson_KubeClusterRoleProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRole" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeClusterRoleProps = {}) { - super(scope, id, { - ...KubeClusterRole.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeClusterRole.GVK, - ...toJson_KubeClusterRoleProps(resolved), - }; - } -} - -/** - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding - */ -export class KubeClusterRoleBinding extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBinding" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeClusterRoleBindingProps): any { - return { - ...KubeClusterRoleBinding.GVK, - ...toJson_KubeClusterRoleBindingProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRoleBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeClusterRoleBindingProps) { - super(scope, id, { - ...KubeClusterRoleBinding.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeClusterRoleBinding.GVK, - ...toJson_KubeClusterRoleBindingProps(resolved), - }; - } -} - -/** - * ClusterRoleBindingList is a collection of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList - */ -export class KubeClusterRoleBindingList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBindingList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBindingList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeClusterRoleBindingListProps): any { - return { - ...KubeClusterRoleBindingList.GVK, - ...toJson_KubeClusterRoleBindingListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRoleBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeClusterRoleBindingListProps) { - super(scope, id, { - ...KubeClusterRoleBindingList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeClusterRoleBindingList.GVK, - ...toJson_KubeClusterRoleBindingListProps(resolved), - }; - } -} - -/** - * ClusterRoleList is a collection of ClusterRoles - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList - */ -export class KubeClusterRoleList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeClusterRoleListProps): any { - return { - ...KubeClusterRoleList.GVK, - ...toJson_KubeClusterRoleListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.ClusterRoleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeClusterRoleListProps) { - super(scope, id, { - ...KubeClusterRoleList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeClusterRoleList.GVK, - ...toJson_KubeClusterRoleListProps(resolved), - }; - } -} - -/** - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - * - * @schema io.k8s.api.rbac.v1.Role - */ -export class KubeRole extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.Role" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.Role". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeRoleProps = {}): any { - return { - ...KubeRole.GVK, - ...toJson_KubeRoleProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.Role" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeRoleProps = {}) { - super(scope, id, { - ...KubeRole.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeRole.GVK, - ...toJson_KubeRoleProps(resolved), - }; - } -} - -/** - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - * - * @schema io.k8s.api.rbac.v1.RoleBinding - */ -export class KubeRoleBinding extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBinding" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBinding". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeRoleBindingProps): any { - return { - ...KubeRoleBinding.GVK, - ...toJson_KubeRoleBindingProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.RoleBinding" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeRoleBindingProps) { - super(scope, id, { - ...KubeRoleBinding.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeRoleBinding.GVK, - ...toJson_KubeRoleBindingProps(resolved), - }; - } -} - -/** - * RoleBindingList is a collection of RoleBindings - * - * @schema io.k8s.api.rbac.v1.RoleBindingList - */ -export class KubeRoleBindingList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBindingList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBindingList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBindingList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeRoleBindingListProps): any { - return { - ...KubeRoleBindingList.GVK, - ...toJson_KubeRoleBindingListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.RoleBindingList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeRoleBindingListProps) { - super(scope, id, { - ...KubeRoleBindingList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeRoleBindingList.GVK, - ...toJson_KubeRoleBindingListProps(resolved), - }; - } -} - -/** - * RoleList is a collection of Roles - * - * @schema io.k8s.api.rbac.v1.RoleList - */ -export class KubeRoleList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeRoleListProps): any { - return { - ...KubeRoleList.GVK, - ...toJson_KubeRoleListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.rbac.v1.RoleList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeRoleListProps) { - super(scope, id, { - ...KubeRoleList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeRoleList.GVK, - ...toJson_KubeRoleListProps(resolved), - }; - } -} - -/** - * PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode. - -This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContext - */ -export class KubePodSchedulingContextV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.PodSchedulingContext" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'PodSchedulingContext', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.PodSchedulingContext". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodSchedulingContextV1Alpha2Props): any { - return { - ...KubePodSchedulingContextV1Alpha2.GVK, - ...toJson_KubePodSchedulingContextV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.PodSchedulingContext" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodSchedulingContextV1Alpha2Props) { - super(scope, id, { - ...KubePodSchedulingContextV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodSchedulingContextV1Alpha2.GVK, - ...toJson_KubePodSchedulingContextV1Alpha2Props(resolved), - }; - } -} - -/** - * PodSchedulingContextList is a collection of Pod scheduling objects. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextList - */ -export class KubePodSchedulingContextListV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.PodSchedulingContextList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'PodSchedulingContextList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.PodSchedulingContextList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePodSchedulingContextListV1Alpha2Props): any { - return { - ...KubePodSchedulingContextListV1Alpha2.GVK, - ...toJson_KubePodSchedulingContextListV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.PodSchedulingContextList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePodSchedulingContextListV1Alpha2Props) { - super(scope, id, { - ...KubePodSchedulingContextListV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePodSchedulingContextListV1Alpha2.GVK, - ...toJson_KubePodSchedulingContextListV1Alpha2Props(resolved), - }; - } -} - -/** - * ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. - -This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaim - */ -export class KubeResourceClaimV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.ResourceClaim" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'ResourceClaim', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.ResourceClaim". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceClaimV1Alpha2Props): any { - return { - ...KubeResourceClaimV1Alpha2.GVK, - ...toJson_KubeResourceClaimV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.ResourceClaim" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceClaimV1Alpha2Props) { - super(scope, id, { - ...KubeResourceClaimV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceClaimV1Alpha2.GVK, - ...toJson_KubeResourceClaimV1Alpha2Props(resolved), - }; - } -} - -/** - * ResourceClaimList is a collection of claims. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimList - */ -export class KubeResourceClaimListV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.ResourceClaimList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'ResourceClaimList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.ResourceClaimList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceClaimListV1Alpha2Props): any { - return { - ...KubeResourceClaimListV1Alpha2.GVK, - ...toJson_KubeResourceClaimListV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.ResourceClaimList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceClaimListV1Alpha2Props) { - super(scope, id, { - ...KubeResourceClaimListV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceClaimListV1Alpha2.GVK, - ...toJson_KubeResourceClaimListV1Alpha2Props(resolved), - }; - } -} - -/** - * ResourceClaimTemplate is used to produce ResourceClaim objects. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplate - */ -export class KubeResourceClaimTemplateV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'ResourceClaimTemplate', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.ResourceClaimTemplate". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceClaimTemplateV1Alpha2Props): any { - return { - ...KubeResourceClaimTemplateV1Alpha2.GVK, - ...toJson_KubeResourceClaimTemplateV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.ResourceClaimTemplate" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceClaimTemplateV1Alpha2Props) { - super(scope, id, { - ...KubeResourceClaimTemplateV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceClaimTemplateV1Alpha2.GVK, - ...toJson_KubeResourceClaimTemplateV1Alpha2Props(resolved), - }; - } -} - -/** - * ResourceClaimTemplateList is a collection of claim templates. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList - */ -export class KubeResourceClaimTemplateListV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'ResourceClaimTemplateList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceClaimTemplateListV1Alpha2Props): any { - return { - ...KubeResourceClaimTemplateListV1Alpha2.GVK, - ...toJson_KubeResourceClaimTemplateListV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceClaimTemplateListV1Alpha2Props) { - super(scope, id, { - ...KubeResourceClaimTemplateListV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceClaimTemplateListV1Alpha2.GVK, - ...toJson_KubeResourceClaimTemplateListV1Alpha2Props(resolved), - }; - } -} - -/** - * ResourceClass is used by administrators to influence how resources are allocated. - -This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClass - */ -export class KubeResourceClassV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.ResourceClass" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'ResourceClass', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.ResourceClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceClassV1Alpha2Props): any { - return { - ...KubeResourceClassV1Alpha2.GVK, - ...toJson_KubeResourceClassV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.ResourceClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceClassV1Alpha2Props) { - super(scope, id, { - ...KubeResourceClassV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceClassV1Alpha2.GVK, - ...toJson_KubeResourceClassV1Alpha2Props(resolved), - }; - } -} - -/** - * ResourceClassList is a collection of classes. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassList - */ -export class KubeResourceClassListV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.resource.v1alpha2.ResourceClassList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'resource.k8s.io/v1alpha2', - kind: 'ResourceClassList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.resource.v1alpha2.ResourceClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeResourceClassListV1Alpha2Props): any { - return { - ...KubeResourceClassListV1Alpha2.GVK, - ...toJson_KubeResourceClassListV1Alpha2Props(props), - }; - } - - /** - * Defines a "io.k8s.api.resource.v1alpha2.ResourceClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeResourceClassListV1Alpha2Props) { - super(scope, id, { - ...KubeResourceClassListV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeResourceClassListV1Alpha2.GVK, - ...toJson_KubeResourceClassListV1Alpha2Props(resolved), - }; - } -} - -/** - * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass - */ -export class KubePriorityClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClass" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'scheduling.k8s.io/v1', - kind: 'PriorityClass', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePriorityClassProps): any { - return { - ...KubePriorityClass.GVK, - ...toJson_KubePriorityClassProps(props), - }; - } - - /** - * Defines a "io.k8s.api.scheduling.v1.PriorityClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePriorityClassProps) { - super(scope, id, { - ...KubePriorityClass.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePriorityClass.GVK, - ...toJson_KubePriorityClassProps(resolved), - }; - } -} - -/** - * PriorityClassList is a collection of priority classes. - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList - */ -export class KubePriorityClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClassList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'scheduling.k8s.io/v1', - kind: 'PriorityClassList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubePriorityClassListProps): any { - return { - ...KubePriorityClassList.GVK, - ...toJson_KubePriorityClassListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.scheduling.v1.PriorityClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubePriorityClassListProps) { - super(scope, id, { - ...KubePriorityClassList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubePriorityClassList.GVK, - ...toJson_KubePriorityClassListProps(resolved), - }; - } -} - -/** - * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.CSIDriver - */ -export class KubeCsiDriver extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriver" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'CSIDriver', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriver". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCsiDriverProps): any { - return { - ...KubeCsiDriver.GVK, - ...toJson_KubeCsiDriverProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.CSIDriver" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCsiDriverProps) { - super(scope, id, { - ...KubeCsiDriver.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCsiDriver.GVK, - ...toJson_KubeCsiDriverProps(resolved), - }; - } -} - -/** - * CSIDriverList is a collection of CSIDriver objects. - * - * @schema io.k8s.api.storage.v1.CSIDriverList - */ -export class KubeCsiDriverList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriverList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'CSIDriverList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriverList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCsiDriverListProps): any { - return { - ...KubeCsiDriverList.GVK, - ...toJson_KubeCsiDriverListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.CSIDriverList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCsiDriverListProps) { - super(scope, id, { - ...KubeCsiDriverList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCsiDriverList.GVK, - ...toJson_KubeCsiDriverListProps(resolved), - }; - } -} - -/** - * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. - * - * @schema io.k8s.api.storage.v1.CSINode - */ -export class KubeCsiNode extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINode" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'CSINode', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINode". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCsiNodeProps): any { - return { - ...KubeCsiNode.GVK, - ...toJson_KubeCsiNodeProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.CSINode" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCsiNodeProps) { - super(scope, id, { - ...KubeCsiNode.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCsiNode.GVK, - ...toJson_KubeCsiNodeProps(resolved), - }; - } -} - -/** - * CSINodeList is a collection of CSINode objects. - * - * @schema io.k8s.api.storage.v1.CSINodeList - */ -export class KubeCsiNodeList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINodeList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'CSINodeList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINodeList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCsiNodeListProps): any { - return { - ...KubeCsiNodeList.GVK, - ...toJson_KubeCsiNodeListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.CSINodeList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCsiNodeListProps) { - super(scope, id, { - ...KubeCsiNodeList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCsiNodeList.GVK, - ...toJson_KubeCsiNodeListProps(resolved), - }; - } -} - -/** - * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. - -For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - -The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero - -The producer of these objects can decide which approach is more suitable. - -They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity - */ -export class KubeCsiStorageCapacity extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIStorageCapacity" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'CSIStorageCapacity', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIStorageCapacity". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCsiStorageCapacityProps): any { - return { - ...KubeCsiStorageCapacity.GVK, - ...toJson_KubeCsiStorageCapacityProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.CSIStorageCapacity" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityProps) { - super(scope, id, { - ...KubeCsiStorageCapacity.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCsiStorageCapacity.GVK, - ...toJson_KubeCsiStorageCapacityProps(resolved), - }; - } -} - -/** - * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacityList - */ -export class KubeCsiStorageCapacityList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIStorageCapacityList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'CSIStorageCapacityList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIStorageCapacityList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCsiStorageCapacityListProps): any { - return { - ...KubeCsiStorageCapacityList.GVK, - ...toJson_KubeCsiStorageCapacityListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.CSIStorageCapacityList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityListProps) { - super(scope, id, { - ...KubeCsiStorageCapacityList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCsiStorageCapacityList.GVK, - ...toJson_KubeCsiStorageCapacityListProps(resolved), - }; - } -} - -/** - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - -StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * - * @schema io.k8s.api.storage.v1.StorageClass - */ -export class KubeStorageClass extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClass" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'StorageClass', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStorageClassProps): any { - return { - ...KubeStorageClass.GVK, - ...toJson_KubeStorageClassProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.StorageClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStorageClassProps) { - super(scope, id, { - ...KubeStorageClass.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStorageClass.GVK, - ...toJson_KubeStorageClassProps(resolved), - }; - } -} - -/** - * StorageClassList is a collection of storage classes. - * - * @schema io.k8s.api.storage.v1.StorageClassList - */ -export class KubeStorageClassList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClassList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'StorageClassList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStorageClassListProps): any { - return { - ...KubeStorageClassList.GVK, - ...toJson_KubeStorageClassListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.StorageClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStorageClassListProps) { - super(scope, id, { - ...KubeStorageClassList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStorageClassList.GVK, - ...toJson_KubeStorageClassListProps(resolved), - }; - } -} - -/** - * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - -VolumeAttachment objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.VolumeAttachment - */ -export class KubeVolumeAttachment extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachment" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'VolumeAttachment', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachment". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeVolumeAttachmentProps): any { - return { - ...KubeVolumeAttachment.GVK, - ...toJson_KubeVolumeAttachmentProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.VolumeAttachment" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeVolumeAttachmentProps) { - super(scope, id, { - ...KubeVolumeAttachment.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeVolumeAttachment.GVK, - ...toJson_KubeVolumeAttachmentProps(resolved), - }; - } -} - -/** - * VolumeAttachmentList is a collection of VolumeAttachment objects. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList - */ -export class KubeVolumeAttachmentList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachmentList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1', - kind: 'VolumeAttachmentList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachmentList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeVolumeAttachmentListProps): any { - return { - ...KubeVolumeAttachmentList.GVK, - ...toJson_KubeVolumeAttachmentListProps(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1.VolumeAttachmentList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeVolumeAttachmentListProps) { - super(scope, id, { - ...KubeVolumeAttachmentList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeVolumeAttachmentList.GVK, - ...toJson_KubeVolumeAttachmentListProps(resolved), - }; - } -} - -/** - * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClass - */ -export class KubeVolumeAttributesClassV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1alpha1.VolumeAttributesClass" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1alpha1', - kind: 'VolumeAttributesClass', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1alpha1.VolumeAttributesClass". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeVolumeAttributesClassV1Alpha1Props): any { - return { - ...KubeVolumeAttributesClassV1Alpha1.GVK, - ...toJson_KubeVolumeAttributesClassV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1alpha1.VolumeAttributesClass" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeVolumeAttributesClassV1Alpha1Props) { - super(scope, id, { - ...KubeVolumeAttributesClassV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeVolumeAttributesClassV1Alpha1.GVK, - ...toJson_KubeVolumeAttributesClassV1Alpha1Props(resolved), - }; - } -} - -/** - * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClassList - */ -export class KubeVolumeAttributesClassListV1Alpha1 extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.api.storage.v1alpha1.VolumeAttributesClassList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'storage.k8s.io/v1alpha1', - kind: 'VolumeAttributesClassList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.api.storage.v1alpha1.VolumeAttributesClassList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeVolumeAttributesClassListV1Alpha1Props): any { - return { - ...KubeVolumeAttributesClassListV1Alpha1.GVK, - ...toJson_KubeVolumeAttributesClassListV1Alpha1Props(props), - }; - } - - /** - * Defines a "io.k8s.api.storage.v1alpha1.VolumeAttributesClassList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeVolumeAttributesClassListV1Alpha1Props) { - super(scope, id, { - ...KubeVolumeAttributesClassListV1Alpha1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeVolumeAttributesClassListV1Alpha1.GVK, - ...toJson_KubeVolumeAttributesClassListV1Alpha1Props(resolved), - }; - } -} - -/** - * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition - */ -export class KubeCustomResourceDefinition extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apiextensions.k8s.io/v1', - kind: 'CustomResourceDefinition', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCustomResourceDefinitionProps): any { - return { - ...KubeCustomResourceDefinition.GVK, - ...toJson_KubeCustomResourceDefinitionProps(props), - }; - } - - /** - * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCustomResourceDefinitionProps) { - super(scope, id, { - ...KubeCustomResourceDefinition.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCustomResourceDefinition.GVK, - ...toJson_KubeCustomResourceDefinitionProps(resolved), - }; - } -} - -/** - * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList - */ -export class KubeCustomResourceDefinitionList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apiextensions.k8s.io/v1', - kind: 'CustomResourceDefinitionList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeCustomResourceDefinitionListProps): any { - return { - ...KubeCustomResourceDefinitionList.GVK, - ...toJson_KubeCustomResourceDefinitionListProps(props), - }; - } - - /** - * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeCustomResourceDefinitionListProps) { - super(scope, id, { - ...KubeCustomResourceDefinitionList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeCustomResourceDefinitionList.GVK, - ...toJson_KubeCustomResourceDefinitionListProps(resolved), - }; - } -} - -/** - * Status is a return value for calls that don't return other objects. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status - */ -export class KubeStatus extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.apimachinery.pkg.apis.meta.v1.Status" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'v1', - kind: 'Status', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.apimachinery.pkg.apis.meta.v1.Status". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeStatusProps = {}): any { - return { - ...KubeStatus.GVK, - ...toJson_KubeStatusProps(props), - }; - } - - /** - * Defines a "io.k8s.apimachinery.pkg.apis.meta.v1.Status" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeStatusProps = {}) { - super(scope, id, { - ...KubeStatus.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeStatus.GVK, - ...toJson_KubeStatusProps(resolved), - }; - } -} - -/** - * APIService represents a server for a particular GroupVersion. Name must be "version.group". - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService - */ -export class KubeApiService extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apiregistration.k8s.io/v1', - kind: 'APIService', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeApiServiceProps = {}): any { - return { - ...KubeApiService.GVK, - ...toJson_KubeApiServiceProps(props), - }; - } - - /** - * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeApiServiceProps = {}) { - super(scope, id, { - ...KubeApiService.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeApiService.GVK, - ...toJson_KubeApiServiceProps(resolved), - }; - } -} - -/** - * APIServiceList is a list of APIService objects. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList - */ -export class KubeApiServiceList extends ApiObject { - /** - * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'apiregistration.k8s.io/v1', - kind: 'APIServiceList', - } - - /** - * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: KubeApiServiceListProps): any { - return { - ...KubeApiServiceList.GVK, - ...toJson_KubeApiServiceListProps(props), - }; - } - - /** - * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: KubeApiServiceListProps) { - super(scope, id, { - ...KubeApiServiceList.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...KubeApiServiceList.GVK, - ...toJson_KubeApiServiceListProps(resolved), - }; - } -} - -/** - * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration - */ -export interface KubeMutatingWebhookConfigurationProps { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Webhooks is a list of webhooks and the affected resources and operations. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#webhooks - */ - readonly webhooks?: MutatingWebhook[]; - -} - -/** - * Converts an object of type 'KubeMutatingWebhookConfigurationProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeMutatingWebhookConfigurationProps(obj: KubeMutatingWebhookConfigurationProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'webhooks': obj.webhooks?.map(y => toJson_MutatingWebhook(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList - */ -export interface KubeMutatingWebhookConfigurationListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of MutatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#items - */ - readonly items: KubeMutatingWebhookConfigurationProps[]; - -} - -/** - * Converts an object of type 'KubeMutatingWebhookConfigurationListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeMutatingWebhookConfigurationListProps(obj: KubeMutatingWebhookConfigurationListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeMutatingWebhookConfigurationProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration - */ -export interface KubeValidatingWebhookConfigurationProps { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Webhooks is a list of webhooks and the affected resources and operations. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#webhooks - */ - readonly webhooks?: ValidatingWebhook[]; - -} - -/** - * Converts an object of type 'KubeValidatingWebhookConfigurationProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingWebhookConfigurationProps(obj: KubeValidatingWebhookConfigurationProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'webhooks': obj.webhooks?.map(y => toJson_ValidatingWebhook(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList - */ -export interface KubeValidatingWebhookConfigurationListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of ValidatingWebhookConfiguration. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#items - */ - readonly items: KubeValidatingWebhookConfigurationProps[]; - -} - -/** - * Converts an object of type 'KubeValidatingWebhookConfigurationListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingWebhookConfigurationListProps(obj: KubeValidatingWebhookConfigurationListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeValidatingWebhookConfigurationProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy - */ -export interface KubeValidatingAdmissionPolicyV1Alpha1Props { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy#spec - */ - readonly spec?: ValidatingAdmissionPolicySpecV1Alpha1; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyV1Alpha1Props(obj: KubeValidatingAdmissionPolicyV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ValidatingAdmissionPolicySpecV1Alpha1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. - * - * For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. - * - * The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding - */ -export interface KubeValidatingAdmissionPolicyBindingV1Alpha1Props { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding#spec - */ - readonly spec?: ValidatingAdmissionPolicyBindingSpecV1Alpha1; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyBindingV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyBindingV1Alpha1Props(obj: KubeValidatingAdmissionPolicyBindingV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ValidatingAdmissionPolicyBindingSpecV1Alpha1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList - */ -export interface KubeValidatingAdmissionPolicyBindingListV1Alpha1Props { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of PolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList#items - */ - readonly items?: KubeValidatingAdmissionPolicyBindingV1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyBindingListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyBindingListV1Alpha1Props(obj: KubeValidatingAdmissionPolicyBindingListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeValidatingAdmissionPolicyBindingV1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList - */ -export interface KubeValidatingAdmissionPolicyListV1Alpha1Props { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList#items - */ - readonly items?: KubeValidatingAdmissionPolicyV1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyListV1Alpha1Props(obj: KubeValidatingAdmissionPolicyListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeValidatingAdmissionPolicyV1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy - */ -export interface KubeValidatingAdmissionPolicyV1Beta1Props { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy#spec - */ - readonly spec?: ValidatingAdmissionPolicySpecV1Beta1; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyV1Beta1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyV1Beta1Props(obj: KubeValidatingAdmissionPolicyV1Beta1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ValidatingAdmissionPolicySpecV1Beta1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. - * - * For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. - * - * The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding - */ -export interface KubeValidatingAdmissionPolicyBindingV1Beta1Props { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding#spec - */ - readonly spec?: ValidatingAdmissionPolicyBindingSpecV1Beta1; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyBindingV1Beta1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyBindingV1Beta1Props(obj: KubeValidatingAdmissionPolicyBindingV1Beta1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ValidatingAdmissionPolicyBindingSpecV1Beta1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList - */ -export interface KubeValidatingAdmissionPolicyBindingListV1Beta1Props { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of PolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList#items - */ - readonly items?: KubeValidatingAdmissionPolicyBindingV1Beta1Props[]; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyBindingListV1Beta1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyBindingListV1Beta1Props(obj: KubeValidatingAdmissionPolicyBindingListV1Beta1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeValidatingAdmissionPolicyBindingV1Beta1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList - */ -export interface KubeValidatingAdmissionPolicyListV1Beta1Props { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of ValidatingAdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList#items - */ - readonly items?: KubeValidatingAdmissionPolicyV1Beta1Props[]; - -} - -/** - * Converts an object of type 'KubeValidatingAdmissionPolicyListV1Beta1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeValidatingAdmissionPolicyListV1Beta1Props(obj: KubeValidatingAdmissionPolicyListV1Beta1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeValidatingAdmissionPolicyV1Beta1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Storage version of a specific resource. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion - */ -export interface KubeStorageVersionV1Alpha1Props { - /** - * The name is .. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec is an empty spec. It is here to comply with Kubernetes API style. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#spec - */ - readonly spec: any; - -} - -/** - * Converts an object of type 'KubeStorageVersionV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStorageVersionV1Alpha1Props(obj: KubeStorageVersionV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': obj.spec, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A list of StorageVersions. - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList - */ -export interface KubeStorageVersionListV1Alpha1Props { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items holds a list of StorageVersion - * - * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#items - */ - readonly items: KubeStorageVersionV1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeStorageVersionListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStorageVersionListV1Alpha1Props(obj: KubeStorageVersionListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeStorageVersionV1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - * - * @schema io.k8s.api.apps.v1.ControllerRevision - */ -export interface KubeControllerRevisionProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.ControllerRevision#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Data is the serialized representation of the state. - * - * @schema io.k8s.api.apps.v1.ControllerRevision#data - */ - readonly data?: any; - - /** - * Revision indicates the revision of the state represented by Data. - * - * @schema io.k8s.api.apps.v1.ControllerRevision#revision - */ - readonly revision: number; - -} - -/** - * Converts an object of type 'KubeControllerRevisionProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeControllerRevisionProps(obj: KubeControllerRevisionProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'data': obj.data, - 'revision': obj.revision, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ControllerRevisionList is a resource containing a list of ControllerRevision objects. - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList - */ -export interface KubeControllerRevisionListProps { - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of ControllerRevisions - * - * @schema io.k8s.api.apps.v1.ControllerRevisionList#items - */ - readonly items: KubeControllerRevisionProps[]; - -} - -/** - * Converts an object of type 'KubeControllerRevisionListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeControllerRevisionListProps(obj: KubeControllerRevisionListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeControllerRevisionProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DaemonSet represents the configuration of a daemon set. - * - * @schema io.k8s.api.apps.v1.DaemonSet - */ -export interface KubeDaemonSetProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.DaemonSet#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.apps.v1.DaemonSet#spec - */ - readonly spec?: DaemonSetSpec; - -} - -/** - * Converts an object of type 'KubeDaemonSetProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeDaemonSetProps(obj: KubeDaemonSetProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_DaemonSetSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DaemonSetList is a collection of daemon sets. - * - * @schema io.k8s.api.apps.v1.DaemonSetList - */ -export interface KubeDaemonSetListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.DaemonSetList#metadata - */ - readonly metadata?: ListMeta; - - /** - * A list of daemon sets. - * - * @schema io.k8s.api.apps.v1.DaemonSetList#items - */ - readonly items: KubeDaemonSetProps[]; - -} - -/** - * Converts an object of type 'KubeDaemonSetListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeDaemonSetListProps(obj: KubeDaemonSetListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeDaemonSetProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Deployment enables declarative updates for Pods and ReplicaSets. - * - * @schema io.k8s.api.apps.v1.Deployment - */ -export interface KubeDeploymentProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.Deployment#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the Deployment. - * - * @schema io.k8s.api.apps.v1.Deployment#spec - */ - readonly spec?: DeploymentSpec; - -} - -/** - * Converts an object of type 'KubeDeploymentProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeDeploymentProps(obj: KubeDeploymentProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_DeploymentSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DeploymentList is a list of Deployments. - * - * @schema io.k8s.api.apps.v1.DeploymentList - */ -export interface KubeDeploymentListProps { - /** - * Standard list metadata. - * - * @schema io.k8s.api.apps.v1.DeploymentList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of Deployments. - * - * @schema io.k8s.api.apps.v1.DeploymentList#items - */ - readonly items: KubeDeploymentProps[]; - -} - -/** - * Converts an object of type 'KubeDeploymentListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeDeploymentListProps(obj: KubeDeploymentListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeDeploymentProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ReplicaSet ensures that a specified number of pod replicas are running at any given time. - * - * @schema io.k8s.api.apps.v1.ReplicaSet - */ -export interface KubeReplicaSetProps { - /** - * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.ReplicaSet#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.apps.v1.ReplicaSet#spec - */ - readonly spec?: ReplicaSetSpec; - -} - -/** - * Converts an object of type 'KubeReplicaSetProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeReplicaSetProps(obj: KubeReplicaSetProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ReplicaSetSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ReplicaSetList is a collection of ReplicaSets. - * - * @schema io.k8s.api.apps.v1.ReplicaSetList - */ -export interface KubeReplicaSetListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.apps.v1.ReplicaSetList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * - * @schema io.k8s.api.apps.v1.ReplicaSetList#items - */ - readonly items: KubeReplicaSetProps[]; - -} - -/** - * Converts an object of type 'KubeReplicaSetListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeReplicaSetListProps(obj: KubeReplicaSetListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeReplicaSetProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - * - Network: A single stable DNS and hostname. - * - Storage: As many VolumeClaims as requested. - * - * The StatefulSet guarantees that a given network identity will always map to the same storage identity. - * - * @schema io.k8s.api.apps.v1.StatefulSet - */ -export interface KubeStatefulSetProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.StatefulSet#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the desired identities of pods in this set. - * - * @schema io.k8s.api.apps.v1.StatefulSet#spec - */ - readonly spec?: StatefulSetSpec; - -} - -/** - * Converts an object of type 'KubeStatefulSetProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStatefulSetProps(obj: KubeStatefulSetProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_StatefulSetSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatefulSetList is a collection of StatefulSets. - * - * @schema io.k8s.api.apps.v1.StatefulSetList - */ -export interface KubeStatefulSetListProps { - /** - * Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.apps.v1.StatefulSetList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of stateful sets. - * - * @schema io.k8s.api.apps.v1.StatefulSetList#items - */ - readonly items: KubeStatefulSetProps[]; - -} - -/** - * Converts an object of type 'KubeStatefulSetListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStatefulSetListProps(obj: KubeStatefulSetListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeStatefulSetProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. - * - * @schema io.k8s.api.authentication.v1.SelfSubjectReview - */ -export interface KubeSelfSubjectReviewProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1.SelfSubjectReview#metadata - */ - readonly metadata?: ObjectMeta; - -} - -/** - * Converts an object of type 'KubeSelfSubjectReviewProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSelfSubjectReviewProps(obj: KubeSelfSubjectReviewProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TokenRequest requests a token for a given service account. - * - * @schema io.k8s.api.authentication.v1.TokenRequest - */ -export interface KubeTokenRequestProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1.TokenRequest#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec holds information about the request being evaluated - * - * @schema io.k8s.api.authentication.v1.TokenRequest#spec - */ - readonly spec: TokenRequestSpec; - -} - -/** - * Converts an object of type 'KubeTokenRequestProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeTokenRequestProps(obj: KubeTokenRequestProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_TokenRequestSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - * - * @schema io.k8s.api.authentication.v1.TokenReview - */ -export interface KubeTokenReviewProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1.TokenReview#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec holds information about the request being evaluated - * - * @schema io.k8s.api.authentication.v1.TokenReview#spec - */ - readonly spec: TokenReviewSpec; - -} - -/** - * Converts an object of type 'KubeTokenReviewProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeTokenReviewProps(obj: KubeTokenReviewProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_TokenReviewSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. - * - * @schema io.k8s.api.authentication.v1alpha1.SelfSubjectReview - */ -export interface KubeSelfSubjectReviewV1Alpha1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1alpha1.SelfSubjectReview#metadata - */ - readonly metadata?: ObjectMeta; - -} - -/** - * Converts an object of type 'KubeSelfSubjectReviewV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSelfSubjectReviewV1Alpha1Props(obj: KubeSelfSubjectReviewV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. - * - * @schema io.k8s.api.authentication.v1beta1.SelfSubjectReview - */ -export interface KubeSelfSubjectReviewV1Beta1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authentication.v1beta1.SelfSubjectReview#metadata - */ - readonly metadata?: ObjectMeta; - -} - -/** - * Converts an object of type 'KubeSelfSubjectReviewV1Beta1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSelfSubjectReviewV1Beta1Props(obj: KubeSelfSubjectReviewV1Beta1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview - */ -export interface KubeLocalSubjectAccessReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - * - * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#spec - */ - readonly spec: SubjectAccessReviewSpec; - -} - -/** - * Converts an object of type 'KubeLocalSubjectAccessReviewProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeLocalSubjectAccessReviewProps(obj: KubeLocalSubjectAccessReviewProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_SubjectAccessReviewSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview - */ -export interface KubeSelfSubjectAccessReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec holds information about the request being evaluated. user and groups must be empty - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#spec - */ - readonly spec: SelfSubjectAccessReviewSpec; - -} - -/** - * Converts an object of type 'KubeSelfSubjectAccessReviewProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSelfSubjectAccessReviewProps(obj: KubeSelfSubjectAccessReviewProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_SelfSubjectAccessReviewSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview - */ -export interface KubeSelfSubjectRulesReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec holds information about the request being evaluated. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#spec - */ - readonly spec: SelfSubjectRulesReviewSpec; - -} - -/** - * Converts an object of type 'KubeSelfSubjectRulesReviewProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSelfSubjectRulesReviewProps(obj: KubeSelfSubjectRulesReviewProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_SelfSubjectRulesReviewSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SubjectAccessReview checks whether or not a user or group can perform an action. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview - */ -export interface KubeSubjectAccessReviewProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec holds information about the request being evaluated - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReview#spec - */ - readonly spec: SubjectAccessReviewSpec; - -} - -/** - * Converts an object of type 'KubeSubjectAccessReviewProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSubjectAccessReviewProps(obj: KubeSubjectAccessReviewProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_SubjectAccessReviewSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * configuration of a horizontal pod autoscaler. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler - */ -export interface KubeHorizontalPodAutoscalerProps { - /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#spec - */ - readonly spec?: HorizontalPodAutoscalerSpec; - -} - -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeHorizontalPodAutoscalerProps(obj: KubeHorizontalPodAutoscalerProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_HorizontalPodAutoscalerSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList - */ -export interface KubeHorizontalPodAutoscalerListProps { - /** - * Standard list metadata. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#items - */ - readonly items: KubeHorizontalPodAutoscalerProps[]; - -} - -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeHorizontalPodAutoscalerListProps(obj: KubeHorizontalPodAutoscalerListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Scale represents a scaling request for a resource. - * - * @schema io.k8s.api.autoscaling.v1.Scale - */ -export interface KubeScaleProps { - /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * - * @schema io.k8s.api.autoscaling.v1.Scale#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v1.Scale#spec - */ - readonly spec?: ScaleSpec; - -} - -/** - * Converts an object of type 'KubeScaleProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeScaleProps(obj: KubeScaleProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ScaleSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler - */ -export interface KubeHorizontalPodAutoscalerV2Props { - /** - * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler#spec - */ - readonly spec?: HorizontalPodAutoscalerSpecV2; - -} - -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerV2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeHorizontalPodAutoscalerV2Props(obj: KubeHorizontalPodAutoscalerV2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_HorizontalPodAutoscalerSpecV2(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList - */ -export interface KubeHorizontalPodAutoscalerListV2Props { - /** - * metadata is the standard list metadata. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of horizontal pod autoscaler objects. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList#items - */ - readonly items: KubeHorizontalPodAutoscalerV2Props[]; - -} - -/** - * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeHorizontalPodAutoscalerListV2Props(obj: KubeHorizontalPodAutoscalerListV2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerV2Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CronJob represents the configuration of a single cron job. - * - * @schema io.k8s.api.batch.v1.CronJob - */ -export interface KubeCronJobProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.CronJob#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1.CronJob#spec - */ - readonly spec?: CronJobSpec; - -} - -/** - * Converts an object of type 'KubeCronJobProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCronJobProps(obj: KubeCronJobProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_CronJobSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CronJobList is a collection of cron jobs. - * - * @schema io.k8s.api.batch.v1.CronJobList - */ -export interface KubeCronJobListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.CronJobList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of CronJobs. - * - * @schema io.k8s.api.batch.v1.CronJobList#items - */ - readonly items: KubeCronJobProps[]; - -} - -/** - * Converts an object of type 'KubeCronJobListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCronJobListProps(obj: KubeCronJobListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeCronJobProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Job represents the configuration of a single job. - * - * @schema io.k8s.api.batch.v1.Job - */ -export interface KubeJobProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.Job#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1.Job#spec - */ - readonly spec?: JobSpec; - -} - -/** - * Converts an object of type 'KubeJobProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeJobProps(obj: KubeJobProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_JobSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * JobList is a collection of jobs. - * - * @schema io.k8s.api.batch.v1.JobList - */ -export interface KubeJobListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.JobList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of Jobs. - * - * @schema io.k8s.api.batch.v1.JobList#items - */ - readonly items: KubeJobProps[]; - -} - -/** - * Converts an object of type 'KubeJobListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeJobListProps(obj: KubeJobListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeJobProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. - * - * Kubelets use this API to obtain: - * 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). - * 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). - * - * This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest - */ -export interface KubeCertificateSigningRequestProps { - /** - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#spec - */ - readonly spec: CertificateSigningRequestSpec; - -} - -/** - * Converts an object of type 'KubeCertificateSigningRequestProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCertificateSigningRequestProps(obj: KubeCertificateSigningRequestProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_CertificateSigningRequestSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CertificateSigningRequestList is a collection of CertificateSigningRequest objects - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList - */ -export interface KubeCertificateSigningRequestListProps { - /** - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a collection of CertificateSigningRequest objects - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#items - */ - readonly items: KubeCertificateSigningRequestProps[]; - -} - -/** - * Converts an object of type 'KubeCertificateSigningRequestListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCertificateSigningRequestListProps(obj: KubeCertificateSigningRequestListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeCertificateSigningRequestProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). - * - * ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. - * - * It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundle - */ -export interface KubeClusterTrustBundleV1Alpha1Props { - /** - * metadata contains the object metadata. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundle#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec contains the signer (if any) and trust anchors. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundle#spec - */ - readonly spec: ClusterTrustBundleSpecV1Alpha1; - -} - -/** - * Converts an object of type 'KubeClusterTrustBundleV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeClusterTrustBundleV1Alpha1Props(obj: KubeClusterTrustBundleV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ClusterTrustBundleSpecV1Alpha1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterTrustBundleList is a collection of ClusterTrustBundle objects - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList - */ -export interface KubeClusterTrustBundleListV1Alpha1Props { - /** - * metadata contains the list metadata. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a collection of ClusterTrustBundle objects - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList#items - */ - readonly items: KubeClusterTrustBundleV1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeClusterTrustBundleListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeClusterTrustBundleListV1Alpha1Props(obj: KubeClusterTrustBundleListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeClusterTrustBundleV1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Lease defines a lease concept. - * - * @schema io.k8s.api.coordination.v1.Lease - */ -export interface KubeLeaseProps { - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.coordination.v1.Lease#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.coordination.v1.Lease#spec - */ - readonly spec?: LeaseSpec; - -} - -/** - * Converts an object of type 'KubeLeaseProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeLeaseProps(obj: KubeLeaseProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_LeaseSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LeaseList is a list of Lease objects. - * - * @schema io.k8s.api.coordination.v1.LeaseList - */ -export interface KubeLeaseListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.coordination.v1.LeaseList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.coordination.v1.LeaseList#items - */ - readonly items: KubeLeaseProps[]; - -} - -/** - * Converts an object of type 'KubeLeaseListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeLeaseListProps(obj: KubeLeaseListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeLeaseProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. - * - * @schema io.k8s.api.core.v1.Binding - */ -export interface KubeBindingProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Binding#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * The target object that you want to bind to the standard object. - * - * @schema io.k8s.api.core.v1.Binding#target - */ - readonly target: ObjectReference; - -} - -/** - * Converts an object of type 'KubeBindingProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeBindingProps(obj: KubeBindingProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'target': toJson_ObjectReference(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatus - */ -export interface KubeComponentStatusProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ComponentStatus#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * List of component conditions observed - * - * @schema io.k8s.api.core.v1.ComponentStatus#conditions - */ - readonly conditions?: ComponentCondition[]; - -} - -/** - * Converts an object of type 'KubeComponentStatusProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeComponentStatusProps(obj: KubeComponentStatusProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'conditions': obj.conditions?.map(y => toJson_ComponentCondition(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ - * - * @schema io.k8s.api.core.v1.ComponentStatusList - */ -export interface KubeComponentStatusListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ComponentStatusList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of ComponentStatus objects. - * - * @schema io.k8s.api.core.v1.ComponentStatusList#items - */ - readonly items: KubeComponentStatusProps[]; - -} - -/** - * Converts an object of type 'KubeComponentStatusListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeComponentStatusListProps(obj: KubeComponentStatusListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeComponentStatusProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMap holds configuration data for pods to consume. - * - * @schema io.k8s.api.core.v1.ConfigMap - */ -export interface KubeConfigMapProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ConfigMap#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. - * - * @schema io.k8s.api.core.v1.ConfigMap#binaryData - */ - readonly binaryData?: { [key: string]: string }; - - /** - * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. - * - * @schema io.k8s.api.core.v1.ConfigMap#data - */ - readonly data?: { [key: string]: string }; - - /** - * Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. - * - * @schema io.k8s.api.core.v1.ConfigMap#immutable - */ - readonly immutable?: boolean; - -} - -/** - * Converts an object of type 'KubeConfigMapProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeConfigMapProps(obj: KubeConfigMapProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'binaryData': ((obj.binaryData) === undefined) ? undefined : (Object.entries(obj.binaryData).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'data': ((obj.data) === undefined) ? undefined : (Object.entries(obj.data).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'immutable': obj.immutable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMapList is a resource containing a list of ConfigMap objects. - * - * @schema io.k8s.api.core.v1.ConfigMapList - */ -export interface KubeConfigMapListProps { - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ConfigMapList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of ConfigMaps. - * - * @schema io.k8s.api.core.v1.ConfigMapList#items - */ - readonly items: KubeConfigMapProps[]; - -} - -/** - * Converts an object of type 'KubeConfigMapListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeConfigMapListProps(obj: KubeConfigMapListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeConfigMapProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Endpoints is a collection of endpoints that implement the actual service. Example: - * - * Name: "mysvc", - * Subsets: [ - * { - * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - * }, - * { - * Addresses: [{"ip": "10.10.3.3"}], - * Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] - * }, - * ] - * - * @schema io.k8s.api.core.v1.Endpoints - */ -export interface KubeEndpointsProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Endpoints#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - * - * @schema io.k8s.api.core.v1.Endpoints#subsets - */ - readonly subsets?: EndpointSubset[]; - -} - -/** - * Converts an object of type 'KubeEndpointsProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEndpointsProps(obj: KubeEndpointsProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'subsets': obj.subsets?.map(y => toJson_EndpointSubset(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointsList is a list of endpoints. - * - * @schema io.k8s.api.core.v1.EndpointsList - */ -export interface KubeEndpointsListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.EndpointsList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of endpoints. - * - * @schema io.k8s.api.core.v1.EndpointsList#items - */ - readonly items: KubeEndpointsProps[]; - -} - -/** - * Converts an object of type 'KubeEndpointsListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEndpointsListProps(obj: KubeEndpointsListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeEndpointsProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. - * - * @schema io.k8s.api.events.v1.Event - */ -export interface KubeEventProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.events.v1.Event#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1.Event#action - */ - readonly action?: string; - - /** - * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedCount - */ - readonly deprecatedCount?: number; - - /** - * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedFirstTimestamp - */ - readonly deprecatedFirstTimestamp?: Date; - - /** - * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedLastTimestamp - */ - readonly deprecatedLastTimestamp?: Date; - - /** - * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. - * - * @schema io.k8s.api.events.v1.Event#deprecatedSource - */ - readonly deprecatedSource?: EventSource; - - /** - * eventTime is the time when this Event was first observed. It is required. - * - * @schema io.k8s.api.events.v1.Event#eventTime - */ - readonly eventTime: Date; - - /** - * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - * - * @schema io.k8s.api.events.v1.Event#note - */ - readonly note?: string; - - /** - * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1.Event#reason - */ - readonly reason?: string; - - /** - * regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - * - * @schema io.k8s.api.events.v1.Event#regarding - */ - readonly regarding?: ObjectReference; - - /** - * related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - * - * @schema io.k8s.api.events.v1.Event#related - */ - readonly related?: ObjectReference; - - /** - * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. - * - * @schema io.k8s.api.events.v1.Event#reportingController - */ - readonly reportingController?: string; - - /** - * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. - * - * @schema io.k8s.api.events.v1.Event#reportingInstance - */ - readonly reportingInstance?: string; - - /** - * series is data about the Event series this event represents or nil if it's a singleton Event. - * - * @schema io.k8s.api.events.v1.Event#series - */ - readonly series?: EventSeries; - - /** - * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. - * - * @schema io.k8s.api.events.v1.Event#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'KubeEventProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEventProps(obj: KubeEventProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'action': obj.action, - 'deprecatedCount': obj.deprecatedCount, - 'deprecatedFirstTimestamp': obj.deprecatedFirstTimestamp?.toISOString(), - 'deprecatedLastTimestamp': obj.deprecatedLastTimestamp?.toISOString(), - 'deprecatedSource': toJson_EventSource(obj.deprecatedSource), - 'eventTime': obj.eventTime?.toISOString(), - 'note': obj.note, - 'reason': obj.reason, - 'regarding': toJson_ObjectReference(obj.regarding), - 'related': toJson_ObjectReference(obj.related), - 'reportingController': obj.reportingController, - 'reportingInstance': obj.reportingInstance, - 'series': toJson_EventSeries(obj.series), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EventList is a list of Event objects. - * - * @schema io.k8s.api.events.v1.EventList - */ -export interface KubeEventListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.events.v1.EventList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.events.v1.EventList#items - */ - readonly items: KubeEventProps[]; - -} - -/** - * Converts an object of type 'KubeEventListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEventListProps(obj: KubeEventListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeEventProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitRange sets resource usage limits for each kind of resource in a Namespace. - * - * @schema io.k8s.api.core.v1.LimitRange - */ -export interface KubeLimitRangeProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.LimitRange#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.LimitRange#spec - */ - readonly spec?: LimitRangeSpec; - -} - -/** - * Converts an object of type 'KubeLimitRangeProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeLimitRangeProps(obj: KubeLimitRangeProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_LimitRangeSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitRangeList is a list of LimitRange items. - * - * @schema io.k8s.api.core.v1.LimitRangeList - */ -export interface KubeLimitRangeListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.LimitRangeList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.LimitRangeList#items - */ - readonly items: KubeLimitRangeProps[]; - -} - -/** - * Converts an object of type 'KubeLimitRangeListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeLimitRangeListProps(obj: KubeLimitRangeListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeLimitRangeProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Namespace provides a scope for Names. Use of multiple namespaces is optional. - * - * @schema io.k8s.api.core.v1.Namespace - */ -export interface KubeNamespaceProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Namespace#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Namespace#spec - */ - readonly spec?: NamespaceSpec; - -} - -/** - * Converts an object of type 'KubeNamespaceProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeNamespaceProps(obj: KubeNamespaceProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_NamespaceSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NamespaceList is a list of Namespaces. - * - * @schema io.k8s.api.core.v1.NamespaceList - */ -export interface KubeNamespaceListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.NamespaceList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * - * @schema io.k8s.api.core.v1.NamespaceList#items - */ - readonly items: KubeNamespaceProps[]; - -} - -/** - * Converts an object of type 'KubeNamespaceListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeNamespaceListProps(obj: KubeNamespaceListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeNamespaceProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). - * - * @schema io.k8s.api.core.v1.Node - */ -export interface KubeNodeProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Node#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Node#spec - */ - readonly spec?: NodeSpec; - -} - -/** - * Converts an object of type 'KubeNodeProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeNodeProps(obj: KubeNodeProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_NodeSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NodeList is the whole list of all Nodes which have been registered with master. - * - * @schema io.k8s.api.core.v1.NodeList - */ -export interface KubeNodeListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.NodeList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of nodes - * - * @schema io.k8s.api.core.v1.NodeList#items - */ - readonly items: KubeNodeProps[]; - -} - -/** - * Converts an object of type 'KubeNodeListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeNodeListProps(obj: KubeNodeListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeNodeProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolume - */ -export interface KubePersistentVolumeProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PersistentVolume#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolume#spec - */ - readonly spec?: PersistentVolumeSpec; - -} - -/** - * Converts an object of type 'KubePersistentVolumeProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePersistentVolumeProps(obj: KubePersistentVolumeProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PersistentVolumeSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeClaim is a user's request for and claim to a persistent volume - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim - */ -export interface KubePersistentVolumeClaimProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaim#spec - */ - readonly spec?: PersistentVolumeClaimSpec; - -} - -/** - * Converts an object of type 'KubePersistentVolumeClaimProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePersistentVolumeClaimProps(obj: KubePersistentVolumeClaimProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PersistentVolumeClaimSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList - */ -export interface KubePersistentVolumeClaimListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#items - */ - readonly items: KubePersistentVolumeClaimProps[]; - -} - -/** - * Converts an object of type 'KubePersistentVolumeClaimListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePersistentVolumeClaimListProps(obj: KubePersistentVolumeClaimListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePersistentVolumeClaimProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeList is a list of PersistentVolume items. - * - * @schema io.k8s.api.core.v1.PersistentVolumeList - */ -export interface KubePersistentVolumeListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PersistentVolumeList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * - * @schema io.k8s.api.core.v1.PersistentVolumeList#items - */ - readonly items: KubePersistentVolumeProps[]; - -} - -/** - * Converts an object of type 'KubePersistentVolumeListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePersistentVolumeListProps(obj: KubePersistentVolumeListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePersistentVolumeProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. - * - * @schema io.k8s.api.core.v1.Pod - */ -export interface KubePodProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Pod#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Pod#spec - */ - readonly spec?: PodSpec; - -} - -/** - * Converts an object of type 'KubePodProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodProps(obj: KubePodProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PodSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodList is a list of Pods. - * - * @schema io.k8s.api.core.v1.PodList - */ -export interface KubePodListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PodList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - * - * @schema io.k8s.api.core.v1.PodList#items - */ - readonly items: KubePodProps[]; - -} - -/** - * Converts an object of type 'KubePodListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodListProps(obj: KubePodListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePodProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodTemplate describes a template for creating copies of a predefined pod. - * - * @schema io.k8s.api.core.v1.PodTemplate - */ -export interface KubePodTemplateProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PodTemplate#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.PodTemplate#template - */ - readonly template?: PodTemplateSpec; - -} - -/** - * Converts an object of type 'KubePodTemplateProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodTemplateProps(obj: KubePodTemplateProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'template': toJson_PodTemplateSpec(obj.template), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodTemplateList is a list of PodTemplates. - * - * @schema io.k8s.api.core.v1.PodTemplateList - */ -export interface KubePodTemplateListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.PodTemplateList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of pod templates - * - * @schema io.k8s.api.core.v1.PodTemplateList#items - */ - readonly items: KubePodTemplateProps[]; - -} - -/** - * Converts an object of type 'KubePodTemplateListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodTemplateListProps(obj: KubePodTemplateListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePodTemplateProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ReplicationController represents the configuration of a replication controller. - * - * @schema io.k8s.api.core.v1.ReplicationController - */ -export interface KubeReplicationControllerProps { - /** - * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ReplicationController#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.ReplicationController#spec - */ - readonly spec?: ReplicationControllerSpec; - -} - -/** - * Converts an object of type 'KubeReplicationControllerProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeReplicationControllerProps(obj: KubeReplicationControllerProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ReplicationControllerSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ReplicationControllerList is a collection of replication controllers. - * - * @schema io.k8s.api.core.v1.ReplicationControllerList - */ -export interface KubeReplicationControllerListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ReplicationControllerList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * - * @schema io.k8s.api.core.v1.ReplicationControllerList#items - */ - readonly items: KubeReplicationControllerProps[]; - -} - -/** - * Converts an object of type 'KubeReplicationControllerListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeReplicationControllerListProps(obj: KubeReplicationControllerListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeReplicationControllerProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceQuota sets aggregate quota restrictions enforced per namespace - * - * @schema io.k8s.api.core.v1.ResourceQuota - */ -export interface KubeResourceQuotaProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ResourceQuota#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.ResourceQuota#spec - */ - readonly spec?: ResourceQuotaSpec; - -} - -/** - * Converts an object of type 'KubeResourceQuotaProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceQuotaProps(obj: KubeResourceQuotaProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ResourceQuotaSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceQuotaList is a list of ResourceQuota items. - * - * @schema io.k8s.api.core.v1.ResourceQuotaList - */ -export interface KubeResourceQuotaListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ResourceQuotaList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * - * @schema io.k8s.api.core.v1.ResourceQuotaList#items - */ - readonly items: KubeResourceQuotaProps[]; - -} - -/** - * Converts an object of type 'KubeResourceQuotaListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceQuotaListProps(obj: KubeResourceQuotaListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeResourceQuotaProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - * - * @schema io.k8s.api.core.v1.Secret - */ -export interface KubeSecretProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Secret#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - * - * @schema io.k8s.api.core.v1.Secret#data - */ - readonly data?: { [key: string]: string }; - - /** - * Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. - * - * @schema io.k8s.api.core.v1.Secret#immutable - */ - readonly immutable?: boolean; - - /** - * stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. - * - * @schema io.k8s.api.core.v1.Secret#stringData - */ - readonly stringData?: { [key: string]: string }; - - /** - * Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types - * - * @schema io.k8s.api.core.v1.Secret#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'KubeSecretProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSecretProps(obj: KubeSecretProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'data': ((obj.data) === undefined) ? undefined : (Object.entries(obj.data).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'immutable': obj.immutable, - 'stringData': ((obj.stringData) === undefined) ? undefined : (Object.entries(obj.stringData).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecretList is a list of Secret. - * - * @schema io.k8s.api.core.v1.SecretList - */ -export interface KubeSecretListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.SecretList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret - * - * @schema io.k8s.api.core.v1.SecretList#items - */ - readonly items: KubeSecretProps[]; - -} - -/** - * Converts an object of type 'KubeSecretListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeSecretListProps(obj: KubeSecretListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeSecretProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. - * - * @schema io.k8s.api.core.v1.Service - */ -export interface KubeServiceProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.Service#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.Service#spec - */ - readonly spec?: ServiceSpec; - -} - -/** - * Converts an object of type 'KubeServiceProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeServiceProps(obj: KubeServiceProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ServiceSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets - * - * @schema io.k8s.api.core.v1.ServiceAccount - */ -export interface KubeServiceAccountProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.ServiceAccount#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - * - * @schema io.k8s.api.core.v1.ServiceAccount#automountServiceAccountToken - */ - readonly automountServiceAccountToken?: boolean; - - /** - * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - * - * @schema io.k8s.api.core.v1.ServiceAccount#imagePullSecrets - */ - readonly imagePullSecrets?: LocalObjectReference[]; - - /** - * Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret - * - * @schema io.k8s.api.core.v1.ServiceAccount#secrets - */ - readonly secrets?: ObjectReference[]; - -} - -/** - * Converts an object of type 'KubeServiceAccountProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeServiceAccountProps(obj: KubeServiceAccountProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'automountServiceAccountToken': obj.automountServiceAccountToken, - 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_LocalObjectReference(y)), - 'secrets': obj.secrets?.map(y => toJson_ObjectReference(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceAccountList is a list of ServiceAccount objects - * - * @schema io.k8s.api.core.v1.ServiceAccountList - */ -export interface KubeServiceAccountListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ServiceAccountList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * - * @schema io.k8s.api.core.v1.ServiceAccountList#items - */ - readonly items: KubeServiceAccountProps[]; - -} - -/** - * Converts an object of type 'KubeServiceAccountListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeServiceAccountListProps(obj: KubeServiceAccountListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeServiceAccountProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceList holds a list of services. - * - * @schema io.k8s.api.core.v1.ServiceList - */ -export interface KubeServiceListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ServiceList#metadata - */ - readonly metadata?: ListMeta; - - /** - * List of services - * - * @schema io.k8s.api.core.v1.ServiceList#items - */ - readonly items: KubeServiceProps[]; - -} - -/** - * Converts an object of type 'KubeServiceListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeServiceListProps(obj: KubeServiceListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeServiceProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice - */ -export interface KubeEndpointSliceProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#addressType - */ - readonly addressType: string; - - /** - * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#endpoints - */ - readonly endpoints: Endpoint[]; - - /** - * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - * - * @schema io.k8s.api.discovery.v1.EndpointSlice#ports - */ - readonly ports?: EndpointPort[]; - -} - -/** - * Converts an object of type 'KubeEndpointSliceProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEndpointSliceProps(obj: KubeEndpointSliceProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'addressType': obj.addressType, - 'endpoints': obj.endpoints?.map(y => toJson_Endpoint(y)), - 'ports': obj.ports?.map(y => toJson_EndpointPort(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointSliceList represents a list of endpoint slices - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList - */ -export interface KubeEndpointSliceListProps { - /** - * Standard list metadata. - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of endpoint slices - * - * @schema io.k8s.api.discovery.v1.EndpointSliceList#items - */ - readonly items: KubeEndpointSliceProps[]; - -} - -/** - * Converts an object of type 'KubeEndpointSliceListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEndpointSliceListProps(obj: KubeEndpointSliceListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeEndpointSliceProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchema - */ -export interface KubeFlowSchemaProps { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchema#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchema#spec - */ - readonly spec?: FlowSchemaSpec; - -} - -/** - * Converts an object of type 'KubeFlowSchemaProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeFlowSchemaProps(obj: KubeFlowSchemaProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_FlowSchemaSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowSchemaList is a list of FlowSchema objects. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaList - */ -export interface KubeFlowSchemaListProps { - /** - * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaList#metadata - */ - readonly metadata?: ListMeta; - - /** - * `items` is a list of FlowSchemas. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaList#items - */ - readonly items: KubeFlowSchemaProps[]; - -} - -/** - * Converts an object of type 'KubeFlowSchemaListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeFlowSchemaListProps(obj: KubeFlowSchemaListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeFlowSchemaProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfiguration represents the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration - */ -export interface KubePriorityLevelConfigurationProps { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration#spec - */ - readonly spec?: PriorityLevelConfigurationSpec; - -} - -/** - * Converts an object of type 'KubePriorityLevelConfigurationProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePriorityLevelConfigurationProps(obj: KubePriorityLevelConfigurationProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PriorityLevelConfigurationSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList - */ -export interface KubePriorityLevelConfigurationListProps { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList#metadata - */ - readonly metadata?: ListMeta; - - /** - * `items` is a list of request-priorities. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList#items - */ - readonly items: KubePriorityLevelConfigurationProps[]; - -} - -/** - * Converts an object of type 'KubePriorityLevelConfigurationListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePriorityLevelConfigurationListProps(obj: KubePriorityLevelConfigurationListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePriorityLevelConfigurationProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchema - */ -export interface KubeFlowSchemaV1Beta3Props { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchema#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchema#spec - */ - readonly spec?: FlowSchemaSpecV1Beta3; - -} - -/** - * Converts an object of type 'KubeFlowSchemaV1Beta3Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeFlowSchemaV1Beta3Props(obj: KubeFlowSchemaV1Beta3Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_FlowSchemaSpecV1Beta3(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowSchemaList is a list of FlowSchema objects. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaList - */ -export interface KubeFlowSchemaListV1Beta3Props { - /** - * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaList#metadata - */ - readonly metadata?: ListMeta; - - /** - * `items` is a list of FlowSchemas. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaList#items - */ - readonly items: KubeFlowSchemaV1Beta3Props[]; - -} - -/** - * Converts an object of type 'KubeFlowSchemaListV1Beta3Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeFlowSchemaListV1Beta3Props(obj: KubeFlowSchemaListV1Beta3Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeFlowSchemaV1Beta3Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfiguration represents the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration - */ -export interface KubePriorityLevelConfigurationV1Beta3Props { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration#spec - */ - readonly spec?: PriorityLevelConfigurationSpecV1Beta3; - -} - -/** - * Converts an object of type 'KubePriorityLevelConfigurationV1Beta3Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePriorityLevelConfigurationV1Beta3Props(obj: KubePriorityLevelConfigurationV1Beta3Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PriorityLevelConfigurationSpecV1Beta3(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList - */ -export interface KubePriorityLevelConfigurationListV1Beta3Props { - /** - * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList#metadata - */ - readonly metadata?: ListMeta; - - /** - * `items` is a list of request-priorities. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList#items - */ - readonly items: KubePriorityLevelConfigurationV1Beta3Props[]; - -} - -/** - * Converts an object of type 'KubePriorityLevelConfigurationListV1Beta3Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePriorityLevelConfigurationListV1Beta3Props(obj: KubePriorityLevelConfigurationListV1Beta3Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePriorityLevelConfigurationV1Beta3Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - * - * @schema io.k8s.api.networking.v1.Ingress - */ -export interface KubeIngressProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.Ingress#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.networking.v1.Ingress#spec - */ - readonly spec?: IngressSpec; - -} - -/** - * Converts an object of type 'KubeIngressProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeIngressProps(obj: KubeIngressProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_IngressSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. - * - * @schema io.k8s.api.networking.v1.IngressClass - */ -export interface KubeIngressClassProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.IngressClass#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.networking.v1.IngressClass#spec - */ - readonly spec?: IngressClassSpec; - -} - -/** - * Converts an object of type 'KubeIngressClassProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeIngressClassProps(obj: KubeIngressClassProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_IngressClassSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressClassList is a collection of IngressClasses. - * - * @schema io.k8s.api.networking.v1.IngressClassList - */ -export interface KubeIngressClassListProps { - /** - * Standard list metadata. - * - * @schema io.k8s.api.networking.v1.IngressClassList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of IngressClasses. - * - * @schema io.k8s.api.networking.v1.IngressClassList#items - */ - readonly items: KubeIngressClassProps[]; - -} - -/** - * Converts an object of type 'KubeIngressClassListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeIngressClassListProps(obj: KubeIngressClassListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeIngressClassProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressList is a collection of Ingress. - * - * @schema io.k8s.api.networking.v1.IngressList - */ -export interface KubeIngressListProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.IngressList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of Ingress. - * - * @schema io.k8s.api.networking.v1.IngressList#items - */ - readonly items: KubeIngressProps[]; - -} - -/** - * Converts an object of type 'KubeIngressListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeIngressListProps(obj: KubeIngressListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeIngressProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicy describes what network traffic is allowed for a set of Pods - * - * @schema io.k8s.api.networking.v1.NetworkPolicy - */ -export interface KubeNetworkPolicyProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.NetworkPolicy#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec represents the specification of the desired behavior for this NetworkPolicy. - * - * @schema io.k8s.api.networking.v1.NetworkPolicy#spec - */ - readonly spec?: NetworkPolicySpec; - -} - -/** - * Converts an object of type 'KubeNetworkPolicyProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeNetworkPolicyProps(obj: KubeNetworkPolicyProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_NetworkPolicySpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicyList is a list of NetworkPolicy objects. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList - */ -export interface KubeNetworkPolicyListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyList#items - */ - readonly items: KubeNetworkPolicyProps[]; - -} - -/** - * Converts an object of type 'KubeNetworkPolicyListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeNetworkPolicyListProps(obj: KubeNetworkPolicyListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeNetworkPolicyProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 - * - * @schema io.k8s.api.networking.v1alpha1.IPAddress - */ -export interface KubeIpAddressV1Alpha1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1alpha1.IPAddress#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.networking.v1alpha1.IPAddress#spec - */ - readonly spec?: IpAddressSpecV1Alpha1; - -} - -/** - * Converts an object of type 'KubeIpAddressV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeIpAddressV1Alpha1Props(obj: KubeIpAddressV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_IpAddressSpecV1Alpha1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IPAddressList contains a list of IPAddress. - * - * @schema io.k8s.api.networking.v1alpha1.IPAddressList - */ -export interface KubeIpAddressListV1Alpha1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1alpha1.IPAddressList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of IPAddresses. - * - * @schema io.k8s.api.networking.v1alpha1.IPAddressList#items - */ - readonly items: KubeIpAddressV1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeIpAddressListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeIpAddressListV1Alpha1Props(obj: KubeIpAddressListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeIpAddressV1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDR - */ -export interface KubeServiceCidrv1Alpha1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDR#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDR#spec - */ - readonly spec?: ServiceCidrSpecV1Alpha1; - -} - -/** - * Converts an object of type 'KubeServiceCidrv1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeServiceCidrv1Alpha1Props(obj: KubeServiceCidrv1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ServiceCidrSpecV1Alpha1(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceCIDRList contains a list of ServiceCIDR objects. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDRList - */ -export interface KubeServiceCidrListV1Alpha1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDRList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of ServiceCIDRs. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDRList#items - */ - readonly items: KubeServiceCidrv1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeServiceCidrListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeServiceCidrListV1Alpha1Props(obj: KubeServiceCidrListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeServiceCidrv1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ - * - * @schema io.k8s.api.node.v1.RuntimeClass - */ -export interface KubeRuntimeClassProps { - /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1.RuntimeClass#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. - * - * @schema io.k8s.api.node.v1.RuntimeClass#handler - */ - readonly handler: string; - - /** - * overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see - * https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ - * - * @schema io.k8s.api.node.v1.RuntimeClass#overhead - */ - readonly overhead?: Overhead; - - /** - * scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * - * @schema io.k8s.api.node.v1.RuntimeClass#scheduling - */ - readonly scheduling?: Scheduling; - -} - -/** - * Converts an object of type 'KubeRuntimeClassProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeRuntimeClassProps(obj: KubeRuntimeClassProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'handler': obj.handler, - 'overhead': toJson_Overhead(obj.overhead), - 'scheduling': toJson_Scheduling(obj.scheduling), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RuntimeClassList is a list of RuntimeClass objects. - * - * @schema io.k8s.api.node.v1.RuntimeClassList - */ -export interface KubeRuntimeClassListProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.node.v1.RuntimeClassList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is a list of schema objects. - * - * @schema io.k8s.api.node.v1.RuntimeClassList#items - */ - readonly items: KubeRuntimeClassProps[]; - -} - -/** - * Converts an object of type 'KubeRuntimeClassListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeRuntimeClassListProps(obj: KubeRuntimeClassListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeRuntimeClassProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. - * - * @schema io.k8s.api.policy.v1.Eviction - */ -export interface KubeEvictionProps { - /** - * ObjectMeta describes the pod that is being evicted. - * - * @schema io.k8s.api.policy.v1.Eviction#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * DeleteOptions may be provided - * - * @schema io.k8s.api.policy.v1.Eviction#deleteOptions - */ - readonly deleteOptions?: DeleteOptions; - -} - -/** - * Converts an object of type 'KubeEvictionProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeEvictionProps(obj: KubeEvictionProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'deleteOptions': toJson_DeleteOptions(obj.deleteOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget - */ -export interface KubePodDisruptionBudgetProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the PodDisruptionBudget. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudget#spec - */ - readonly spec?: PodDisruptionBudgetSpec; - -} - -/** - * Converts an object of type 'KubePodDisruptionBudgetProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodDisruptionBudgetProps(obj: KubePodDisruptionBudgetProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PodDisruptionBudgetSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList - */ -export interface KubePodDisruptionBudgetListProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of PodDisruptionBudgets - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#items - */ - readonly items: KubePodDisruptionBudgetProps[]; - -} - -/** - * Converts an object of type 'KubePodDisruptionBudgetListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodDisruptionBudgetListProps(obj: KubePodDisruptionBudgetListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePodDisruptionBudgetProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - * - * @schema io.k8s.api.rbac.v1.ClusterRole - */ -export interface KubeClusterRoleProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRole#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * - * @schema io.k8s.api.rbac.v1.ClusterRole#aggregationRule - */ - readonly aggregationRule?: AggregationRule; - - /** - * Rules holds all the PolicyRules for this ClusterRole - * - * @schema io.k8s.api.rbac.v1.ClusterRole#rules - */ - readonly rules?: PolicyRule[]; - -} - -/** - * Converts an object of type 'KubeClusterRoleProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeClusterRoleProps(obj: KubeClusterRoleProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'aggregationRule': toJson_AggregationRule(obj.aggregationRule), - 'rules': obj.rules?.map(y => toJson_PolicyRule(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding - */ -export interface KubeClusterRoleBindingProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#roleRef - */ - readonly roleRef: RoleRef; - - /** - * Subjects holds references to the objects the role applies to. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#subjects - */ - readonly subjects?: Subject[]; - -} - -/** - * Converts an object of type 'KubeClusterRoleBindingProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeClusterRoleBindingProps(obj: KubeClusterRoleBindingProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'roleRef': toJson_RoleRef(obj.roleRef), - 'subjects': obj.subjects?.map(y => toJson_Subject(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterRoleBindingList is a collection of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList - */ -export interface KubeClusterRoleBindingListProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of ClusterRoleBindings - * - * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#items - */ - readonly items: KubeClusterRoleBindingProps[]; - -} - -/** - * Converts an object of type 'KubeClusterRoleBindingListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeClusterRoleBindingListProps(obj: KubeClusterRoleBindingListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeClusterRoleBindingProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterRoleList is a collection of ClusterRoles - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList - */ -export interface KubeClusterRoleListProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of ClusterRoles - * - * @schema io.k8s.api.rbac.v1.ClusterRoleList#items - */ - readonly items: KubeClusterRoleProps[]; - -} - -/** - * Converts an object of type 'KubeClusterRoleListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeClusterRoleListProps(obj: KubeClusterRoleListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeClusterRoleProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - * - * @schema io.k8s.api.rbac.v1.Role - */ -export interface KubeRoleProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.Role#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Rules holds all the PolicyRules for this Role - * - * @schema io.k8s.api.rbac.v1.Role#rules - */ - readonly rules?: PolicyRule[]; - -} - -/** - * Converts an object of type 'KubeRoleProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeRoleProps(obj: KubeRoleProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'rules': obj.rules?.map(y => toJson_PolicyRule(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - * - * @schema io.k8s.api.rbac.v1.RoleBinding - */ -export interface KubeRoleBindingProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.RoleBinding#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable. - * - * @schema io.k8s.api.rbac.v1.RoleBinding#roleRef - */ - readonly roleRef: RoleRef; - - /** - * Subjects holds references to the objects the role applies to. - * - * @schema io.k8s.api.rbac.v1.RoleBinding#subjects - */ - readonly subjects?: Subject[]; - -} - -/** - * Converts an object of type 'KubeRoleBindingProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeRoleBindingProps(obj: KubeRoleBindingProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'roleRef': toJson_RoleRef(obj.roleRef), - 'subjects': obj.subjects?.map(y => toJson_Subject(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RoleBindingList is a collection of RoleBindings - * - * @schema io.k8s.api.rbac.v1.RoleBindingList - */ -export interface KubeRoleBindingListProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.RoleBindingList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of RoleBindings - * - * @schema io.k8s.api.rbac.v1.RoleBindingList#items - */ - readonly items: KubeRoleBindingProps[]; - -} - -/** - * Converts an object of type 'KubeRoleBindingListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeRoleBindingListProps(obj: KubeRoleBindingListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeRoleBindingProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RoleList is a collection of Roles - * - * @schema io.k8s.api.rbac.v1.RoleList - */ -export interface KubeRoleListProps { - /** - * Standard object's metadata. - * - * @schema io.k8s.api.rbac.v1.RoleList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is a list of Roles - * - * @schema io.k8s.api.rbac.v1.RoleList#items - */ - readonly items: KubeRoleProps[]; - -} - -/** - * Converts an object of type 'KubeRoleListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeRoleListProps(obj: KubeRoleListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeRoleProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode. - * - * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContext - */ -export interface KubePodSchedulingContextV1Alpha2Props { - /** - * Standard object metadata - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContext#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec describes where resources for the Pod are needed. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContext#spec - */ - readonly spec: PodSchedulingContextSpecV1Alpha2; - -} - -/** - * Converts an object of type 'KubePodSchedulingContextV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodSchedulingContextV1Alpha2Props(obj: KubePodSchedulingContextV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PodSchedulingContextSpecV1Alpha2(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSchedulingContextList is a collection of Pod scheduling objects. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextList - */ -export interface KubePodSchedulingContextListV1Alpha2Props { - /** - * Standard list metadata - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of PodSchedulingContext objects. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextList#items - */ - readonly items: KubePodSchedulingContextV1Alpha2Props[]; - -} - -/** - * Converts an object of type 'KubePodSchedulingContextListV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePodSchedulingContextListV1Alpha2Props(obj: KubePodSchedulingContextListV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePodSchedulingContextV1Alpha2Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. - * - * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaim - */ -export interface KubeResourceClaimV1Alpha2Props { - /** - * Standard object metadata - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaim#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaim#spec - */ - readonly spec: ResourceClaimSpecV1Alpha2; - -} - -/** - * Converts an object of type 'KubeResourceClaimV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceClaimV1Alpha2Props(obj: KubeResourceClaimV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ResourceClaimSpecV1Alpha2(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaimList is a collection of claims. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimList - */ -export interface KubeResourceClaimListV1Alpha2Props { - /** - * Standard list metadata - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of resource claims. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimList#items - */ - readonly items: KubeResourceClaimV1Alpha2Props[]; - -} - -/** - * Converts an object of type 'KubeResourceClaimListV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceClaimListV1Alpha2Props(obj: KubeResourceClaimListV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeResourceClaimV1Alpha2Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaimTemplate is used to produce ResourceClaim objects. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplate - */ -export interface KubeResourceClaimTemplateV1Alpha2Props { - /** - * Standard object metadata - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplate#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Describes the ResourceClaim that is to be generated. - * - * This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplate#spec - */ - readonly spec: ResourceClaimTemplateSpecV1Alpha2; - -} - -/** - * Converts an object of type 'KubeResourceClaimTemplateV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceClaimTemplateV1Alpha2Props(obj: KubeResourceClaimTemplateV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ResourceClaimTemplateSpecV1Alpha2(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaimTemplateList is a collection of claim templates. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList - */ -export interface KubeResourceClaimTemplateListV1Alpha2Props { - /** - * Standard list metadata - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of resource claim templates. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateList#items - */ - readonly items: KubeResourceClaimTemplateV1Alpha2Props[]; - -} - -/** - * Converts an object of type 'KubeResourceClaimTemplateListV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceClaimTemplateListV1Alpha2Props(obj: KubeResourceClaimTemplateListV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeResourceClaimTemplateV1Alpha2Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClass is used by administrators to influence how resources are allocated. - * - * This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClass - */ -export interface KubeResourceClassV1Alpha2Props { - /** - * Standard object metadata - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClass#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. - * - * Resource drivers have a unique name in forward domain order (acme.example.com). - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClass#driverName - */ - readonly driverName: string; - - /** - * ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClass#parametersRef - */ - readonly parametersRef?: ResourceClassParametersReferenceV1Alpha2; - - /** - * Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. - * - * Setting this field is optional. If null, all nodes are candidates. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClass#suitableNodes - */ - readonly suitableNodes?: NodeSelector; - -} - -/** - * Converts an object of type 'KubeResourceClassV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceClassV1Alpha2Props(obj: KubeResourceClassV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'driverName': obj.driverName, - 'parametersRef': toJson_ResourceClassParametersReferenceV1Alpha2(obj.parametersRef), - 'suitableNodes': toJson_NodeSelector(obj.suitableNodes), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClassList is a collection of classes. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassList - */ -export interface KubeResourceClassListV1Alpha2Props { - /** - * Standard list metadata - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of resource classes. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassList#items - */ - readonly items: KubeResourceClassV1Alpha2Props[]; - -} - -/** - * Converts an object of type 'KubeResourceClassListV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeResourceClassListV1Alpha2Props(obj: KubeResourceClassListV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeResourceClassV1Alpha2Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass - */ -export interface KubePriorityClassProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#description - */ - readonly description?: string; - - /** - * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#globalDefault - */ - readonly globalDefault?: boolean; - - /** - * preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. - * - * @default PreemptLowerPriority if unset. - * @schema io.k8s.api.scheduling.v1.PriorityClass#preemptionPolicy - */ - readonly preemptionPolicy?: string; - - /** - * value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - * - * @schema io.k8s.api.scheduling.v1.PriorityClass#value - */ - readonly value: number; - -} - -/** - * Converts an object of type 'KubePriorityClassProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePriorityClassProps(obj: KubePriorityClassProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'description': obj.description, - 'globalDefault': obj.globalDefault, - 'preemptionPolicy': obj.preemptionPolicy, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityClassList is a collection of priority classes. - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList - */ -export interface KubePriorityClassListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of PriorityClasses - * - * @schema io.k8s.api.scheduling.v1.PriorityClassList#items - */ - readonly items: KubePriorityClassProps[]; - -} - -/** - * Converts an object of type 'KubePriorityClassListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubePriorityClassListProps(obj: KubePriorityClassListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubePriorityClassProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.CSIDriver - */ -export interface KubeCsiDriverProps { - /** - * Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSIDriver#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec represents the specification of the CSI Driver. - * - * @schema io.k8s.api.storage.v1.CSIDriver#spec - */ - readonly spec: CsiDriverSpec; - -} - -/** - * Converts an object of type 'KubeCsiDriverProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCsiDriverProps(obj: KubeCsiDriverProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_CsiDriverSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSIDriverList is a collection of CSIDriver objects. - * - * @schema io.k8s.api.storage.v1.CSIDriverList - */ -export interface KubeCsiDriverListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSIDriverList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of CSIDriver - * - * @schema io.k8s.api.storage.v1.CSIDriverList#items - */ - readonly items: KubeCsiDriverProps[]; - -} - -/** - * Converts an object of type 'KubeCsiDriverListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCsiDriverListProps(obj: KubeCsiDriverListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeCsiDriverProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. - * - * @schema io.k8s.api.storage.v1.CSINode - */ -export interface KubeCsiNodeProps { - /** - * Standard object's metadata. metadata.name must be the Kubernetes node name. - * - * @schema io.k8s.api.storage.v1.CSINode#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec is the specification of CSINode - * - * @schema io.k8s.api.storage.v1.CSINode#spec - */ - readonly spec: CsiNodeSpec; - -} - -/** - * Converts an object of type 'KubeCsiNodeProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCsiNodeProps(obj: KubeCsiNodeProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_CsiNodeSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSINodeList is a collection of CSINode objects. - * - * @schema io.k8s.api.storage.v1.CSINodeList - */ -export interface KubeCsiNodeListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSINodeList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of CSINode - * - * @schema io.k8s.api.storage.v1.CSINodeList#items - */ - readonly items: KubeCsiNodeProps[]; - -} - -/** - * Converts an object of type 'KubeCsiNodeListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCsiNodeListProps(obj: KubeCsiNodeListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeCsiNodeProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. - * - * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" - * - * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero - * - * The producer of these objects can decide which approach is more suitable. - * - * They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity - */ -export interface KubeCsiStorageCapacityProps { - /** - * Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. - * - * Objects are namespaced. - * - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. - * - * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity#capacity - */ - readonly capacity?: Quantity; - - /** - * maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. - * - * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity#maximumVolumeSize - */ - readonly maximumVolumeSize?: Quantity; - - /** - * nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity#nodeTopology - */ - readonly nodeTopology?: LabelSelector; - - /** - * storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacity#storageClassName - */ - readonly storageClassName: string; - -} - -/** - * Converts an object of type 'KubeCsiStorageCapacityProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCsiStorageCapacityProps(obj: KubeCsiStorageCapacityProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'capacity': obj.capacity?.value, - 'maximumVolumeSize': obj.maximumVolumeSize?.value, - 'nodeTopology': toJson_LabelSelector(obj.nodeTopology), - 'storageClassName': obj.storageClassName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacityList - */ -export interface KubeCsiStorageCapacityListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacityList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of CSIStorageCapacity objects. - * - * @schema io.k8s.api.storage.v1.CSIStorageCapacityList#items - */ - readonly items: KubeCsiStorageCapacityProps[]; - -} - -/** - * Converts an object of type 'KubeCsiStorageCapacityListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCsiStorageCapacityListProps(obj: KubeCsiStorageCapacityListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeCsiStorageCapacityProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - * - * StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - * - * @schema io.k8s.api.storage.v1.StorageClass - */ -export interface KubeStorageClassProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.StorageClass#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * allowVolumeExpansion shows whether the storage class allow volume expand. - * - * @schema io.k8s.api.storage.v1.StorageClass#allowVolumeExpansion - */ - readonly allowVolumeExpansion?: boolean; - - /** - * allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * - * @schema io.k8s.api.storage.v1.StorageClass#allowedTopologies - */ - readonly allowedTopologies?: TopologySelectorTerm[]; - - /** - * mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * - * @schema io.k8s.api.storage.v1.StorageClass#mountOptions - */ - readonly mountOptions?: string[]; - - /** - * parameters holds the parameters for the provisioner that should create volumes of this storage class. - * - * @schema io.k8s.api.storage.v1.StorageClass#parameters - */ - readonly parameters?: { [key: string]: string }; - - /** - * provisioner indicates the type of the provisioner. - * - * @schema io.k8s.api.storage.v1.StorageClass#provisioner - */ - readonly provisioner: string; - - /** - * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete. - * - * @default Delete. - * @schema io.k8s.api.storage.v1.StorageClass#reclaimPolicy - */ - readonly reclaimPolicy?: string; - - /** - * volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - * - * @schema io.k8s.api.storage.v1.StorageClass#volumeBindingMode - */ - readonly volumeBindingMode?: string; - -} - -/** - * Converts an object of type 'KubeStorageClassProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStorageClassProps(obj: KubeStorageClassProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'allowVolumeExpansion': obj.allowVolumeExpansion, - 'allowedTopologies': obj.allowedTopologies?.map(y => toJson_TopologySelectorTerm(y)), - 'mountOptions': obj.mountOptions?.map(y => y), - 'parameters': ((obj.parameters) === undefined) ? undefined : (Object.entries(obj.parameters).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'provisioner': obj.provisioner, - 'reclaimPolicy': obj.reclaimPolicy, - 'volumeBindingMode': obj.volumeBindingMode, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StorageClassList is a collection of storage classes. - * - * @schema io.k8s.api.storage.v1.StorageClassList - */ -export interface KubeStorageClassListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.StorageClassList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of StorageClasses - * - * @schema io.k8s.api.storage.v1.StorageClassList#items - */ - readonly items: KubeStorageClassProps[]; - -} - -/** - * Converts an object of type 'KubeStorageClassListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStorageClassListProps(obj: KubeStorageClassListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeStorageClassProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - * - * VolumeAttachment objects are non-namespaced. - * - * @schema io.k8s.api.storage.v1.VolumeAttachment - */ -export interface KubeVolumeAttachmentProps { - /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.VolumeAttachment#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * - * @schema io.k8s.api.storage.v1.VolumeAttachment#spec - */ - readonly spec: VolumeAttachmentSpec; - -} - -/** - * Converts an object of type 'KubeVolumeAttachmentProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeVolumeAttachmentProps(obj: KubeVolumeAttachmentProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_VolumeAttachmentSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeAttachmentList is a collection of VolumeAttachment objects. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList - */ -export interface KubeVolumeAttachmentListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of VolumeAttachments - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentList#items - */ - readonly items: KubeVolumeAttachmentProps[]; - -} - -/** - * Converts an object of type 'KubeVolumeAttachmentListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeVolumeAttachmentListProps(obj: KubeVolumeAttachmentListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeVolumeAttachmentProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClass - */ -export interface KubeVolumeAttributesClassV1Alpha1Props { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClass#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Name of the CSI driver This field is immutable. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClass#driverName - */ - readonly driverName: string; - - /** - * parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. - * - * This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClass#parameters - */ - readonly parameters?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'KubeVolumeAttributesClassV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeVolumeAttributesClassV1Alpha1Props(obj: KubeVolumeAttributesClassV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'driverName': obj.driverName, - 'parameters': ((obj.parameters) === undefined) ? undefined : (Object.entries(obj.parameters).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClassList - */ -export interface KubeVolumeAttributesClassListV1Alpha1Props { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClassList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items is the list of VolumeAttributesClass objects. - * - * @schema io.k8s.api.storage.v1alpha1.VolumeAttributesClassList#items - */ - readonly items: KubeVolumeAttributesClassV1Alpha1Props[]; - -} - -/** - * Converts an object of type 'KubeVolumeAttributesClassListV1Alpha1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeVolumeAttributesClassListV1Alpha1Props(obj: KubeVolumeAttributesClassListV1Alpha1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeVolumeAttributesClassV1Alpha1Props(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition - */ -export interface KubeCustomResourceDefinitionProps { - /** - * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * spec describes how the user wants the resources to appear - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#spec - */ - readonly spec: CustomResourceDefinitionSpec; - -} - -/** - * Converts an object of type 'KubeCustomResourceDefinitionProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCustomResourceDefinitionProps(obj: KubeCustomResourceDefinitionProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_CustomResourceDefinitionSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList - */ -export interface KubeCustomResourceDefinitionListProps { - /** - * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#metadata - */ - readonly metadata?: ListMeta; - - /** - * items list individual CustomResourceDefinition objects - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#items - */ - readonly items: KubeCustomResourceDefinitionProps[]; - -} - -/** - * Converts an object of type 'KubeCustomResourceDefinitionListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeCustomResourceDefinitionListProps(obj: KubeCustomResourceDefinitionListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeCustomResourceDefinitionProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Status is a return value for calls that don't return other objects. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status - */ -export interface KubeStatusProps { - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#metadata - */ - readonly metadata?: ListMeta; - - /** - * Suggested HTTP return code for this status, 0 if not set. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#code - */ - readonly code?: number; - - /** - * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#details - */ - readonly details?: StatusDetails; - - /** - * A human-readable description of the status of this operation. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#message - */ - readonly message?: string; - - /** - * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#reason - */ - readonly reason?: string; - -} - -/** - * Converts an object of type 'KubeStatusProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeStatusProps(obj: KubeStatusProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'code': obj.code, - 'details': toJson_StatusDetails(obj.details), - 'message': obj.message, - 'reason': obj.reason, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * APIService represents a server for a particular GroupVersion. Name must be "version.group". - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService - */ -export interface KubeApiServiceProps { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec contains information for locating and communicating with a server - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#spec - */ - readonly spec?: ApiServiceSpec; - -} - -/** - * Converts an object of type 'KubeApiServiceProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeApiServiceProps(obj: KubeApiServiceProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ApiServiceSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * APIServiceList is a list of APIService objects. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList - */ -export interface KubeApiServiceListProps { - /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#metadata - */ - readonly metadata?: ListMeta; - - /** - * Items is the list of APIService - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#items - */ - readonly items: KubeApiServiceProps[]; - -} - -/** - * Converts an object of type 'KubeApiServiceListProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KubeApiServiceListProps(obj: KubeApiServiceListProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ListMeta(obj.metadata), - 'items': obj.items?.map(y => toJson_KubeApiServiceProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta - */ -export interface ObjectMeta { - /** - * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - * - * Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#creationTimestamp - */ - readonly creationTimestamp?: Date; - - /** - * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionGracePeriodSeconds - */ - readonly deletionGracePeriodSeconds?: number; - - /** - * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - * - * Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionTimestamp - */ - readonly deletionTimestamp?: Date; - - /** - * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#finalizers - */ - readonly finalizers?: string[]; - - /** - * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - * - * If this field is specified and the generated name exists, the server will return a 409. - * - * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generateName - */ - readonly generateName?: string; - - /** - * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generation - */ - readonly generation?: number; - - /** - * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#labels - */ - readonly labels?: { [key: string]: string }; - - /** - * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#managedFields - */ - readonly managedFields?: ManagedFieldsEntry[]; - - /** - * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#name - */ - readonly name?: string; - - /** - * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - * - * Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#namespace - */ - readonly namespace?: string; - - /** - * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#ownerReferences - */ - readonly ownerReferences?: OwnerReference[]; - - /** - * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - * - * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#resourceVersion - */ - readonly resourceVersion?: string; - - /** - * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#selfLink - */ - readonly selfLink?: string; - - /** - * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - * - * Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#uid - */ - readonly uid?: string; - -} - -/** - * Converts an object of type 'ObjectMeta' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ObjectMeta(obj: ObjectMeta | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'creationTimestamp': obj.creationTimestamp?.toISOString(), - 'deletionGracePeriodSeconds': obj.deletionGracePeriodSeconds, - 'deletionTimestamp': obj.deletionTimestamp?.toISOString(), - 'finalizers': obj.finalizers?.map(y => y), - 'generateName': obj.generateName, - 'generation': obj.generation, - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'managedFields': obj.managedFields?.map(y => toJson_ManagedFieldsEntry(y)), - 'name': obj.name, - 'namespace': obj.namespace, - 'ownerReferences': obj.ownerReferences?.map(y => toJson_OwnerReference(y)), - 'resourceVersion': obj.resourceVersion, - 'selfLink': obj.selfLink, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MutatingWebhook describes an admission webhook and the resources and operations it applies to. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook - */ -export interface MutatingWebhook { - /** - * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#admissionReviewVersions - */ - readonly admissionReviewVersions: string[]; - - /** - * ClientConfig defines how to communicate with the hook. Required - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#clientConfig - */ - readonly clientConfig: WebhookClientConfig; - - /** - * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * - * @default Fail. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#failurePolicy - */ - readonly failurePolicy?: string; - - /** - * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - * - * The exact matching logic is (in order): - * 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - * 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - * 3. If any matchCondition evaluates to an error (but none are FALSE): - * - If failurePolicy=Fail, reject the request - * - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - * - * This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#matchConditions - */ - readonly matchConditions?: MatchCondition[]; - - /** - * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - * - * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - * - * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - * - * Defaults to "Equivalent" - * - * @default Equivalent" - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#matchPolicy - */ - readonly matchPolicy?: string; - - /** - * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#name - */ - readonly name: string; - - /** - * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - * - * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "runlevel", - * "operator": "NotIn", - * "values": [ - * "0", - * "1" - * ] - * } - * ] - * } - * - * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "environment", - * "operator": "In", - * "values": [ - * "prod", - * "staging" - * ] - * } - * ] - * } - * - * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - * - * Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - - /** - * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#objectSelector - */ - readonly objectSelector?: LabelSelector; - - /** - * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - * - * Never: the webhook will not be called more than once in a single admission evaluation. - * - * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - * - * Defaults to "Never". - * - * @default Never". - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#reinvocationPolicy - */ - readonly reinvocationPolicy?: string; - - /** - * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#rules - */ - readonly rules?: RuleWithOperations[]; - - /** - * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#sideEffects - */ - readonly sideEffects: string; - - /** - * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. - * - * @default 10 seconds. - * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'MutatingWebhook' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MutatingWebhook(obj: MutatingWebhook | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'admissionReviewVersions': obj.admissionReviewVersions?.map(y => y), - 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), - 'failurePolicy': obj.failurePolicy, - 'matchConditions': obj.matchConditions?.map(y => toJson_MatchCondition(y)), - 'matchPolicy': obj.matchPolicy, - 'name': obj.name, - 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), - 'objectSelector': toJson_LabelSelector(obj.objectSelector), - 'reinvocationPolicy': obj.reinvocationPolicy, - 'rules': obj.rules?.map(y => toJson_RuleWithOperations(y)), - 'sideEffects': obj.sideEffects, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta - */ -export interface ListMeta { - /** - * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#continue - */ - readonly continue?: string; - - /** - * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#remainingItemCount - */ - readonly remainingItemCount?: number; - - /** - * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#resourceVersion - */ - readonly resourceVersion?: string; - - /** - * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#selfLink - */ - readonly selfLink?: string; - -} - -/** - * Converts an object of type 'ListMeta' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ListMeta(obj: ListMeta | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'continue': obj.continue, - 'remainingItemCount': obj.remainingItemCount, - 'resourceVersion': obj.resourceVersion, - 'selfLink': obj.selfLink, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook - */ -export interface ValidatingWebhook { - /** - * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#admissionReviewVersions - */ - readonly admissionReviewVersions: string[]; - - /** - * ClientConfig defines how to communicate with the hook. Required - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#clientConfig - */ - readonly clientConfig: WebhookClientConfig; - - /** - * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * - * @default Fail. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#failurePolicy - */ - readonly failurePolicy?: string; - - /** - * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - * - * The exact matching logic is (in order): - * 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. - * 2. If ALL matchConditions evaluate to TRUE, the webhook is called. - * 3. If any matchCondition evaluates to an error (but none are FALSE): - * - If failurePolicy=Fail, reject the request - * - If failurePolicy=Ignore, the error is ignored and the webhook is skipped - * - * This is a beta feature and managed by the AdmissionWebhookMatchConditions feature gate. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#matchConditions - */ - readonly matchConditions?: MatchCondition[]; - - /** - * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - * - * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - * - * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - * - * Defaults to "Equivalent" - * - * @default Equivalent" - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#matchPolicy - */ - readonly matchPolicy?: string; - - /** - * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#name - */ - readonly name: string; - - /** - * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - * - * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "runlevel", - * "operator": "NotIn", - * "values": [ - * "0", - * "1" - * ] - * } - * ] - * } - * - * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "environment", - * "operator": "In", - * "values": [ - * "prod", - * "staging" - * ] - * } - * ] - * } - * - * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - * - * Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - - /** - * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#objectSelector - */ - readonly objectSelector?: LabelSelector; - - /** - * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#rules - */ - readonly rules?: RuleWithOperations[]; - - /** - * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#sideEffects - */ - readonly sideEffects: string; - - /** - * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. - * - * @default 10 seconds. - * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'ValidatingWebhook' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidatingWebhook(obj: ValidatingWebhook | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'admissionReviewVersions': obj.admissionReviewVersions?.map(y => y), - 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), - 'failurePolicy': obj.failurePolicy, - 'matchConditions': obj.matchConditions?.map(y => toJson_MatchCondition(y)), - 'matchPolicy': obj.matchPolicy, - 'name': obj.name, - 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), - 'objectSelector': toJson_LabelSelector(obj.objectSelector), - 'rules': obj.rules?.map(y => toJson_RuleWithOperations(y)), - 'sideEffects': obj.sideEffects, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec - */ -export interface ValidatingAdmissionPolicySpecV1Alpha1 { - /** - * auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#auditAnnotations - */ - readonly auditAnnotations?: AuditAnnotationV1Alpha1[]; - - /** - * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - * - * A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. - * - * failurePolicy does not define how validations that evaluate to false are handled. - * - * When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. - * - * Allowed values are Ignore or Fail. Defaults to Fail. - * - * @default Fail. - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#failurePolicy - */ - readonly failurePolicy?: string; - - /** - * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - * - * If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. - * - * The exact matching logic is (in order): - * 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - * 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - * 3. If any matchCondition evaluates to an error (but none are FALSE): - * - If failurePolicy=Fail, reject the request - * - If failurePolicy=Ignore, the policy is skipped - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#matchConditions - */ - readonly matchConditions?: MatchConditionV1Alpha1[]; - - /** - * MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#matchConstraints - */ - readonly matchConstraints?: MatchResourcesV1Alpha1; - - /** - * ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#paramKind - */ - readonly paramKind?: ParamKindV1Alpha1; - - /** - * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#validations - */ - readonly validations?: ValidationV1Alpha1[]; - - /** - * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. - * - * The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec#variables - */ - readonly variables?: VariableV1Alpha1[]; - -} - -/** - * Converts an object of type 'ValidatingAdmissionPolicySpecV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidatingAdmissionPolicySpecV1Alpha1(obj: ValidatingAdmissionPolicySpecV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'auditAnnotations': obj.auditAnnotations?.map(y => toJson_AuditAnnotationV1Alpha1(y)), - 'failurePolicy': obj.failurePolicy, - 'matchConditions': obj.matchConditions?.map(y => toJson_MatchConditionV1Alpha1(y)), - 'matchConstraints': toJson_MatchResourcesV1Alpha1(obj.matchConstraints), - 'paramKind': toJson_ParamKindV1Alpha1(obj.paramKind), - 'validations': obj.validations?.map(y => toJson_ValidationV1Alpha1(y)), - 'variables': obj.variables?.map(y => toJson_VariableV1Alpha1(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec - */ -export interface ValidatingAdmissionPolicyBindingSpecV1Alpha1 { - /** - * MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec#matchResources - */ - readonly matchResources?: MatchResourcesV1Alpha1; - - /** - * paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec#paramRef - */ - readonly paramRef?: ParamRefV1Alpha1; - - /** - * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec#policyName - */ - readonly policyName?: string; - - /** - * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. - * - * Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. - * - * validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. - * - * The supported actions values are: - * - * "Deny" specifies that a validation failure results in a denied request. - * - * "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. - * - * "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` - * - * Clients should expect to handle additional values by ignoring any values not recognized. - * - * "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec#validationActions - */ - readonly validationActions?: string[]; - -} - -/** - * Converts an object of type 'ValidatingAdmissionPolicyBindingSpecV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidatingAdmissionPolicyBindingSpecV1Alpha1(obj: ValidatingAdmissionPolicyBindingSpecV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchResources': toJson_MatchResourcesV1Alpha1(obj.matchResources), - 'paramRef': toJson_ParamRefV1Alpha1(obj.paramRef), - 'policyName': obj.policyName, - 'validationActions': obj.validationActions?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec - */ -export interface ValidatingAdmissionPolicySpecV1Beta1 { - /** - * auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#auditAnnotations - */ - readonly auditAnnotations?: AuditAnnotationV1Beta1[]; - - /** - * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - * - * A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. - * - * failurePolicy does not define how validations that evaluate to false are handled. - * - * When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. - * - * Allowed values are Ignore or Fail. Defaults to Fail. - * - * @default Fail. - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#failurePolicy - */ - readonly failurePolicy?: string; - - /** - * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - * - * If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. - * - * The exact matching logic is (in order): - * 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. - * 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. - * 3. If any matchCondition evaluates to an error (but none are FALSE): - * - If failurePolicy=Fail, reject the request - * - If failurePolicy=Ignore, the policy is skipped - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#matchConditions - */ - readonly matchConditions?: MatchConditionV1Beta1[]; - - /** - * MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#matchConstraints - */ - readonly matchConstraints?: MatchResourcesV1Beta1; - - /** - * ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#paramKind - */ - readonly paramKind?: ParamKindV1Beta1; - - /** - * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#validations - */ - readonly validations?: ValidationV1Beta1[]; - - /** - * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. - * - * The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec#variables - */ - readonly variables?: VariableV1Beta1[]; - -} - -/** - * Converts an object of type 'ValidatingAdmissionPolicySpecV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidatingAdmissionPolicySpecV1Beta1(obj: ValidatingAdmissionPolicySpecV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'auditAnnotations': obj.auditAnnotations?.map(y => toJson_AuditAnnotationV1Beta1(y)), - 'failurePolicy': obj.failurePolicy, - 'matchConditions': obj.matchConditions?.map(y => toJson_MatchConditionV1Beta1(y)), - 'matchConstraints': toJson_MatchResourcesV1Beta1(obj.matchConstraints), - 'paramKind': toJson_ParamKindV1Beta1(obj.paramKind), - 'validations': obj.validations?.map(y => toJson_ValidationV1Beta1(y)), - 'variables': obj.variables?.map(y => toJson_VariableV1Beta1(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec - */ -export interface ValidatingAdmissionPolicyBindingSpecV1Beta1 { - /** - * MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec#matchResources - */ - readonly matchResources?: MatchResourcesV1Beta1; - - /** - * paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec#paramRef - */ - readonly paramRef?: ParamRefV1Beta1; - - /** - * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec#policyName - */ - readonly policyName?: string; - - /** - * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. - * - * Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. - * - * validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. - * - * The supported actions values are: - * - * "Deny" specifies that a validation failure results in a denied request. - * - * "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. - * - * "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"` - * - * Clients should expect to handle additional values by ignoring any values not recognized. - * - * "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec#validationActions - */ - readonly validationActions?: string[]; - -} - -/** - * Converts an object of type 'ValidatingAdmissionPolicyBindingSpecV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidatingAdmissionPolicyBindingSpecV1Beta1(obj: ValidatingAdmissionPolicyBindingSpecV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchResources': toJson_MatchResourcesV1Beta1(obj.matchResources), - 'paramRef': toJson_ParamRefV1Beta1(obj.paramRef), - 'policyName': obj.policyName, - 'validationActions': obj.validationActions?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DaemonSetSpec is the specification of a daemon set. - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec - */ -export interface DaemonSetSpec { - /** - * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * - * @default 0 (pod will be considered available as soon as it is ready). - * @schema io.k8s.api.apps.v1.DaemonSetSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - - /** - * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * - * @default 10. - * @schema io.k8s.api.apps.v1.DaemonSetSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - - /** - * A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec#selector - */ - readonly selector: LabelSelector; - - /** - * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec#template - */ - readonly template: PodTemplateSpec; - - /** - * An update strategy to replace existing DaemonSet pods with new pods. - * - * @schema io.k8s.api.apps.v1.DaemonSetSpec#updateStrategy - */ - readonly updateStrategy?: DaemonSetUpdateStrategy; - -} - -/** - * Converts an object of type 'DaemonSetSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DaemonSetSpec(obj: DaemonSetSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minReadySeconds': obj.minReadySeconds, - 'revisionHistoryLimit': obj.revisionHistoryLimit, - 'selector': toJson_LabelSelector(obj.selector), - 'template': toJson_PodTemplateSpec(obj.template), - 'updateStrategy': toJson_DaemonSetUpdateStrategy(obj.updateStrategy), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DeploymentSpec is the specification of the desired behavior of the Deployment. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec - */ -export interface DeploymentSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.apps.v1.DeploymentSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - - /** - * Indicates that the deployment is paused. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#paused - */ - readonly paused?: boolean; - - /** - * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * - * @default 600s. - * @schema io.k8s.api.apps.v1.DeploymentSpec#progressDeadlineSeconds - */ - readonly progressDeadlineSeconds?: number; - - /** - * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * - * @default 1. - * @schema io.k8s.api.apps.v1.DeploymentSpec#replicas - */ - readonly replicas?: number; - - /** - * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * - * @default 10. - * @schema io.k8s.api.apps.v1.DeploymentSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - - /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#selector - */ - readonly selector: LabelSelector; - - /** - * The deployment strategy to use to replace existing pods with new ones. - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#strategy - */ - readonly strategy?: DeploymentStrategy; - - /** - * Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always". - * - * @schema io.k8s.api.apps.v1.DeploymentSpec#template - */ - readonly template: PodTemplateSpec; - -} - -/** - * Converts an object of type 'DeploymentSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DeploymentSpec(obj: DeploymentSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minReadySeconds': obj.minReadySeconds, - 'paused': obj.paused, - 'progressDeadlineSeconds': obj.progressDeadlineSeconds, - 'replicas': obj.replicas, - 'revisionHistoryLimit': obj.revisionHistoryLimit, - 'selector': toJson_LabelSelector(obj.selector), - 'strategy': toJson_DeploymentStrategy(obj.strategy), - 'template': toJson_PodTemplateSpec(obj.template), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ReplicaSetSpec is the specification of a ReplicaSet. - * - * @schema io.k8s.api.apps.v1.ReplicaSetSpec - */ -export interface ReplicaSetSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * - * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#replicas - */ - readonly replicas?: number; - - /** - * Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#selector - */ - readonly selector: LabelSelector; - - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * - * @schema io.k8s.api.apps.v1.ReplicaSetSpec#template - */ - readonly template?: PodTemplateSpec; - -} - -/** - * Converts an object of type 'ReplicaSetSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ReplicaSetSpec(obj: ReplicaSetSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minReadySeconds': obj.minReadySeconds, - 'replicas': obj.replicas, - 'selector': toJson_LabelSelector(obj.selector), - 'template': toJson_PodTemplateSpec(obj.template), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A StatefulSetSpec is the specification of a StatefulSet. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec - */ -export interface StatefulSetSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.apps.v1.StatefulSetSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - - /** - * ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#ordinals - */ - readonly ordinals?: StatefulSetOrdinals; - - /** - * persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#persistentVolumeClaimRetentionPolicy - */ - readonly persistentVolumeClaimRetentionPolicy?: StatefulSetPersistentVolumeClaimRetentionPolicy; - - /** - * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#podManagementPolicy - */ - readonly podManagementPolicy?: string; - - /** - * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#replicas - */ - readonly replicas?: number; - - /** - * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#revisionHistoryLimit - */ - readonly revisionHistoryLimit?: number; - - /** - * selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#selector - */ - readonly selector: LabelSelector; - - /** - * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#serviceName - */ - readonly serviceName: string; - - /** - * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#template - */ - readonly template: PodTemplateSpec; - - /** - * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#updateStrategy - */ - readonly updateStrategy?: StatefulSetUpdateStrategy; - - /** - * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * - * @schema io.k8s.api.apps.v1.StatefulSetSpec#volumeClaimTemplates - */ - readonly volumeClaimTemplates?: KubePersistentVolumeClaimProps[]; - -} - -/** - * Converts an object of type 'StatefulSetSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StatefulSetSpec(obj: StatefulSetSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minReadySeconds': obj.minReadySeconds, - 'ordinals': toJson_StatefulSetOrdinals(obj.ordinals), - 'persistentVolumeClaimRetentionPolicy': toJson_StatefulSetPersistentVolumeClaimRetentionPolicy(obj.persistentVolumeClaimRetentionPolicy), - 'podManagementPolicy': obj.podManagementPolicy, - 'replicas': obj.replicas, - 'revisionHistoryLimit': obj.revisionHistoryLimit, - 'selector': toJson_LabelSelector(obj.selector), - 'serviceName': obj.serviceName, - 'template': toJson_PodTemplateSpec(obj.template), - 'updateStrategy': toJson_StatefulSetUpdateStrategy(obj.updateStrategy), - 'volumeClaimTemplates': obj.volumeClaimTemplates?.map(y => toJson_KubePersistentVolumeClaimProps(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TokenRequestSpec contains client provided parameters of a token request. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec - */ -export interface TokenRequestSpec { - /** - * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec#audiences - */ - readonly audiences: string[]; - - /** - * BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec#boundObjectRef - */ - readonly boundObjectRef?: BoundObjectReference; - - /** - * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. - * - * @schema io.k8s.api.authentication.v1.TokenRequestSpec#expirationSeconds - */ - readonly expirationSeconds?: number; - -} - -/** - * Converts an object of type 'TokenRequestSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TokenRequestSpec(obj: TokenRequestSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'audiences': obj.audiences?.map(y => y), - 'boundObjectRef': toJson_BoundObjectReference(obj.boundObjectRef), - 'expirationSeconds': obj.expirationSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TokenReviewSpec is a description of the token authentication request. - * - * @schema io.k8s.api.authentication.v1.TokenReviewSpec - */ -export interface TokenReviewSpec { - /** - * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. - * - * @schema io.k8s.api.authentication.v1.TokenReviewSpec#audiences - */ - readonly audiences?: string[]; - - /** - * Token is the opaque bearer token. - * - * @schema io.k8s.api.authentication.v1.TokenReviewSpec#token - */ - readonly token?: string; - -} - -/** - * Converts an object of type 'TokenReviewSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TokenReviewSpec(obj: TokenReviewSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'audiences': obj.audiences?.map(y => y), - 'token': obj.token, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec - */ -export interface SubjectAccessReviewSpec { - /** - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#extra - */ - readonly extra?: { [key: string]: string[] }; - - /** - * Groups is the groups you're testing for. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#groups - */ - readonly groups?: string[]; - - /** - * NonResourceAttributes describes information for a non-resource access request - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#nonResourceAttributes - */ - readonly nonResourceAttributes?: NonResourceAttributes; - - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#resourceAttributes - */ - readonly resourceAttributes?: ResourceAttributes; - - /** - * UID information about the requesting user. - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#uid - */ - readonly uid?: string; - - /** - * User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups - * - * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'SubjectAccessReviewSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SubjectAccessReviewSpec(obj: SubjectAccessReviewSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'extra': ((obj.extra) === undefined) ? undefined : (Object.entries(obj.extra).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), - 'groups': obj.groups?.map(y => y), - 'nonResourceAttributes': toJson_NonResourceAttributes(obj.nonResourceAttributes), - 'resourceAttributes': toJson_ResourceAttributes(obj.resourceAttributes), - 'uid': obj.uid, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec - */ -export interface SelfSubjectAccessReviewSpec { - /** - * NonResourceAttributes describes information for a non-resource access request - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#nonResourceAttributes - */ - readonly nonResourceAttributes?: NonResourceAttributes; - - /** - * ResourceAuthorizationAttributes describes information for a resource access request - * - * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#resourceAttributes - */ - readonly resourceAttributes?: ResourceAttributes; - -} - -/** - * Converts an object of type 'SelfSubjectAccessReviewSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SelfSubjectAccessReviewSpec(obj: SelfSubjectAccessReviewSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nonResourceAttributes': toJson_NonResourceAttributes(obj.nonResourceAttributes), - 'resourceAttributes': toJson_ResourceAttributes(obj.resourceAttributes), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec - */ -export interface SelfSubjectRulesReviewSpec { - /** - * Namespace to evaluate rules for. Required. - * - * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'SelfSubjectRulesReviewSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SelfSubjectRulesReviewSpec(obj: SelfSubjectRulesReviewSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * specification of a horizontal pod autoscaler. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec - */ -export interface HorizontalPodAutoscalerSpec { - /** - * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#maxReplicas - */ - readonly maxReplicas: number; - - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#minReplicas - */ - readonly minReplicas?: number; - - /** - * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#scaleTargetRef - */ - readonly scaleTargetRef: CrossVersionObjectReference; - - /** - * targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. - * - * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#targetCPUUtilizationPercentage - */ - readonly targetCpuUtilizationPercentage?: number; - -} - -/** - * Converts an object of type 'HorizontalPodAutoscalerSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HorizontalPodAutoscalerSpec(obj: HorizontalPodAutoscalerSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxReplicas': obj.maxReplicas, - 'minReplicas': obj.minReplicas, - 'scaleTargetRef': toJson_CrossVersionObjectReference(obj.scaleTargetRef), - 'targetCPUUtilizationPercentage': obj.targetCpuUtilizationPercentage, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ScaleSpec describes the attributes of a scale subresource. - * - * @schema io.k8s.api.autoscaling.v1.ScaleSpec - */ -export interface ScaleSpec { - /** - * replicas is the desired number of instances for the scaled object. - * - * @schema io.k8s.api.autoscaling.v1.ScaleSpec#replicas - */ - readonly replicas?: number; - -} - -/** - * Converts an object of type 'ScaleSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ScaleSpec(obj: ScaleSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'replicas': obj.replicas, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec - */ -export interface HorizontalPodAutoscalerSpecV2 { - /** - * behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#behavior - */ - readonly behavior?: HorizontalPodAutoscalerBehaviorV2; - - /** - * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#maxReplicas - */ - readonly maxReplicas: number; - - /** - * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#metrics - */ - readonly metrics?: MetricSpecV2[]; - - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#minReplicas - */ - readonly minReplicas?: number; - - /** - * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#scaleTargetRef - */ - readonly scaleTargetRef: CrossVersionObjectReferenceV2; - -} - -/** - * Converts an object of type 'HorizontalPodAutoscalerSpecV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HorizontalPodAutoscalerSpecV2(obj: HorizontalPodAutoscalerSpecV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'behavior': toJson_HorizontalPodAutoscalerBehaviorV2(obj.behavior), - 'maxReplicas': obj.maxReplicas, - 'metrics': obj.metrics?.map(y => toJson_MetricSpecV2(y)), - 'minReplicas': obj.minReplicas, - 'scaleTargetRef': toJson_CrossVersionObjectReferenceV2(obj.scaleTargetRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CronJobSpec describes how the job execution will look like and when it will actually run. - * - * @schema io.k8s.api.batch.v1.CronJobSpec - */ -export interface CronJobSpec { - /** - * Specifies how to treat concurrent executions of a Job. Valid values are: - * - * - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * - * @schema io.k8s.api.batch.v1.CronJobSpec#concurrencyPolicy - */ - readonly concurrencyPolicy?: string; - - /** - * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. - * - * @default 1. - * @schema io.k8s.api.batch.v1.CronJobSpec#failedJobsHistoryLimit - */ - readonly failedJobsHistoryLimit?: number; - - /** - * Specifies the job that will be created when executing a CronJob. - * - * @schema io.k8s.api.batch.v1.CronJobSpec#jobTemplate - */ - readonly jobTemplate: JobTemplateSpec; - - /** - * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * - * @schema io.k8s.api.batch.v1.CronJobSpec#schedule - */ - readonly schedule: string; - - /** - * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * - * @schema io.k8s.api.batch.v1.CronJobSpec#startingDeadlineSeconds - */ - readonly startingDeadlineSeconds?: number; - - /** - * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. - * - * @default 3. - * @schema io.k8s.api.batch.v1.CronJobSpec#successfulJobsHistoryLimit - */ - readonly successfulJobsHistoryLimit?: number; - - /** - * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - * - * @default false. - * @schema io.k8s.api.batch.v1.CronJobSpec#suspend - */ - readonly suspend?: boolean; - - /** - * The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones - * - * @schema io.k8s.api.batch.v1.CronJobSpec#timeZone - */ - readonly timeZone?: string; - -} - -/** - * Converts an object of type 'CronJobSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CronJobSpec(obj: CronJobSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'concurrencyPolicy': obj.concurrencyPolicy, - 'failedJobsHistoryLimit': obj.failedJobsHistoryLimit, - 'jobTemplate': toJson_JobTemplateSpec(obj.jobTemplate), - 'schedule': obj.schedule, - 'startingDeadlineSeconds': obj.startingDeadlineSeconds, - 'successfulJobsHistoryLimit': obj.successfulJobsHistoryLimit, - 'suspend': obj.suspend, - 'timeZone': obj.timeZone, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * JobSpec describes how the job execution will look like. - * - * @schema io.k8s.api.batch.v1.JobSpec - */ -export interface JobSpec { - /** - * Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. - * - * @schema io.k8s.api.batch.v1.JobSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - - /** - * Specifies the number of retries before marking this job failed. Defaults to 6 - * - * @default 6 - * @schema io.k8s.api.batch.v1.JobSpec#backoffLimit - */ - readonly backoffLimit?: number; - - /** - * Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - * - * @schema io.k8s.api.batch.v1.JobSpec#backoffLimitPerIndex - */ - readonly backoffLimitPerIndex?: number; - - /** - * completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. - * - * `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. - * - * `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. - * - * More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. - * - * @schema io.k8s.api.batch.v1.JobSpec#completionMode - */ - readonly completionMode?: string; - - /** - * Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * - * @schema io.k8s.api.batch.v1.JobSpec#completions - */ - readonly completions?: number; - - /** - * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector - * - * @schema io.k8s.api.batch.v1.JobSpec#manualSelector - */ - readonly manualSelector?: boolean; - - /** - * Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - * - * @schema io.k8s.api.batch.v1.JobSpec#maxFailedIndexes - */ - readonly maxFailedIndexes?: number; - - /** - * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * - * @schema io.k8s.api.batch.v1.JobSpec#parallelism - */ - readonly parallelism?: number; - - /** - * Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure. - * - * This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default). - * - * @schema io.k8s.api.batch.v1.JobSpec#podFailurePolicy - */ - readonly podFailurePolicy?: PodFailurePolicy; - - /** - * podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods - * when they are terminating (has a metadata.deletionTimestamp) or failed. - * - Failed means to wait until a previously created Pod is fully terminated (has phase - * Failed or Succeeded) before creating a replacement Pod. - * - * When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. - * - * @schema io.k8s.api.batch.v1.JobSpec#podReplacementPolicy - */ - readonly podReplacementPolicy?: string; - - /** - * A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.batch.v1.JobSpec#selector - */ - readonly selector?: LabelSelector; - - /** - * suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. - * - * @default false. - * @schema io.k8s.api.batch.v1.JobSpec#suspend - */ - readonly suspend?: boolean; - - /** - * Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * - * @schema io.k8s.api.batch.v1.JobSpec#template - */ - readonly template: PodTemplateSpec; - - /** - * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. - * - * @schema io.k8s.api.batch.v1.JobSpec#ttlSecondsAfterFinished - */ - readonly ttlSecondsAfterFinished?: number; - -} - -/** - * Converts an object of type 'JobSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_JobSpec(obj: JobSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'activeDeadlineSeconds': obj.activeDeadlineSeconds, - 'backoffLimit': obj.backoffLimit, - 'backoffLimitPerIndex': obj.backoffLimitPerIndex, - 'completionMode': obj.completionMode, - 'completions': obj.completions, - 'manualSelector': obj.manualSelector, - 'maxFailedIndexes': obj.maxFailedIndexes, - 'parallelism': obj.parallelism, - 'podFailurePolicy': toJson_PodFailurePolicy(obj.podFailurePolicy), - 'podReplacementPolicy': obj.podReplacementPolicy, - 'selector': toJson_LabelSelector(obj.selector), - 'suspend': obj.suspend, - 'template': toJson_PodTemplateSpec(obj.template), - 'ttlSecondsAfterFinished': obj.ttlSecondsAfterFinished, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CertificateSigningRequestSpec contains the certificate request. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec - */ -export interface CertificateSigningRequestSpec { - /** - * expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. - * - * The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. - * - * Certificate signers may not honor this field for various reasons: - * - * 1. Old signer that is unaware of the field (such as the in-tree - * implementations prior to v1.22) - * 2. Signer whose configured maximum is shorter than the requested duration - * 3. Signer whose configured minimum is longer than the requested duration - * - * The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#expirationSeconds - */ - readonly expirationSeconds?: number; - - /** - * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#extra - */ - readonly extra?: { [key: string]: string[] }; - - /** - * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#groups - */ - readonly groups?: string[]; - - /** - * request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#request - */ - readonly request: string; - - /** - * signerName indicates the requested signer, and is a qualified name. - * - * List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. - * - * Well-known Kubernetes signers are: - * 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. - * Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. - * 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. - * Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. - * 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. - * Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. - * - * More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers - * - * Custom signerNames can also be specified. The signer defines: - * 1. Trust distribution: how trust (CA bundles) are distributed. - * 2. Permitted subjects: and behavior when a disallowed subject is requested. - * 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. - * 4. Required, permitted, or forbidden key usages / extended key usages. - * 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. - * 6. Whether or not requests for CA certificates are allowed. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#signerName - */ - readonly signerName: string; - - /** - * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#uid - */ - readonly uid?: string; - - /** - * usages specifies a set of key usages requested in the issued certificate. - * - * Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". - * - * Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". - * - * Valid values are: - * "signing", "digital signature", "content commitment", - * "key encipherment", "key agreement", "data encipherment", - * "cert sign", "crl sign", "encipher only", "decipher only", "any", - * "server auth", "client auth", - * "code signing", "email protection", "s/mime", - * "ipsec end system", "ipsec tunnel", "ipsec user", - * "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#usages - */ - readonly usages?: string[]; - - /** - * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. - * - * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#username - */ - readonly username?: string; - -} - -/** - * Converts an object of type 'CertificateSigningRequestSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CertificateSigningRequestSpec(obj: CertificateSigningRequestSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expirationSeconds': obj.expirationSeconds, - 'extra': ((obj.extra) === undefined) ? undefined : (Object.entries(obj.extra).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), - 'groups': obj.groups?.map(y => y), - 'request': obj.request, - 'signerName': obj.signerName, - 'uid': obj.uid, - 'usages': obj.usages?.map(y => y), - 'username': obj.username, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterTrustBundleSpec contains the signer and trust anchors. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec - */ -export interface ClusterTrustBundleSpecV1Alpha1 { - /** - * signerName indicates the associated signer, if any. - * - * In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest. - * - * If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. - * - * If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. - * - * List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec#signerName - */ - readonly signerName?: string; - - /** - * trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. - * - * The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. - * - * Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data. - * - * @schema io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec#trustBundle - */ - readonly trustBundle: string; - -} - -/** - * Converts an object of type 'ClusterTrustBundleSpecV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ClusterTrustBundleSpecV1Alpha1(obj: ClusterTrustBundleSpecV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'signerName': obj.signerName, - 'trustBundle': obj.trustBundle, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LeaseSpec is a specification of a Lease. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec - */ -export interface LeaseSpec { - /** - * acquireTime is a time when the current lease was acquired. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#acquireTime - */ - readonly acquireTime?: Date; - - /** - * holderIdentity contains the identity of the holder of a current lease. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#holderIdentity - */ - readonly holderIdentity?: string; - - /** - * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseDurationSeconds - */ - readonly leaseDurationSeconds?: number; - - /** - * leaseTransitions is the number of transitions of a lease between holders. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseTransitions - */ - readonly leaseTransitions?: number; - - /** - * renewTime is a time when the current holder of a lease has last updated the lease. - * - * @schema io.k8s.api.coordination.v1.LeaseSpec#renewTime - */ - readonly renewTime?: Date; - -} - -/** - * Converts an object of type 'LeaseSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LeaseSpec(obj: LeaseSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'acquireTime': obj.acquireTime?.toISOString(), - 'holderIdentity': obj.holderIdentity, - 'leaseDurationSeconds': obj.leaseDurationSeconds, - 'leaseTransitions': obj.leaseTransitions, - 'renewTime': obj.renewTime?.toISOString(), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ObjectReference contains enough information to let you inspect or modify the referred object. - * - * @schema io.k8s.api.core.v1.ObjectReference - */ -export interface ObjectReference { - /** - * API version of the referent. - * - * @schema io.k8s.api.core.v1.ObjectReference#apiVersion - */ - readonly apiVersion?: string; - - /** - * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * - * @schema io.k8s.api.core.v1.ObjectReference#fieldPath - */ - readonly fieldPath?: string; - - /** - * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.core.v1.ObjectReference#kind - */ - readonly kind?: string; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ObjectReference#name - */ - readonly name?: string; - - /** - * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * - * @schema io.k8s.api.core.v1.ObjectReference#namespace - */ - readonly namespace?: string; - - /** - * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * - * @schema io.k8s.api.core.v1.ObjectReference#resourceVersion - */ - readonly resourceVersion?: string; - - /** - * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - * - * @schema io.k8s.api.core.v1.ObjectReference#uid - */ - readonly uid?: string; - -} - -/** - * Converts an object of type 'ObjectReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ObjectReference(obj: ObjectReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - 'resourceVersion': obj.resourceVersion, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Information about the condition of a component. - * - * @schema io.k8s.api.core.v1.ComponentCondition - */ -export interface ComponentCondition { - /** - * Condition error code for a component. For example, a health check error code. - * - * @schema io.k8s.api.core.v1.ComponentCondition#error - */ - readonly error?: string; - - /** - * Message about the condition for a component. For example, information about a health check. - * - * @schema io.k8s.api.core.v1.ComponentCondition#message - */ - readonly message?: string; - - /** - * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - * - * @schema io.k8s.api.core.v1.ComponentCondition#status - */ - readonly status: string; - - /** - * Type of condition for a component. Valid value: "Healthy" - * - * @schema io.k8s.api.core.v1.ComponentCondition#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'ComponentCondition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ComponentCondition(obj: ComponentCondition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'error': obj.error, - 'message': obj.message, - 'status': obj.status, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: - * - * { - * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - * } - * - * The resulting set of endpoints can be viewed as: - * - * a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], - * b: [ 10.10.1.1:309, 10.10.2.2:309 ] - * - * @schema io.k8s.api.core.v1.EndpointSubset - */ -export interface EndpointSubset { - /** - * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * - * @schema io.k8s.api.core.v1.EndpointSubset#addresses - */ - readonly addresses?: EndpointAddress[]; - - /** - * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * - * @schema io.k8s.api.core.v1.EndpointSubset#notReadyAddresses - */ - readonly notReadyAddresses?: EndpointAddress[]; - - /** - * Port numbers available on the related IP addresses. - * - * @schema io.k8s.api.core.v1.EndpointSubset#ports - */ - readonly ports?: EndpointPort[]; - -} - -/** - * Converts an object of type 'EndpointSubset' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EndpointSubset(obj: EndpointSubset | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'addresses': obj.addresses?.map(y => toJson_EndpointAddress(y)), - 'notReadyAddresses': obj.notReadyAddresses?.map(y => toJson_EndpointAddress(y)), - 'ports': obj.ports?.map(y => toJson_EndpointPort(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EventSource contains information for an event. - * - * @schema io.k8s.api.core.v1.EventSource - */ -export interface EventSource { - /** - * Component from which the event is generated. - * - * @schema io.k8s.api.core.v1.EventSource#component - */ - readonly component?: string; - - /** - * Node name on which the event is generated. - * - * @schema io.k8s.api.core.v1.EventSource#host - */ - readonly host?: string; - -} - -/** - * Converts an object of type 'EventSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EventSource(obj: EventSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'component': obj.component, - 'host': obj.host, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations. - * - * @schema io.k8s.api.events.v1.EventSeries - */ -export interface EventSeries { - /** - * count is the number of occurrences in this series up to the last heartbeat time. - * - * @schema io.k8s.api.events.v1.EventSeries#count - */ - readonly count: number; - - /** - * lastObservedTime is the time when last Event from the series was seen before last heartbeat. - * - * @schema io.k8s.api.events.v1.EventSeries#lastObservedTime - */ - readonly lastObservedTime: Date; - -} - -/** - * Converts an object of type 'EventSeries' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EventSeries(obj: EventSeries | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'count': obj.count, - 'lastObservedTime': obj.lastObservedTime?.toISOString(), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitRangeSpec defines a min/max usage limit for resources that match on kind. - * - * @schema io.k8s.api.core.v1.LimitRangeSpec - */ -export interface LimitRangeSpec { - /** - * Limits is the list of LimitRangeItem objects that are enforced. - * - * @schema io.k8s.api.core.v1.LimitRangeSpec#limits - */ - readonly limits: LimitRangeItem[]; - -} - -/** - * Converts an object of type 'LimitRangeSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LimitRangeSpec(obj: LimitRangeSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': obj.limits?.map(y => toJson_LimitRangeItem(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NamespaceSpec describes the attributes on a Namespace. - * - * @schema io.k8s.api.core.v1.NamespaceSpec - */ -export interface NamespaceSpec { - /** - * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - * - * @schema io.k8s.api.core.v1.NamespaceSpec#finalizers - */ - readonly finalizers?: string[]; - -} - -/** - * Converts an object of type 'NamespaceSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NamespaceSpec(obj: NamespaceSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'finalizers': obj.finalizers?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NodeSpec describes the attributes that a node is created with. - * - * @schema io.k8s.api.core.v1.NodeSpec - */ -export interface NodeSpec { - /** - * Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed. - * - * @schema io.k8s.api.core.v1.NodeSpec#configSource - */ - readonly configSource?: NodeConfigSource; - - /** - * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 - * - * @schema io.k8s.api.core.v1.NodeSpec#externalID - */ - readonly externalId?: string; - - /** - * PodCIDR represents the pod IP range assigned to the node. - * - * @schema io.k8s.api.core.v1.NodeSpec#podCIDR - */ - readonly podCidr?: string; - - /** - * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. - * - * @schema io.k8s.api.core.v1.NodeSpec#podCIDRs - */ - readonly podCidRs?: string[]; - - /** - * ID of the node assigned by the cloud provider in the format: :// - * - * @schema io.k8s.api.core.v1.NodeSpec#providerID - */ - readonly providerId?: string; - - /** - * If specified, the node's taints. - * - * @schema io.k8s.api.core.v1.NodeSpec#taints - */ - readonly taints?: Taint[]; - - /** - * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - * - * @schema io.k8s.api.core.v1.NodeSpec#unschedulable - */ - readonly unschedulable?: boolean; - -} - -/** - * Converts an object of type 'NodeSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NodeSpec(obj: NodeSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configSource': toJson_NodeConfigSource(obj.configSource), - 'externalID': obj.externalId, - 'podCIDR': obj.podCidr, - 'podCIDRs': obj.podCidRs?.map(y => y), - 'providerID': obj.providerId, - 'taints': obj.taints?.map(y => toJson_Taint(y)), - 'unschedulable': obj.unschedulable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeSpec is the specification of a persistent volume. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec - */ -export interface PersistentVolumeSpec { - /** - * accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#accessModes - */ - readonly accessModes?: string[]; - - /** - * awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#awsElasticBlockStore - */ - readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; - - /** - * azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureDisk - */ - readonly azureDisk?: AzureDiskVolumeSource; - - /** - * azureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureFile - */ - readonly azureFile?: AzureFilePersistentVolumeSource; - - /** - * capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#capacity - */ - readonly capacity?: { [key: string]: Quantity }; - - /** - * cephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cephfs - */ - readonly cephfs?: CephFsPersistentVolumeSource; - - /** - * cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cinder - */ - readonly cinder?: CinderPersistentVolumeSource; - - /** - * claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#claimRef - */ - readonly claimRef?: ObjectReference; - - /** - * csi represents storage that is handled by an external CSI driver (Beta feature). - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#csi - */ - readonly csi?: CsiPersistentVolumeSource; - - /** - * fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#fc - */ - readonly fc?: FcVolumeSource; - - /** - * flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flexVolume - */ - readonly flexVolume?: FlexPersistentVolumeSource; - - /** - * flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flocker - */ - readonly flocker?: FlockerVolumeSource; - - /** - * gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#gcePersistentDisk - */ - readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; - - /** - * glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#glusterfs - */ - readonly glusterfs?: GlusterfsPersistentVolumeSource; - - /** - * hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#hostPath - */ - readonly hostPath?: HostPathVolumeSource; - - /** - * iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#iscsi - */ - readonly iscsi?: IscsiPersistentVolumeSource; - - /** - * local represents directly-attached storage with node affinity - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#local - */ - readonly local?: LocalVolumeSource; - - /** - * mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#mountOptions - */ - readonly mountOptions?: string[]; - - /** - * nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nfs - */ - readonly nfs?: NfsVolumeSource; - - /** - * nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nodeAffinity - */ - readonly nodeAffinity?: VolumeNodeAffinity; - - /** - * persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#persistentVolumeReclaimPolicy - */ - readonly persistentVolumeReclaimPolicy?: string; - - /** - * photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#photonPersistentDisk - */ - readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; - - /** - * portworxVolume represents a portworx volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#portworxVolume - */ - readonly portworxVolume?: PortworxVolumeSource; - - /** - * quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#quobyte - */ - readonly quobyte?: QuobyteVolumeSource; - - /** - * rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#rbd - */ - readonly rbd?: RbdPersistentVolumeSource; - - /** - * scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#scaleIO - */ - readonly scaleIo?: ScaleIoPersistentVolumeSource; - - /** - * storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageClassName - */ - readonly storageClassName?: string; - - /** - * storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageos - */ - readonly storageos?: StorageOsPersistentVolumeSource; - - /** - * Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#volumeAttributesClassName - */ - readonly volumeAttributesClassName?: string; - - /** - * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#volumeMode - */ - readonly volumeMode?: string; - - /** - * vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.PersistentVolumeSpec#vsphereVolume - */ - readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; - -} - -/** - * Converts an object of type 'PersistentVolumeSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PersistentVolumeSpec(obj: PersistentVolumeSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'awsElasticBlockStore': toJson_AwsElasticBlockStoreVolumeSource(obj.awsElasticBlockStore), - 'azureDisk': toJson_AzureDiskVolumeSource(obj.azureDisk), - 'azureFile': toJson_AzureFilePersistentVolumeSource(obj.azureFile), - 'capacity': ((obj.capacity) === undefined) ? undefined : (Object.entries(obj.capacity).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'cephfs': toJson_CephFsPersistentVolumeSource(obj.cephfs), - 'cinder': toJson_CinderPersistentVolumeSource(obj.cinder), - 'claimRef': toJson_ObjectReference(obj.claimRef), - 'csi': toJson_CsiPersistentVolumeSource(obj.csi), - 'fc': toJson_FcVolumeSource(obj.fc), - 'flexVolume': toJson_FlexPersistentVolumeSource(obj.flexVolume), - 'flocker': toJson_FlockerVolumeSource(obj.flocker), - 'gcePersistentDisk': toJson_GcePersistentDiskVolumeSource(obj.gcePersistentDisk), - 'glusterfs': toJson_GlusterfsPersistentVolumeSource(obj.glusterfs), - 'hostPath': toJson_HostPathVolumeSource(obj.hostPath), - 'iscsi': toJson_IscsiPersistentVolumeSource(obj.iscsi), - 'local': toJson_LocalVolumeSource(obj.local), - 'mountOptions': obj.mountOptions?.map(y => y), - 'nfs': toJson_NfsVolumeSource(obj.nfs), - 'nodeAffinity': toJson_VolumeNodeAffinity(obj.nodeAffinity), - 'persistentVolumeReclaimPolicy': obj.persistentVolumeReclaimPolicy, - 'photonPersistentDisk': toJson_PhotonPersistentDiskVolumeSource(obj.photonPersistentDisk), - 'portworxVolume': toJson_PortworxVolumeSource(obj.portworxVolume), - 'quobyte': toJson_QuobyteVolumeSource(obj.quobyte), - 'rbd': toJson_RbdPersistentVolumeSource(obj.rbd), - 'scaleIO': toJson_ScaleIoPersistentVolumeSource(obj.scaleIo), - 'storageClassName': obj.storageClassName, - 'storageos': toJson_StorageOsPersistentVolumeSource(obj.storageos), - 'volumeAttributesClassName': obj.volumeAttributesClassName, - 'volumeMode': obj.volumeMode, - 'vsphereVolume': toJson_VsphereVirtualDiskVolumeSource(obj.vsphereVolume), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec - */ -export interface PersistentVolumeClaimSpec { - /** - * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#accessModes - */ - readonly accessModes?: string[]; - - /** - * dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSource - */ - readonly dataSource?: TypedLocalObjectReference; - - /** - * dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef - * allows any non-core object, as well as PersistentVolumeClaim objects. - * * While dataSource ignores disallowed values (dropping them), dataSourceRef - * preserves all values, and generates an error if a disallowed value is - * specified. - * * While dataSource only allows local objects, dataSourceRef allows objects - * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSourceRef - */ - readonly dataSourceRef?: TypedObjectReference; - - /** - * resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#resources - */ - readonly resources?: VolumeResourceRequirements; - - /** - * selector is a label query over volumes to consider for binding. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#selector - */ - readonly selector?: LabelSelector; - - /** - * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#storageClassName - */ - readonly storageClassName?: string; - - /** - * volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeAttributesClassName - */ - readonly volumeAttributesClassName?: string; - - /** - * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeMode - */ - readonly volumeMode?: string; - - /** - * volumeName is the binding reference to the PersistentVolume backing this claim. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'PersistentVolumeClaimSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PersistentVolumeClaimSpec(obj: PersistentVolumeClaimSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'dataSource': toJson_TypedLocalObjectReference(obj.dataSource), - 'dataSourceRef': toJson_TypedObjectReference(obj.dataSourceRef), - 'resources': toJson_VolumeResourceRequirements(obj.resources), - 'selector': toJson_LabelSelector(obj.selector), - 'storageClassName': obj.storageClassName, - 'volumeAttributesClassName': obj.volumeAttributesClassName, - 'volumeMode': obj.volumeMode, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSpec is a description of a pod. - * - * @schema io.k8s.api.core.v1.PodSpec - */ -export interface PodSpec { - /** - * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * - * @schema io.k8s.api.core.v1.PodSpec#activeDeadlineSeconds - */ - readonly activeDeadlineSeconds?: number; - - /** - * If specified, the pod's scheduling constraints - * - * @schema io.k8s.api.core.v1.PodSpec#affinity - */ - readonly affinity?: Affinity; - - /** - * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * - * @schema io.k8s.api.core.v1.PodSpec#automountServiceAccountToken - */ - readonly automountServiceAccountToken?: boolean; - - /** - * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * - * @schema io.k8s.api.core.v1.PodSpec#containers - */ - readonly containers: Container[]; - - /** - * Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * - * @schema io.k8s.api.core.v1.PodSpec#dnsConfig - */ - readonly dnsConfig?: PodDnsConfig; - - /** - * Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * - * @default ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * @schema io.k8s.api.core.v1.PodSpec#dnsPolicy - */ - readonly dnsPolicy?: string; - - /** - * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * - * @default true. - * @schema io.k8s.api.core.v1.PodSpec#enableServiceLinks - */ - readonly enableServiceLinks?: boolean; - - /** - * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. - * - * @schema io.k8s.api.core.v1.PodSpec#ephemeralContainers - */ - readonly ephemeralContainers?: EphemeralContainer[]; - - /** - * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * - * @schema io.k8s.api.core.v1.PodSpec#hostAliases - */ - readonly hostAliases?: HostAlias[]; - - /** - * Use the host's ipc namespace. Optional: Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#hostIPC - */ - readonly hostIpc?: boolean; - - /** - * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#hostNetwork - */ - readonly hostNetwork?: boolean; - - /** - * Use the host's pid namespace. Optional: Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#hostPID - */ - readonly hostPid?: boolean; - - /** - * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * - * @default true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * @schema io.k8s.api.core.v1.PodSpec#hostUsers - */ - readonly hostUsers?: boolean; - - /** - * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * - * @schema io.k8s.api.core.v1.PodSpec#hostname - */ - readonly hostname?: string; - - /** - * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * - * @schema io.k8s.api.core.v1.PodSpec#imagePullSecrets - */ - readonly imagePullSecrets?: LocalObjectReference[]; - - /** - * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * - * @schema io.k8s.api.core.v1.PodSpec#initContainers - */ - readonly initContainers?: Container[]; - - /** - * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * - * @schema io.k8s.api.core.v1.PodSpec#nodeName - */ - readonly nodeName?: string; - - /** - * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * - * @schema io.k8s.api.core.v1.PodSpec#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set. - * - * If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions - * - * If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup - * - * @schema io.k8s.api.core.v1.PodSpec#os - */ - readonly os?: PodOs; - - /** - * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md - * - * @schema io.k8s.api.core.v1.PodSpec#overhead - */ - readonly overhead?: { [key: string]: Quantity }; - - /** - * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. - * - * @default PreemptLowerPriority if unset. - * @schema io.k8s.api.core.v1.PodSpec#preemptionPolicy - */ - readonly preemptionPolicy?: string; - - /** - * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * - * @schema io.k8s.api.core.v1.PodSpec#priority - */ - readonly priority?: number; - - /** - * If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * - * @schema io.k8s.api.core.v1.PodSpec#priorityClassName - */ - readonly priorityClassName?: string; - - /** - * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates - * - * @schema io.k8s.api.core.v1.PodSpec#readinessGates - */ - readonly readinessGates?: PodReadinessGate[]; - - /** - * ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. - * - * This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. - * - * This field is immutable. - * - * @schema io.k8s.api.core.v1.PodSpec#resourceClaims - */ - readonly resourceClaims?: PodResourceClaim[]; - - /** - * Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * - * @default Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * @schema io.k8s.api.core.v1.PodSpec#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class - * - * @schema io.k8s.api.core.v1.PodSpec#runtimeClassName - */ - readonly runtimeClassName?: string; - - /** - * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * - * @schema io.k8s.api.core.v1.PodSpec#schedulerName - */ - readonly schedulerName?: string; - - /** - * SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. - * - * SchedulingGates can only be set at pod creation time, and be removed only afterwards. - * - * This is a beta feature enabled by the PodSchedulingReadiness feature gate. - * - * @schema io.k8s.api.core.v1.PodSpec#schedulingGates - */ - readonly schedulingGates?: PodSchedulingGate[]; - - /** - * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * - * @default empty. See type description for default values of each field. - * @schema io.k8s.api.core.v1.PodSpec#securityContext - */ - readonly securityContext?: PodSecurityContext; - - /** - * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * - * @schema io.k8s.api.core.v1.PodSpec#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * - * @schema io.k8s.api.core.v1.PodSpec#serviceAccountName - */ - readonly serviceAccountName?: string; - - /** - * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#setHostnameAsFQDN - */ - readonly setHostnameAsFqdn?: boolean; - - /** - * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * - * @default false. - * @schema io.k8s.api.core.v1.PodSpec#shareProcessNamespace - */ - readonly shareProcessNamespace?: boolean; - - /** - * If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * - * @schema io.k8s.api.core.v1.PodSpec#subdomain - */ - readonly subdomain?: string; - - /** - * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * - * @default 30 seconds. - * @schema io.k8s.api.core.v1.PodSpec#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * If specified, the pod's tolerations. - * - * @schema io.k8s.api.core.v1.PodSpec#tolerations - */ - readonly tolerations?: Toleration[]; - - /** - * TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. - * - * @schema io.k8s.api.core.v1.PodSpec#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: TopologySpreadConstraint[]; - - /** - * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * - * @schema io.k8s.api.core.v1.PodSpec#volumes - */ - readonly volumes?: Volume[]; - -} - -/** - * Converts an object of type 'PodSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodSpec(obj: PodSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'activeDeadlineSeconds': obj.activeDeadlineSeconds, - 'affinity': toJson_Affinity(obj.affinity), - 'automountServiceAccountToken': obj.automountServiceAccountToken, - 'containers': obj.containers?.map(y => toJson_Container(y)), - 'dnsConfig': toJson_PodDnsConfig(obj.dnsConfig), - 'dnsPolicy': obj.dnsPolicy, - 'enableServiceLinks': obj.enableServiceLinks, - 'ephemeralContainers': obj.ephemeralContainers?.map(y => toJson_EphemeralContainer(y)), - 'hostAliases': obj.hostAliases?.map(y => toJson_HostAlias(y)), - 'hostIPC': obj.hostIpc, - 'hostNetwork': obj.hostNetwork, - 'hostPID': obj.hostPid, - 'hostUsers': obj.hostUsers, - 'hostname': obj.hostname, - 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_LocalObjectReference(y)), - 'initContainers': obj.initContainers?.map(y => toJson_Container(y)), - 'nodeName': obj.nodeName, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'os': toJson_PodOs(obj.os), - 'overhead': ((obj.overhead) === undefined) ? undefined : (Object.entries(obj.overhead).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'preemptionPolicy': obj.preemptionPolicy, - 'priority': obj.priority, - 'priorityClassName': obj.priorityClassName, - 'readinessGates': obj.readinessGates?.map(y => toJson_PodReadinessGate(y)), - 'resourceClaims': obj.resourceClaims?.map(y => toJson_PodResourceClaim(y)), - 'restartPolicy': obj.restartPolicy, - 'runtimeClassName': obj.runtimeClassName, - 'schedulerName': obj.schedulerName, - 'schedulingGates': obj.schedulingGates?.map(y => toJson_PodSchedulingGate(y)), - 'securityContext': toJson_PodSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'serviceAccountName': obj.serviceAccountName, - 'setHostnameAsFQDN': obj.setHostnameAsFqdn, - 'shareProcessNamespace': obj.shareProcessNamespace, - 'subdomain': obj.subdomain, - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'tolerations': obj.tolerations?.map(y => toJson_Toleration(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_TopologySpreadConstraint(y)), - 'volumes': obj.volumes?.map(y => toJson_Volume(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodTemplateSpec describes the data a pod should have when created from a template - * - * @schema io.k8s.api.core.v1.PodTemplateSpec - */ -export interface PodTemplateSpec { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.core.v1.PodTemplateSpec#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.core.v1.PodTemplateSpec#spec - */ - readonly spec?: PodSpec; - -} - -/** - * Converts an object of type 'PodTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodTemplateSpec(obj: PodTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PodSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ReplicationControllerSpec is the specification of a replication controller. - * - * @schema io.k8s.api.core.v1.ReplicationControllerSpec - */ -export interface ReplicationControllerSpec { - /** - * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * - * @default 0 (pod will be considered available as soon as it is ready) - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#minReadySeconds - */ - readonly minReadySeconds?: number; - - /** - * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * - * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#replicas - */ - readonly replicas?: number; - - /** - * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#selector - */ - readonly selector?: { [key: string]: string }; - - /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * - * @schema io.k8s.api.core.v1.ReplicationControllerSpec#template - */ - readonly template?: PodTemplateSpec; - -} - -/** - * Converts an object of type 'ReplicationControllerSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ReplicationControllerSpec(obj: ReplicationControllerSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minReadySeconds': obj.minReadySeconds, - 'replicas': obj.replicas, - 'selector': ((obj.selector) === undefined) ? undefined : (Object.entries(obj.selector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'template': toJson_PodTemplateSpec(obj.template), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec - */ -export interface ResourceQuotaSpec { - /** - * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec#hard - */ - readonly hard?: { [key: string]: Quantity }; - - /** - * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopeSelector - */ - readonly scopeSelector?: ScopeSelector; - - /** - * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. - * - * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopes - */ - readonly scopes?: string[]; - -} - -/** - * Converts an object of type 'ResourceQuotaSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceQuotaSpec(obj: ResourceQuotaSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hard': ((obj.hard) === undefined) ? undefined : (Object.entries(obj.hard).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'scopeSelector': toJson_ScopeSelector(obj.scopeSelector), - 'scopes': obj.scopes?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceSpec describes the attributes that a user creates on a service. - * - * @schema io.k8s.api.core.v1.ServiceSpec - */ -export interface ServiceSpec { - /** - * allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. - * - * @default true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. - * @schema io.k8s.api.core.v1.ServiceSpec#allocateLoadBalancerNodePorts - */ - readonly allocateLoadBalancerNodePorts?: boolean; - - /** - * clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @schema io.k8s.api.core.v1.ServiceSpec#clusterIP - */ - readonly clusterIp?: string; - - /** - * ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. - * - * This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @schema io.k8s.api.core.v1.ServiceSpec#clusterIPs - */ - readonly clusterIPs?: string[]; - - /** - * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. - * - * @schema io.k8s.api.core.v1.ServiceSpec#externalIPs - */ - readonly externalIPs?: string[]; - - /** - * externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". - * - * @schema io.k8s.api.core.v1.ServiceSpec#externalName - */ - readonly externalName?: string; - - /** - * externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. - * - * @schema io.k8s.api.core.v1.ServiceSpec#externalTrafficPolicy - */ - readonly externalTrafficPolicy?: string; - - /** - * healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. - * - * @schema io.k8s.api.core.v1.ServiceSpec#healthCheckNodePort - */ - readonly healthCheckNodePort?: number; - - /** - * InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). - * - * @schema io.k8s.api.core.v1.ServiceSpec#internalTrafficPolicy - */ - readonly internalTrafficPolicy?: string; - - /** - * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. - * - * This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. - * - * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilies - */ - readonly ipFamilies?: string[]; - - /** - * IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. - * - * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilyPolicy - */ - readonly ipFamilyPolicy?: string; - - /** - * loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. - * - * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerClass - */ - readonly loadBalancerClass?: string; - - /** - * Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. - * - * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerIP - */ - readonly loadBalancerIp?: string; - - /** - * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ - * - * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerSourceRanges - */ - readonly loadBalancerSourceRanges?: string[]; - - /** - * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @schema io.k8s.api.core.v1.ServiceSpec#ports - */ - readonly ports?: ServicePort[]; - - /** - * publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. - * - * @schema io.k8s.api.core.v1.ServiceSpec#publishNotReadyAddresses - */ - readonly publishNotReadyAddresses?: boolean; - - /** - * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ - * - * @schema io.k8s.api.core.v1.ServiceSpec#selector - */ - readonly selector?: { [key: string]: string }; - - /** - * Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * - * @default None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinity - */ - readonly sessionAffinity?: string; - - /** - * sessionAffinityConfig contains the configurations of session affinity. - * - * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinityConfig - */ - readonly sessionAffinityConfig?: SessionAffinityConfig; - - /** - * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - * - * @default ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - * @schema io.k8s.api.core.v1.ServiceSpec#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'ServiceSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceSpec(obj: ServiceSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allocateLoadBalancerNodePorts': obj.allocateLoadBalancerNodePorts, - 'clusterIP': obj.clusterIp, - 'clusterIPs': obj.clusterIPs?.map(y => y), - 'externalIPs': obj.externalIPs?.map(y => y), - 'externalName': obj.externalName, - 'externalTrafficPolicy': obj.externalTrafficPolicy, - 'healthCheckNodePort': obj.healthCheckNodePort, - 'internalTrafficPolicy': obj.internalTrafficPolicy, - 'ipFamilies': obj.ipFamilies?.map(y => y), - 'ipFamilyPolicy': obj.ipFamilyPolicy, - 'loadBalancerClass': obj.loadBalancerClass, - 'loadBalancerIP': obj.loadBalancerIp, - 'loadBalancerSourceRanges': obj.loadBalancerSourceRanges?.map(y => y), - 'ports': obj.ports?.map(y => toJson_ServicePort(y)), - 'publishNotReadyAddresses': obj.publishNotReadyAddresses, - 'selector': ((obj.selector) === undefined) ? undefined : (Object.entries(obj.selector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'sessionAffinity': obj.sessionAffinity, - 'sessionAffinityConfig': toJson_SessionAffinityConfig(obj.sessionAffinityConfig), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - * - * @schema io.k8s.api.core.v1.LocalObjectReference - */ -export interface LocalObjectReference { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.LocalObjectReference#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'LocalObjectReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LocalObjectReference(obj: LocalObjectReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Endpoint represents a single logical "backend" implementing a service. - * - * @schema io.k8s.api.discovery.v1.Endpoint - */ -export interface Endpoint { - /** - * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 - * - * @schema io.k8s.api.discovery.v1.Endpoint#addresses - */ - readonly addresses: string[]; - - /** - * conditions contains information about the current status of the endpoint. - * - * @schema io.k8s.api.discovery.v1.Endpoint#conditions - */ - readonly conditions?: EndpointConditions; - - /** - * deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. - * - * @schema io.k8s.api.discovery.v1.Endpoint#deprecatedTopology - */ - readonly deprecatedTopology?: { [key: string]: string }; - - /** - * hints contains information associated with how an endpoint should be consumed. - * - * @schema io.k8s.api.discovery.v1.Endpoint#hints - */ - readonly hints?: EndpointHints; - - /** - * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. - * - * @schema io.k8s.api.discovery.v1.Endpoint#hostname - */ - readonly hostname?: string; - - /** - * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. - * - * @schema io.k8s.api.discovery.v1.Endpoint#nodeName - */ - readonly nodeName?: string; - - /** - * targetRef is a reference to a Kubernetes object that represents this endpoint. - * - * @schema io.k8s.api.discovery.v1.Endpoint#targetRef - */ - readonly targetRef?: ObjectReference; - - /** - * zone is the name of the Zone this endpoint exists in. - * - * @schema io.k8s.api.discovery.v1.Endpoint#zone - */ - readonly zone?: string; - -} - -/** - * Converts an object of type 'Endpoint' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Endpoint(obj: Endpoint | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'addresses': obj.addresses?.map(y => y), - 'conditions': toJson_EndpointConditions(obj.conditions), - 'deprecatedTopology': ((obj.deprecatedTopology) === undefined) ? undefined : (Object.entries(obj.deprecatedTopology).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'hints': toJson_EndpointHints(obj.hints), - 'hostname': obj.hostname, - 'nodeName': obj.nodeName, - 'targetRef': toJson_ObjectReference(obj.targetRef), - 'zone': obj.zone, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointPort is a tuple that describes a single port. - * - * @schema io.k8s.api.core.v1.EndpointPort - */ -export interface EndpointPort { - /** - * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: - * - * * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). - * - * * Kubernetes-defined prefixed names: - * * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- - * * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 - * * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 - * - * * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. - * - * @schema io.k8s.api.core.v1.EndpointPort#appProtocol - */ - readonly appProtocol?: string; - - /** - * The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - * - * @schema io.k8s.api.core.v1.EndpointPort#name - */ - readonly name?: string; - - /** - * The port number of the endpoint. - * - * @schema io.k8s.api.core.v1.EndpointPort#port - */ - readonly port: number; - - /** - * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - * - * @default TCP. - * @schema io.k8s.api.core.v1.EndpointPort#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'EndpointPort' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EndpointPort(obj: EndpointPort | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appProtocol': obj.appProtocol, - 'name': obj.name, - 'port': obj.port, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowSchemaSpec describes how the FlowSchema's specification looks like. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaSpec - */ -export interface FlowSchemaSpec { - /** - * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaSpec#distinguisherMethod - */ - readonly distinguisherMethod?: FlowDistinguisherMethod; - - /** - * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaSpec#matchingPrecedence - */ - readonly matchingPrecedence?: number; - - /** - * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaSpec#priorityLevelConfiguration - */ - readonly priorityLevelConfiguration: PriorityLevelConfigurationReference; - - /** - * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * - * @schema io.k8s.api.flowcontrol.v1.FlowSchemaSpec#rules - */ - readonly rules?: PolicyRulesWithSubjects[]; - -} - -/** - * Converts an object of type 'FlowSchemaSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlowSchemaSpec(obj: FlowSchemaSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'distinguisherMethod': toJson_FlowDistinguisherMethod(obj.distinguisherMethod), - 'matchingPrecedence': obj.matchingPrecedence, - 'priorityLevelConfiguration': toJson_PriorityLevelConfigurationReference(obj.priorityLevelConfiguration), - 'rules': obj.rules?.map(y => toJson_PolicyRulesWithSubjects(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfigurationSpec specifies the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec - */ -export interface PriorityLevelConfigurationSpec { - /** - * `exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `"Limited"`. This field MAY be non-empty if `type` is `"Exempt"`. If empty and `type` is `"Exempt"` then the default values for `ExemptPriorityLevelConfiguration` apply. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec#exempt - */ - readonly exempt?: ExemptPriorityLevelConfiguration; - - /** - * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec#limited - */ - readonly limited?: LimitedPriorityLevelConfiguration; - - /** - * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'PriorityLevelConfigurationSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PriorityLevelConfigurationSpec(obj: PriorityLevelConfigurationSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exempt': toJson_ExemptPriorityLevelConfiguration(obj.exempt), - 'limited': toJson_LimitedPriorityLevelConfiguration(obj.limited), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowSchemaSpec describes how the FlowSchema's specification looks like. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec - */ -export interface FlowSchemaSpecV1Beta3 { - /** - * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec#distinguisherMethod - */ - readonly distinguisherMethod?: FlowDistinguisherMethodV1Beta3; - - /** - * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec#matchingPrecedence - */ - readonly matchingPrecedence?: number; - - /** - * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec#priorityLevelConfiguration - */ - readonly priorityLevelConfiguration: PriorityLevelConfigurationReferenceV1Beta3; - - /** - * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec#rules - */ - readonly rules?: PolicyRulesWithSubjectsV1Beta3[]; - -} - -/** - * Converts an object of type 'FlowSchemaSpecV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlowSchemaSpecV1Beta3(obj: FlowSchemaSpecV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'distinguisherMethod': toJson_FlowDistinguisherMethodV1Beta3(obj.distinguisherMethod), - 'matchingPrecedence': obj.matchingPrecedence, - 'priorityLevelConfiguration': toJson_PriorityLevelConfigurationReferenceV1Beta3(obj.priorityLevelConfiguration), - 'rules': obj.rules?.map(y => toJson_PolicyRulesWithSubjectsV1Beta3(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfigurationSpec specifies the configuration of a priority level. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec - */ -export interface PriorityLevelConfigurationSpecV1Beta3 { - /** - * `exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `"Limited"`. This field MAY be non-empty if `type` is `"Exempt"`. If empty and `type` is `"Exempt"` then the default values for `ExemptPriorityLevelConfiguration` apply. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec#exempt - */ - readonly exempt?: ExemptPriorityLevelConfigurationV1Beta3; - - /** - * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec#limited - */ - readonly limited?: LimitedPriorityLevelConfigurationV1Beta3; - - /** - * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'PriorityLevelConfigurationSpecV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PriorityLevelConfigurationSpecV1Beta3(obj: PriorityLevelConfigurationSpecV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exempt': toJson_ExemptPriorityLevelConfigurationV1Beta3(obj.exempt), - 'limited': toJson_LimitedPriorityLevelConfigurationV1Beta3(obj.limited), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressSpec describes the Ingress the user wishes to exist. - * - * @schema io.k8s.api.networking.v1.IngressSpec - */ -export interface IngressSpec { - /** - * defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller. - * - * @schema io.k8s.api.networking.v1.IngressSpec#defaultBackend - */ - readonly defaultBackend?: IngressBackend; - - /** - * ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. - * - * @schema io.k8s.api.networking.v1.IngressSpec#ingressClassName - */ - readonly ingressClassName?: string; - - /** - * rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * - * @schema io.k8s.api.networking.v1.IngressSpec#rules - */ - readonly rules?: IngressRule[]; - - /** - * tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * - * @schema io.k8s.api.networking.v1.IngressSpec#tls - */ - readonly tls?: IngressTls[]; - -} - -/** - * Converts an object of type 'IngressSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressSpec(obj: IngressSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultBackend': toJson_IngressBackend(obj.defaultBackend), - 'ingressClassName': obj.ingressClassName, - 'rules': obj.rules?.map(y => toJson_IngressRule(y)), - 'tls': obj.tls?.map(y => toJson_IngressTls(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressClassSpec provides information about the class of an Ingress. - * - * @schema io.k8s.api.networking.v1.IngressClassSpec - */ -export interface IngressClassSpec { - /** - * controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - * - * @schema io.k8s.api.networking.v1.IngressClassSpec#controller - */ - readonly controller?: string; - - /** - * parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. - * - * @schema io.k8s.api.networking.v1.IngressClassSpec#parameters - */ - readonly parameters?: IngressClassParametersReference; - -} - -/** - * Converts an object of type 'IngressClassSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressClassSpec(obj: IngressClassSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'controller': obj.controller, - 'parameters': toJson_IngressClassParametersReference(obj.parameters), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicySpec provides the specification of a NetworkPolicy - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec - */ -export interface NetworkPolicySpec { - /** - * egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#egress - */ - readonly egress?: NetworkPolicyEgressRule[]; - - /** - * ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#ingress - */ - readonly ingress?: NetworkPolicyIngressRule[]; - - /** - * podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#podSelector - */ - readonly podSelector: LabelSelector; - - /** - * policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 - * - * @schema io.k8s.api.networking.v1.NetworkPolicySpec#policyTypes - */ - readonly policyTypes?: string[]; - -} - -/** - * Converts an object of type 'NetworkPolicySpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NetworkPolicySpec(obj: NetworkPolicySpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'egress': obj.egress?.map(y => toJson_NetworkPolicyEgressRule(y)), - 'ingress': obj.ingress?.map(y => toJson_NetworkPolicyIngressRule(y)), - 'podSelector': toJson_LabelSelector(obj.podSelector), - 'policyTypes': obj.policyTypes?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IPAddressSpec describe the attributes in an IP Address. - * - * @schema io.k8s.api.networking.v1alpha1.IPAddressSpec - */ -export interface IpAddressSpecV1Alpha1 { - /** - * ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object. - * - * @schema io.k8s.api.networking.v1alpha1.IPAddressSpec#parentRef - */ - readonly parentRef?: ParentReferenceV1Alpha1; - -} - -/** - * Converts an object of type 'IpAddressSpecV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IpAddressSpecV1Alpha1(obj: IpAddressSpecV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'parentRef': toJson_ParentReferenceV1Alpha1(obj.parentRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDRSpec - */ -export interface ServiceCidrSpecV1Alpha1 { - /** - * CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable. - * - * @schema io.k8s.api.networking.v1alpha1.ServiceCIDRSpec#cidrs - */ - readonly cidrs?: string[]; - -} - -/** - * Converts an object of type 'ServiceCidrSpecV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceCidrSpecV1Alpha1(obj: ServiceCidrSpecV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cidrs': obj.cidrs?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Overhead structure represents the resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1.Overhead - */ -export interface Overhead { - /** - * podFixed represents the fixed resource overhead associated with running a pod. - * - * @schema io.k8s.api.node.v1.Overhead#podFixed - */ - readonly podFixed?: { [key: string]: Quantity }; - -} - -/** - * Converts an object of type 'Overhead' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Overhead(obj: Overhead | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podFixed': ((obj.podFixed) === undefined) ? undefined : (Object.entries(obj.podFixed).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. - * - * @schema io.k8s.api.node.v1.Scheduling - */ -export interface Scheduling { - /** - * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * - * @schema io.k8s.api.node.v1.Scheduling#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * - * @schema io.k8s.api.node.v1.Scheduling#tolerations - */ - readonly tolerations?: Toleration[]; - -} - -/** - * Converts an object of type 'Scheduling' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Scheduling(obj: Scheduling | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'tolerations': obj.tolerations?.map(y => toJson_Toleration(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DeleteOptions may be provided when deleting an API object. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions - */ -export interface DeleteOptions { - /** - * 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 - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#apiVersion - */ - readonly apiVersion?: string; - - /** - * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#dryRun - */ - readonly dryRun?: string[]; - - /** - * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * - * @default a per object value if not specified. zero means delete immediately. - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#gracePeriodSeconds - */ - readonly gracePeriodSeconds?: number; - - /** - * 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 - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#kind - */ - readonly kind?: IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind; - - /** - * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#orphanDependents - */ - readonly orphanDependents?: boolean; - - /** - * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#preconditions - */ - readonly preconditions?: Preconditions; - - /** - * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#propagationPolicy - */ - readonly propagationPolicy?: string; - -} - -/** - * Converts an object of type 'DeleteOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DeleteOptions(obj: DeleteOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'dryRun': obj.dryRun?.map(y => y), - 'gracePeriodSeconds': obj.gracePeriodSeconds, - 'kind': obj.kind, - 'orphanDependents': obj.orphanDependents, - 'preconditions': toJson_Preconditions(obj.preconditions), - 'propagationPolicy': obj.propagationPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec - */ -export interface PodDisruptionBudgetSpec { - /** - * An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; - - /** - * An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#minAvailable - */ - readonly minAvailable?: IntOrString; - - /** - * Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace. - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#selector - */ - readonly selector?: LabelSelector; - - /** - * UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True". - * - * Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. - * - * IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. - * - * AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. - * - * Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. - * - * This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default). - * - * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#unhealthyPodEvictionPolicy - */ - readonly unhealthyPodEvictionPolicy?: string; - -} - -/** - * Converts an object of type 'PodDisruptionBudgetSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodDisruptionBudgetSpec(obj: PodDisruptionBudgetSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxUnavailable': obj.maxUnavailable?.value, - 'minAvailable': obj.minAvailable?.value, - 'selector': toJson_LabelSelector(obj.selector), - 'unhealthyPodEvictionPolicy': obj.unhealthyPodEvictionPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole - * - * @schema io.k8s.api.rbac.v1.AggregationRule - */ -export interface AggregationRule { - /** - * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * - * @schema io.k8s.api.rbac.v1.AggregationRule#clusterRoleSelectors - */ - readonly clusterRoleSelectors?: LabelSelector[]; - -} - -/** - * Converts an object of type 'AggregationRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AggregationRule(obj: AggregationRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterRoleSelectors': obj.clusterRoleSelectors?.map(y => toJson_LabelSelector(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. - * - * @schema io.k8s.api.rbac.v1.PolicyRule - */ -export interface PolicyRule { - /** - * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#apiGroups - */ - readonly apiGroups?: string[]; - - /** - * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#nonResourceURLs - */ - readonly nonResourceUrLs?: string[]; - - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#resourceNames - */ - readonly resourceNames?: string[]; - - /** - * Resources is a list of resources this rule applies to. '*' represents all resources. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#resources - */ - readonly resources?: string[]; - - /** - * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. - * - * @schema io.k8s.api.rbac.v1.PolicyRule#verbs - */ - readonly verbs: string[]; - -} - -/** - * Converts an object of type 'PolicyRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PolicyRule(obj: PolicyRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroups': obj.apiGroups?.map(y => y), - 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), - 'resourceNames': obj.resourceNames?.map(y => y), - 'resources': obj.resources?.map(y => y), - 'verbs': obj.verbs?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RoleRef contains information that points to the role being used - * - * @schema io.k8s.api.rbac.v1.RoleRef - */ -export interface RoleRef { - /** - * APIGroup is the group for the resource being referenced - * - * @schema io.k8s.api.rbac.v1.RoleRef#apiGroup - */ - readonly apiGroup: string; - - /** - * Kind is the type of resource being referenced - * - * @schema io.k8s.api.rbac.v1.RoleRef#kind - */ - readonly kind: string; - - /** - * Name is the name of resource being referenced - * - * @schema io.k8s.api.rbac.v1.RoleRef#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'RoleRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RoleRef(obj: RoleRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. - * - * @schema io.k8s.api.rbac.v1.Subject - */ -export interface Subject { - /** - * APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * - * @default for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * @schema io.k8s.api.rbac.v1.Subject#apiGroup - */ - readonly apiGroup?: string; - - /** - * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * - * @schema io.k8s.api.rbac.v1.Subject#kind - */ - readonly kind: string; - - /** - * Name of the object being referenced. - * - * @schema io.k8s.api.rbac.v1.Subject#name - */ - readonly name: string; - - /** - * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - * - * @schema io.k8s.api.rbac.v1.Subject#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'Subject' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Subject(obj: Subject | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSchedulingContextSpec describes where resources for the Pod are needed. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec - */ -export interface PodSchedulingContextSpecV1Alpha2 { - /** - * PotentialNodes lists nodes where the Pod might be able to run. - * - * The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec#potentialNodes - */ - readonly potentialNodes?: string[]; - - /** - * SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted. - * - * @schema io.k8s.api.resource.v1alpha2.PodSchedulingContextSpec#selectedNode - */ - readonly selectedNode?: string; - -} - -/** - * Converts an object of type 'PodSchedulingContextSpecV1Alpha2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodSchedulingContextSpecV1Alpha2(obj: PodSchedulingContextSpecV1Alpha2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'potentialNodes': obj.potentialNodes?.map(y => y), - 'selectedNode': obj.selectedNode, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaimSpec defines how a resource is to be allocated. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimSpec - */ -export interface ResourceClaimSpecV1Alpha2 { - /** - * Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimSpec#allocationMode - */ - readonly allocationMode?: string; - - /** - * ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim. - * - * The object must be in the same namespace as the ResourceClaim. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimSpec#parametersRef - */ - readonly parametersRef?: ResourceClaimParametersReferenceV1Alpha2; - - /** - * ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimSpec#resourceClassName - */ - readonly resourceClassName: string; - -} - -/** - * Converts an object of type 'ResourceClaimSpecV1Alpha2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceClaimSpecV1Alpha2(obj: ResourceClaimSpecV1Alpha2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allocationMode': obj.allocationMode, - 'parametersRef': toJson_ResourceClaimParametersReferenceV1Alpha2(obj.parametersRef), - 'resourceClassName': obj.resourceClassName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec - */ -export interface ResourceClaimTemplateSpecV1Alpha2 { - /** - * ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimTemplateSpec#spec - */ - readonly spec: ResourceClaimSpecV1Alpha2; - -} - -/** - * Converts an object of type 'ResourceClaimTemplateSpecV1Alpha2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceClaimTemplateSpecV1Alpha2(obj: ResourceClaimTemplateSpecV1Alpha2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_ResourceClaimSpecV1Alpha2(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassParametersReference - */ -export interface ResourceClassParametersReferenceV1Alpha2 { - /** - * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassParametersReference#apiGroup - */ - readonly apiGroup?: string; - - /** - * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassParametersReference#kind - */ - readonly kind: string; - - /** - * Name is the name of resource being referenced. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassParametersReference#name - */ - readonly name: string; - - /** - * Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClassParametersReference#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'ResourceClassParametersReferenceV1Alpha2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceClassParametersReferenceV1Alpha2(obj: ResourceClassParametersReferenceV1Alpha2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. - * - * @schema io.k8s.api.core.v1.NodeSelector - */ -export interface NodeSelector { - /** - * Required. A list of node selector terms. The terms are ORed. - * - * @schema io.k8s.api.core.v1.NodeSelector#nodeSelectorTerms - */ - readonly nodeSelectorTerms: NodeSelectorTerm[]; - -} - -/** - * Converts an object of type 'NodeSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NodeSelector(obj: NodeSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_NodeSelectorTerm(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSIDriverSpec is the specification of a CSIDriver. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec - */ -export interface CsiDriverSpec { - /** - * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * - * This field is immutable. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#attachRequired - */ - readonly attachRequired?: boolean; - - /** - * fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. - * - * This field is immutable. - * - * Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. - * - * @default ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. - * @schema io.k8s.api.storage.v1.CSIDriverSpec#fsGroupPolicy - */ - readonly fsGroupPolicy?: string; - - /** - * podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. - * - * The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. - * - * The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume - * defined by a CSIVolumeSource, otherwise "false" - * - * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * - * This field is immutable. - * - * @default false. - * @schema io.k8s.api.storage.v1.CSIDriverSpec#podInfoOnMount - */ - readonly podInfoOnMount?: boolean; - - /** - * requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. - * - * Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#requiresRepublish - */ - readonly requiresRepublish?: boolean; - - /** - * seLinuxMount specifies if the CSI driver supports "-o context" mount option. - * - * When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. - * - * When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. - * - * Default is "false". - * - * @default false". - * @schema io.k8s.api.storage.v1.CSIDriverSpec#seLinuxMount - */ - readonly seLinuxMount?: boolean; - - /** - * storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true. - * - * The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. - * - * Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. - * - * This field was immutable in Kubernetes <= 1.22 and now is mutable. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#storageCapacity - */ - readonly storageCapacity?: boolean; - - /** - * tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { - * "": { - * "token": , - * "expirationTimestamp": , - * }, - * ... - * } - * - * Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#tokenRequests - */ - readonly tokenRequests?: TokenRequest[]; - - /** - * volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. - * - * The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. - * - * For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. - * - * This field is beta. This field is immutable. - * - * @schema io.k8s.api.storage.v1.CSIDriverSpec#volumeLifecycleModes - */ - readonly volumeLifecycleModes?: string[]; - -} - -/** - * Converts an object of type 'CsiDriverSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CsiDriverSpec(obj: CsiDriverSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'attachRequired': obj.attachRequired, - 'fsGroupPolicy': obj.fsGroupPolicy, - 'podInfoOnMount': obj.podInfoOnMount, - 'requiresRepublish': obj.requiresRepublish, - 'seLinuxMount': obj.seLinuxMount, - 'storageCapacity': obj.storageCapacity, - 'tokenRequests': obj.tokenRequests?.map(y => toJson_TokenRequest(y)), - 'volumeLifecycleModes': obj.volumeLifecycleModes?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSINodeSpec holds information about the specification of all CSI drivers installed on a node - * - * @schema io.k8s.api.storage.v1.CSINodeSpec - */ -export interface CsiNodeSpec { - /** - * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * - * @schema io.k8s.api.storage.v1.CSINodeSpec#drivers - */ - readonly drivers: CsiNodeDriver[]; - -} - -/** - * Converts an object of type 'CsiNodeSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CsiNodeSpec(obj: CsiNodeSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'drivers': obj.drivers?.map(y => toJson_CsiNodeDriver(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema io.k8s.apimachinery.pkg.api.resource.Quantity - */ -export class Quantity { - public static fromString(value: string): Quantity { - return new Quantity(value); - } - public static fromNumber(value: number): Quantity { - return new Quantity(value); - } - private constructor(public readonly value: string | number) { - } -} - -/** - * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector - */ -export interface LabelSelector { - /** - * matchExpressions is a list of label selector requirements. The requirements are ANDed. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchExpressions - */ - readonly matchExpressions?: LabelSelectorRequirement[]; - - /** - * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'LabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LabelSelector(obj: LabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_LabelSelectorRequirement(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. - * - * @schema io.k8s.api.core.v1.TopologySelectorTerm - */ -export interface TopologySelectorTerm { - /** - * A list of topology selector requirements by labels. - * - * @schema io.k8s.api.core.v1.TopologySelectorTerm#matchLabelExpressions - */ - readonly matchLabelExpressions?: TopologySelectorLabelRequirement[]; - -} - -/** - * Converts an object of type 'TopologySelectorTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TopologySelectorTerm(obj: TopologySelectorTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchLabelExpressions': obj.matchLabelExpressions?.map(y => toJson_TopologySelectorLabelRequirement(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeAttachmentSpec is the specification of a VolumeAttachment request. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec - */ -export interface VolumeAttachmentSpec { - /** - * attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#attacher - */ - readonly attacher: string; - - /** - * nodeName represents the node that the volume should be attached to. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#nodeName - */ - readonly nodeName: string; - - /** - * source represents the volume that should be attached. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#source - */ - readonly source: VolumeAttachmentSource; - -} - -/** - * Converts an object of type 'VolumeAttachmentSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeAttachmentSpec(obj: VolumeAttachmentSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'attacher': obj.attacher, - 'nodeName': obj.nodeName, - 'source': toJson_VolumeAttachmentSource(obj.source), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceDefinitionSpec describes how a user wants their resource to appear - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec - */ -export interface CustomResourceDefinitionSpec { - /** - * conversion defines conversion settings for the CRD. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#conversion - */ - readonly conversion?: CustomResourceConversion; - - /** - * group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#group - */ - readonly group: string; - - /** - * names specify the resource and kind names for the custom resource. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#names - */ - readonly names: CustomResourceDefinitionNames; - - /** - * preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#preserveUnknownFields - */ - readonly preserveUnknownFields?: boolean; - - /** - * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#scope - */ - readonly scope: string; - - /** - * versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#versions - */ - readonly versions: CustomResourceDefinitionVersion[]; - -} - -/** - * Converts an object of type 'CustomResourceDefinitionSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceDefinitionSpec(obj: CustomResourceDefinitionSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'conversion': toJson_CustomResourceConversion(obj.conversion), - 'group': obj.group, - 'names': toJson_CustomResourceDefinitionNames(obj.names), - 'preserveUnknownFields': obj.preserveUnknownFields, - 'scope': obj.scope, - 'versions': obj.versions?.map(y => toJson_CustomResourceDefinitionVersion(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails - */ -export interface StatusDetails { - /** - * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#causes - */ - readonly causes?: StatusCause[]; - - /** - * The group attribute of the resource associated with the status StatusReason. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#group - */ - readonly group?: string; - - /** - * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#kind - */ - readonly kind?: string; - - /** - * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#name - */ - readonly name?: string; - - /** - * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#retryAfterSeconds - */ - readonly retryAfterSeconds?: number; - - /** - * UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#uid - */ - readonly uid?: string; - -} - -/** - * Converts an object of type 'StatusDetails' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StatusDetails(obj: StatusDetails | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'causes': obj.causes?.map(y => toJson_StatusCause(y)), - 'group': obj.group, - 'kind': obj.kind, - 'name': obj.name, - 'retryAfterSeconds': obj.retryAfterSeconds, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec - */ -export interface ApiServiceSpec { - /** - * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#caBundle - */ - readonly caBundle?: string; - - /** - * Group is the API group name this server hosts - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#group - */ - readonly group?: string; - - /** - * GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#groupPriorityMinimum - */ - readonly groupPriorityMinimum: number; - - /** - * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#insecureSkipTLSVerify - */ - readonly insecureSkipTlsVerify?: boolean; - - /** - * Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#service - */ - readonly service?: ServiceReference; - - /** - * Version is the API version this server hosts. For example, "v1" - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#version - */ - readonly version?: string; - - /** - * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * - * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#versionPriority - */ - readonly versionPriority: number; - -} - -/** - * Converts an object of type 'ApiServiceSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ApiServiceSpec(obj: ApiServiceSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'caBundle': obj.caBundle, - 'group': obj.group, - 'groupPriorityMinimum': obj.groupPriorityMinimum, - 'insecureSkipTLSVerify': obj.insecureSkipTlsVerify, - 'service': toJson_ServiceReference(obj.service), - 'version': obj.version, - 'versionPriority': obj.versionPriority, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry - */ -export interface ManagedFieldsEntry { - /** - * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#apiVersion - */ - readonly apiVersion?: string; - - /** - * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsType - */ - readonly fieldsType?: string; - - /** - * FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsV1 - */ - readonly fieldsV1?: any; - - /** - * Manager is an identifier of the workflow managing these fields. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#manager - */ - readonly manager?: string; - - /** - * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#operation - */ - readonly operation?: string; - - /** - * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#subresource - */ - readonly subresource?: string; - - /** - * Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#time - */ - readonly time?: Date; - -} - -/** - * Converts an object of type 'ManagedFieldsEntry' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ManagedFieldsEntry(obj: ManagedFieldsEntry | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldsType': obj.fieldsType, - 'fieldsV1': obj.fieldsV1, - 'manager': obj.manager, - 'operation': obj.operation, - 'subresource': obj.subresource, - 'time': obj.time?.toISOString(), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference - */ -export interface OwnerReference { - /** - * API version of the referent. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#apiVersion - */ - readonly apiVersion: string; - - /** - * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * - * @default false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#blockOwnerDeletion - */ - readonly blockOwnerDeletion?: boolean; - - /** - * If true, this reference points to the managing controller. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#controller - */ - readonly controller?: boolean; - - /** - * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#kind - */ - readonly kind: string; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#name - */ - readonly name: string; - - /** - * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#uid - */ - readonly uid: string; - -} - -/** - * Converts an object of type 'OwnerReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OwnerReference(obj: OwnerReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'blockOwnerDeletion': obj.blockOwnerDeletion, - 'controller': obj.controller, - 'kind': obj.kind, - 'name': obj.name, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * WebhookClientConfig contains the information to make a TLS connection with the webhook - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig - */ -export interface WebhookClientConfig { - /** - * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#caBundle - */ - readonly caBundle?: string; - - /** - * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - * - * If the webhook is running within the cluster, then you should use `service`. - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#service - */ - readonly service?: ServiceReference; - - /** - * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - * - * The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - * - * Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - * - * The scheme must be "https"; the URL must begin with "https://". - * - * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - * - * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#url - */ - readonly url?: string; - -} - -/** - * Converts an object of type 'WebhookClientConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_WebhookClientConfig(obj: WebhookClientConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'caBundle': obj.caBundle, - 'service': toJson_ServiceReference(obj.service), - 'url': obj.url, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. - * - * @schema io.k8s.api.admissionregistration.v1.MatchCondition - */ -export interface MatchCondition { - /** - * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - * - * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - * request resource. - * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1.MatchCondition#expression - */ - readonly expression: string; - - /** - * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1.MatchCondition#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'MatchCondition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MatchCondition(obj: MatchCondition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations - */ -export interface RuleWithOperations { - /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiGroups - */ - readonly apiGroups?: string[]; - - /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiVersions - */ - readonly apiVersions?: string[]; - - /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#operations - */ - readonly operations?: string[]; - - /** - * Resources is a list of resources this rule applies to. - * - * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '_/scale' means all scale subresources. '_/*' means all resources and their subresources. - * - * If wildcard is present, the validation rule will ensure resources do not overlap with each other. - * - * Depending on the enclosing object, subresources might not be allowed. Required. - * - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#resources - */ - readonly resources?: string[]; - - /** - * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - * - * @default . - * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#scope - */ - readonly scope?: string; - -} - -/** - * Converts an object of type 'RuleWithOperations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RuleWithOperations(obj: RuleWithOperations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroups': obj.apiGroups?.map(y => y), - 'apiVersions': obj.apiVersions?.map(y => y), - 'operations': obj.operations?.map(y => y), - 'resources': obj.resources?.map(y => y), - 'scope': obj.scope, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AuditAnnotation describes how to produce an audit annotation for an API request. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation - */ -export interface AuditAnnotationV1Alpha1 { - /** - * key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - * - * The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". - * - * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation#key - */ - readonly key: string; - - /** - * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. - * - * If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation#valueExpression - */ - readonly valueExpression: string; - -} - -/** - * Converts an object of type 'AuditAnnotationV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AuditAnnotationV1Alpha1(obj: AuditAnnotationV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'valueExpression': obj.valueExpression, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchCondition - */ -export interface MatchConditionV1Alpha1 { - /** - * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - * - * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - * request resource. - * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchCondition#expression - */ - readonly expression: string; - - /** - * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchCondition#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'MatchConditionV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MatchConditionV1Alpha1(obj: MatchConditionV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) - * - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchResources - */ -export interface MatchResourcesV1Alpha1 { - /** - * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) - * - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchResources#excludeResourceRules - */ - readonly excludeResourceRules?: NamedRuleWithOperationsV1Alpha1[]; - - /** - * matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - * - * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - * - * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. - * - * Defaults to "Equivalent" - * - * @default Equivalent" - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchResources#matchPolicy - */ - readonly matchPolicy?: string; - - /** - * NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy. - * - * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "runlevel", - * "operator": "NotIn", - * "values": [ - * "0", - * "1" - * ] - * } - * ] - * } - * - * If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "environment", - * "operator": "In", - * "values": [ - * "prod", - * "staging" - * ] - * } - * ] - * } - * - * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - * - * Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchResources#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - - /** - * ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchResources#objectSelector - */ - readonly objectSelector?: LabelSelector; - - /** - * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.MatchResources#resourceRules - */ - readonly resourceRules?: NamedRuleWithOperationsV1Alpha1[]; - -} - -/** - * Converts an object of type 'MatchResourcesV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MatchResourcesV1Alpha1(obj: MatchResourcesV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'excludeResourceRules': obj.excludeResourceRules?.map(y => toJson_NamedRuleWithOperationsV1Alpha1(y)), - 'matchPolicy': obj.matchPolicy, - 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), - 'objectSelector': toJson_LabelSelector(obj.objectSelector), - 'resourceRules': obj.resourceRules?.map(y => toJson_NamedRuleWithOperationsV1Alpha1(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ParamKind is a tuple of Group Kind and Version. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamKind - */ -export interface ParamKindV1Alpha1 { - /** - * APIVersion is the API group version the resources belong to. In format of "group/version". Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamKind#apiVersion - */ - readonly apiVersion?: string; - - /** - * Kind is the API kind the resources belong to. Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamKind#kind - */ - readonly kind?: string; - -} - -/** - * Converts an object of type 'ParamKindV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ParamKindV1Alpha1(obj: ParamKindV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Validation specifies the CEL expression which is used to apply the validation. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Validation - */ -export interface ValidationV1Alpha1 { - /** - * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - * - * - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. - * For example, a variable named 'foo' can be accessed as 'variables.foo'. - * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - * request resource. - * - * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. - * - * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: - * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", - * "import", "let", "loop", "package", "namespace", "return". - * Examples: - * - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - * - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - * - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} - * - * Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and - * non-intersecting elements in `Y` are appended, retaining their partial order. - * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values - * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with - * non-intersecting keys are appended, retaining their partial order. - * Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Validation#expression - */ - readonly expression: string; - - /** - * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Validation#message - */ - readonly message?: string; - - /** - * messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Validation#messageExpression - */ - readonly messageExpression?: string; - - /** - * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Validation#reason - */ - readonly reason?: string; - -} - -/** - * Converts an object of type 'ValidationV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidationV1Alpha1(obj: ValidationV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'message': obj.message, - 'messageExpression': obj.messageExpression, - 'reason': obj.reason, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Variable is the definition of a variable that is used for composition. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Variable - */ -export interface VariableV1Alpha1 { - /** - * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Variable#expression - */ - readonly expression: string; - - /** - * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` - * - * @schema io.k8s.api.admissionregistration.v1alpha1.Variable#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'VariableV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VariableV1Alpha1(obj: VariableV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamRef - */ -export interface ParamRefV1Alpha1 { - /** - * `name` is the name of the resource being referenced. - * - * `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamRef#name - */ - readonly name?: string; - - /** - * namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - * - * A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - * - * - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - * - * - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamRef#namespace - */ - readonly namespace?: string; - - /** - * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. - * - * Allowed values are `Allow` or `Deny` Default to `Deny` - * - * @default Deny` - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamRef#parameterNotFoundAction - */ - readonly parameterNotFoundAction?: string; - - /** - * selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind. - * - * If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together. - * - * One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.ParamRef#selector - */ - readonly selector?: LabelSelector; - -} - -/** - * Converts an object of type 'ParamRefV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ParamRefV1Alpha1(obj: ParamRefV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'namespace': obj.namespace, - 'parameterNotFoundAction': obj.parameterNotFoundAction, - 'selector': toJson_LabelSelector(obj.selector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AuditAnnotation describes how to produce an audit annotation for an API request. - * - * @schema io.k8s.api.admissionregistration.v1beta1.AuditAnnotation - */ -export interface AuditAnnotationV1Beta1 { - /** - * key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - * - * The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". - * - * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.AuditAnnotation#key - */ - readonly key: string; - - /** - * valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. - * - * If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.AuditAnnotation#valueExpression - */ - readonly valueExpression: string; - -} - -/** - * Converts an object of type 'AuditAnnotationV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AuditAnnotationV1Beta1(obj: AuditAnnotationV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'valueExpression': obj.valueExpression, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. - * - * @schema io.k8s.api.admissionregistration.v1beta1.MatchCondition - */ -export interface MatchConditionV1Beta1 { - /** - * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: - * - * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - * request resource. - * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.MatchCondition#expression - */ - readonly expression: string; - - /** - * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') - * - * Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.MatchCondition#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'MatchConditionV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MatchConditionV1Beta1(obj: MatchConditionV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) - * - * @schema io.k8s.api.admissionregistration.v1beta1.MatchResources - */ -export interface MatchResourcesV1Beta1 { - /** - * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) - * - * @schema io.k8s.api.admissionregistration.v1beta1.MatchResources#excludeResourceRules - */ - readonly excludeResourceRules?: NamedRuleWithOperationsV1Beta1[]; - - /** - * matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - * - * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - * - * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. - * - * Defaults to "Equivalent" - * - * @default Equivalent" - * @schema io.k8s.api.admissionregistration.v1beta1.MatchResources#matchPolicy - */ - readonly matchPolicy?: string; - - /** - * NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy. - * - * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "runlevel", - * "operator": "NotIn", - * "values": [ - * "0", - * "1" - * ] - * } - * ] - * } - * - * If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - * "matchExpressions": [ - * { - * "key": "environment", - * "operator": "In", - * "values": [ - * "prod", - * "staging" - * ] - * } - * ] - * } - * - * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - * - * Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1beta1.MatchResources#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - - /** - * ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * - * @default the empty LabelSelector, which matches everything. - * @schema io.k8s.api.admissionregistration.v1beta1.MatchResources#objectSelector - */ - readonly objectSelector?: LabelSelector; - - /** - * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. - * - * @schema io.k8s.api.admissionregistration.v1beta1.MatchResources#resourceRules - */ - readonly resourceRules?: NamedRuleWithOperationsV1Beta1[]; - -} - -/** - * Converts an object of type 'MatchResourcesV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MatchResourcesV1Beta1(obj: MatchResourcesV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'excludeResourceRules': obj.excludeResourceRules?.map(y => toJson_NamedRuleWithOperationsV1Beta1(y)), - 'matchPolicy': obj.matchPolicy, - 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), - 'objectSelector': toJson_LabelSelector(obj.objectSelector), - 'resourceRules': obj.resourceRules?.map(y => toJson_NamedRuleWithOperationsV1Beta1(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ParamKind is a tuple of Group Kind and Version. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamKind - */ -export interface ParamKindV1Beta1 { - /** - * APIVersion is the API group version the resources belong to. In format of "group/version". Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamKind#apiVersion - */ - readonly apiVersion?: string; - - /** - * Kind is the API kind the resources belong to. Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamKind#kind - */ - readonly kind?: string; - -} - -/** - * Converts an object of type 'ParamKindV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ParamKindV1Beta1(obj: ParamKindV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Validation specifies the CEL expression which is used to apply the validation. - * - * @schema io.k8s.api.admissionregistration.v1beta1.Validation - */ -export interface ValidationV1Beta1 { - /** - * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - * - * - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. - * For example, a variable named 'foo' can be accessed as 'variables.foo'. - * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - * request resource. - * - * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. - * - * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: - * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", - * "import", "let", "loop", "package", "namespace", "return". - * Examples: - * - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"} - * - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"} - * - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"} - * - * Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and - * non-intersecting elements in `Y` are appended, retaining their partial order. - * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values - * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with - * non-intersecting keys are appended, retaining their partial order. - * Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.Validation#expression - */ - readonly expression: string; - - /** - * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}". - * - * @schema io.k8s.api.admissionregistration.v1beta1.Validation#message - */ - readonly message?: string; - - /** - * messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")" - * - * @schema io.k8s.api.admissionregistration.v1beta1.Validation#messageExpression - */ - readonly messageExpression?: string; - - /** - * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client. - * - * @schema io.k8s.api.admissionregistration.v1beta1.Validation#reason - */ - readonly reason?: string; - -} - -/** - * Converts an object of type 'ValidationV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidationV1Beta1(obj: ValidationV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'message': obj.message, - 'messageExpression': obj.messageExpression, - 'reason': obj.reason, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. - * - * @schema io.k8s.api.admissionregistration.v1beta1.Variable - */ -export interface VariableV1Beta1 { - /** - * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. - * - * @schema io.k8s.api.admissionregistration.v1beta1.Variable#expression - */ - readonly expression: string; - - /** - * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` - * - * @schema io.k8s.api.admissionregistration.v1beta1.Variable#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'VariableV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VariableV1Beta1(obj: VariableV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'expression': obj.expression, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamRef - */ -export interface ParamRefV1Beta1 { - /** - * name is the name of the resource being referenced. - * - * One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - * - * A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamRef#name - */ - readonly name?: string; - - /** - * namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - * - * A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - * - * - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - * - * - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamRef#namespace - */ - readonly namespace?: string; - - /** - * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. - * - * Allowed values are `Allow` or `Deny` - * - * Required - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamRef#parameterNotFoundAction - */ - readonly parameterNotFoundAction?: string; - - /** - * selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind. - * - * If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together. - * - * One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - * - * @schema io.k8s.api.admissionregistration.v1beta1.ParamRef#selector - */ - readonly selector?: LabelSelector; - -} - -/** - * Converts an object of type 'ParamRefV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ParamRefV1Beta1(obj: ParamRefV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'namespace': obj.namespace, - 'parameterNotFoundAction': obj.parameterNotFoundAction, - 'selector': toJson_LabelSelector(obj.selector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. - * - * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy - */ -export interface DaemonSetUpdateStrategy { - /** - * Rolling update config params. Present only if type = "RollingUpdate". - * - * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: RollingUpdateDaemonSet; - - /** - * Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - * - * @default RollingUpdate. - * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'DaemonSetUpdateStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DaemonSetUpdateStrategy(obj: DaemonSetUpdateStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_RollingUpdateDaemonSet(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DeploymentStrategy describes how to replace existing pods with new ones. - * - * @schema io.k8s.api.apps.v1.DeploymentStrategy - */ -export interface DeploymentStrategy { - /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * - * @schema io.k8s.api.apps.v1.DeploymentStrategy#rollingUpdate - */ - readonly rollingUpdate?: RollingUpdateDeployment; - - /** - * Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - * - * @default RollingUpdate. - * @schema io.k8s.api.apps.v1.DeploymentStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'DeploymentStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DeploymentStrategy(obj: DeploymentStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_RollingUpdateDeployment(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. - * - * @schema io.k8s.api.apps.v1.StatefulSetOrdinals - */ -export interface StatefulSetOrdinals { - /** - * start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: - * [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). - * If unset, defaults to 0. Replica indices will be in the range: - * [0, .spec.replicas). - * - * @schema io.k8s.api.apps.v1.StatefulSetOrdinals#start - */ - readonly start?: number; - -} - -/** - * Converts an object of type 'StatefulSetOrdinals' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StatefulSetOrdinals(obj: StatefulSetOrdinals | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'start': obj.start, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. - * - * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy - */ -export interface StatefulSetPersistentVolumeClaimRetentionPolicy { - /** - * WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. - * - * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy#whenDeleted - */ - readonly whenDeleted?: string; - - /** - * WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. - * - * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy#whenScaled - */ - readonly whenScaled?: string; - -} - -/** - * Converts an object of type 'StatefulSetPersistentVolumeClaimRetentionPolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StatefulSetPersistentVolumeClaimRetentionPolicy(obj: StatefulSetPersistentVolumeClaimRetentionPolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'whenDeleted': obj.whenDeleted, - 'whenScaled': obj.whenScaled, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. - * - * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy - */ -export interface StatefulSetUpdateStrategy { - /** - * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * - * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: RollingUpdateStatefulSetStrategy; - - /** - * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - * - * @default RollingUpdate. - * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'StatefulSetUpdateStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StatefulSetUpdateStrategy(obj: StatefulSetUpdateStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_RollingUpdateStatefulSetStrategy(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * BoundObjectReference is a reference to an object that a token is bound to. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference - */ -export interface BoundObjectReference { - /** - * API version of the referent. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#apiVersion - */ - readonly apiVersion?: string; - - /** - * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#kind - */ - readonly kind?: string; - - /** - * Name of the referent. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#name - */ - readonly name?: string; - - /** - * UID of the referent. - * - * @schema io.k8s.api.authentication.v1.BoundObjectReference#uid - */ - readonly uid?: string; - -} - -/** - * Converts an object of type 'BoundObjectReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_BoundObjectReference(obj: BoundObjectReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - 'name': obj.name, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface - * - * @schema io.k8s.api.authorization.v1.NonResourceAttributes - */ -export interface NonResourceAttributes { - /** - * Path is the URL path of the request - * - * @schema io.k8s.api.authorization.v1.NonResourceAttributes#path - */ - readonly path?: string; - - /** - * Verb is the standard HTTP verb - * - * @schema io.k8s.api.authorization.v1.NonResourceAttributes#verb - */ - readonly verb?: string; - -} - -/** - * Converts an object of type 'NonResourceAttributes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NonResourceAttributes(obj: NonResourceAttributes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'verb': obj.verb, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes - */ -export interface ResourceAttributes { - /** - * Group is the API Group of the Resource. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#group - */ - readonly group?: string; - - /** - * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#name - */ - readonly name?: string; - - /** - * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#namespace - */ - readonly namespace?: string; - - /** - * Resource is one of the existing resource types. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#resource - */ - readonly resource?: string; - - /** - * Subresource is one of the existing resource types. "" means none. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#subresource - */ - readonly subresource?: string; - - /** - * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#verb - */ - readonly verb?: string; - - /** - * Version is the API Version of the Resource. "*" means all. - * - * @schema io.k8s.api.authorization.v1.ResourceAttributes#version - */ - readonly version?: string; - -} - -/** - * Converts an object of type 'ResourceAttributes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceAttributes(obj: ResourceAttributes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'name': obj.name, - 'namespace': obj.namespace, - 'resource': obj.resource, - 'subresource': obj.subresource, - 'verb': obj.verb, - 'version': obj.version, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference - */ -export interface CrossVersionObjectReference { - /** - * apiVersion is the API version of the referent - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#apiVersion - */ - readonly apiVersion?: string; - - /** - * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#kind - */ - readonly kind: string; - - /** - * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'CrossVersionObjectReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CrossVersionObjectReference(obj: CrossVersionObjectReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior - */ -export interface HorizontalPodAutoscalerBehaviorV2 { - /** - * scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#scaleDown - */ - readonly scaleDown?: HpaScalingRulesV2; - - /** - * scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: - * * increase no more than 4 pods per 60 seconds - * * double the number of pods per 60 seconds - * No stabilization is used. - * - * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#scaleUp - */ - readonly scaleUp?: HpaScalingRulesV2; - -} - -/** - * Converts an object of type 'HorizontalPodAutoscalerBehaviorV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HorizontalPodAutoscalerBehaviorV2(obj: HorizontalPodAutoscalerBehaviorV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'scaleDown': toJson_HpaScalingRulesV2(obj.scaleDown), - 'scaleUp': toJson_HpaScalingRulesV2(obj.scaleUp), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec - */ -export interface MetricSpecV2 { - /** - * containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec#containerResource - */ - readonly containerResource?: ContainerResourceMetricSourceV2; - - /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec#external - */ - readonly external?: ExternalMetricSourceV2; - - /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec#object - */ - readonly object?: ObjectMetricSourceV2; - - /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec#pods - */ - readonly pods?: PodsMetricSourceV2; - - /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec#resource - */ - readonly resource?: ResourceMetricSourceV2; - - /** - * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled - * - * @schema io.k8s.api.autoscaling.v2.MetricSpec#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'MetricSpecV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MetricSpecV2(obj: MetricSpecV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerResource': toJson_ContainerResourceMetricSourceV2(obj.containerResource), - 'external': toJson_ExternalMetricSourceV2(obj.external), - 'object': toJson_ObjectMetricSourceV2(obj.object), - 'pods': toJson_PodsMetricSourceV2(obj.pods), - 'resource': toJson_ResourceMetricSourceV2(obj.resource), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - * - * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference - */ -export interface CrossVersionObjectReferenceV2 { - /** - * apiVersion is the API version of the referent - * - * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#apiVersion - */ - readonly apiVersion?: string; - - /** - * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * - * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#kind - */ - readonly kind: string; - - /** - * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'CrossVersionObjectReferenceV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CrossVersionObjectReferenceV2(obj: CrossVersionObjectReferenceV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * JobTemplateSpec describes the data a Job should have when created from a template - * - * @schema io.k8s.api.batch.v1.JobTemplateSpec - */ -export interface JobTemplateSpec { - /** - * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * - * @schema io.k8s.api.batch.v1.JobTemplateSpec#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * - * @schema io.k8s.api.batch.v1.JobTemplateSpec#spec - */ - readonly spec?: JobSpec; - -} - -/** - * Converts an object of type 'JobTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_JobTemplateSpec(obj: JobTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_JobSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodFailurePolicy describes how failed pods influence the backoffLimit. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicy - */ -export interface PodFailurePolicy { - /** - * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicy#rules - */ - readonly rules: PodFailurePolicyRule[]; - -} - -/** - * Converts an object of type 'PodFailurePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodFailurePolicy(obj: PodFailurePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rules': obj.rules?.map(y => toJson_PodFailurePolicyRule(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointAddress is a tuple that describes single IP address. - * - * @schema io.k8s.api.core.v1.EndpointAddress - */ -export interface EndpointAddress { - /** - * The Hostname of this endpoint - * - * @schema io.k8s.api.core.v1.EndpointAddress#hostname - */ - readonly hostname?: string; - - /** - * The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16). - * - * @schema io.k8s.api.core.v1.EndpointAddress#ip - */ - readonly ip: string; - - /** - * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * - * @schema io.k8s.api.core.v1.EndpointAddress#nodeName - */ - readonly nodeName?: string; - - /** - * Reference to object providing the endpoint. - * - * @schema io.k8s.api.core.v1.EndpointAddress#targetRef - */ - readonly targetRef?: ObjectReference; - -} - -/** - * Converts an object of type 'EndpointAddress' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EndpointAddress(obj: EndpointAddress | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hostname': obj.hostname, - 'ip': obj.ip, - 'nodeName': obj.nodeName, - 'targetRef': toJson_ObjectReference(obj.targetRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. - * - * @schema io.k8s.api.core.v1.LimitRangeItem - */ -export interface LimitRangeItem { - /** - * Default resource requirement limit value by resource name if resource limit is omitted. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#default - */ - readonly default?: { [key: string]: Quantity }; - - /** - * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#defaultRequest - */ - readonly defaultRequest?: { [key: string]: Quantity }; - - /** - * Max usage constraints on this kind by resource name. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#max - */ - readonly max?: { [key: string]: Quantity }; - - /** - * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#maxLimitRequestRatio - */ - readonly maxLimitRequestRatio?: { [key: string]: Quantity }; - - /** - * Min usage constraints on this kind by resource name. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#min - */ - readonly min?: { [key: string]: Quantity }; - - /** - * Type of resource that this limit applies to. - * - * @schema io.k8s.api.core.v1.LimitRangeItem#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'LimitRangeItem' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LimitRangeItem(obj: LimitRangeItem | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'default': ((obj.default) === undefined) ? undefined : (Object.entries(obj.default).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'defaultRequest': ((obj.defaultRequest) === undefined) ? undefined : (Object.entries(obj.defaultRequest).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'max': ((obj.max) === undefined) ? undefined : (Object.entries(obj.max).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'maxLimitRequestRatio': ((obj.maxLimitRequestRatio) === undefined) ? undefined : (Object.entries(obj.maxLimitRequestRatio).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'min': ((obj.min) === undefined) ? undefined : (Object.entries(obj.min).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 - * - * @schema io.k8s.api.core.v1.NodeConfigSource - */ -export interface NodeConfigSource { - /** - * ConfigMap is a reference to a Node's ConfigMap - * - * @schema io.k8s.api.core.v1.NodeConfigSource#configMap - */ - readonly configMap?: ConfigMapNodeConfigSource; - -} - -/** - * Converts an object of type 'NodeConfigSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NodeConfigSource(obj: NodeConfigSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMap': toJson_ConfigMapNodeConfigSource(obj.configMap), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint. - * - * @schema io.k8s.api.core.v1.Taint - */ -export interface Taint { - /** - * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * - * @schema io.k8s.api.core.v1.Taint#effect - */ - readonly effect: string; - - /** - * Required. The taint key to be applied to a node. - * - * @schema io.k8s.api.core.v1.Taint#key - */ - readonly key: string; - - /** - * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * - * @schema io.k8s.api.core.v1.Taint#timeAdded - */ - readonly timeAdded?: Date; - - /** - * The taint value corresponding to the taint key. - * - * @schema io.k8s.api.core.v1.Taint#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'Taint' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Taint(obj: Taint | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'timeAdded': obj.timeAdded?.toISOString(), - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Persistent Disk resource in AWS. - * - * An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource - */ -export interface AwsElasticBlockStoreVolumeSource { - /** - * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#partition - */ - readonly partition?: number; - - /** - * readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'AwsElasticBlockStoreVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AwsElasticBlockStoreVolumeSource(obj: AwsElasticBlockStoreVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'partition': obj.partition, - 'readOnly': obj.readOnly, - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource - */ -export interface AzureDiskVolumeSource { - /** - * cachingMode is the Host Caching mode: None, Read Only, Read Write. - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#cachingMode - */ - readonly cachingMode?: string; - - /** - * diskName is the Name of the data disk in the blob storage - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskName - */ - readonly diskName: string; - - /** - * diskURI is the URI of data disk in the blob storage - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskURI - */ - readonly diskUri: string; - - /** - * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#kind - */ - readonly kind?: string; - - /** - * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'AzureDiskVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AzureDiskVolumeSource(obj: AzureDiskVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cachingMode': obj.cachingMode, - 'diskName': obj.diskName, - 'diskURI': obj.diskUri, - 'fsType': obj.fsType, - 'kind': obj.kind, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource - */ -export interface AzureFilePersistentVolumeSource { - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretName is the name of secret that contains Azure Storage Account Name and Key - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretName - */ - readonly secretName: string; - - /** - * secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretNamespace - */ - readonly secretNamespace?: string; - - /** - * shareName is the azure Share Name - * - * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#shareName - */ - readonly shareName: string; - -} - -/** - * Converts an object of type 'AzureFilePersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AzureFilePersistentVolumeSource(obj: AzureFilePersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'readOnly': obj.readOnly, - 'secretName': obj.secretName, - 'secretNamespace': obj.secretNamespace, - 'shareName': obj.shareName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource - */ -export interface CephFsPersistentVolumeSource { - /** - * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#monitors - */ - readonly monitors: string[]; - - /** - * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#path - */ - readonly path?: string; - - /** - * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretFile - */ - readonly secretFile?: string; - - /** - * secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - - /** - * user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'CephFsPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CephFsPersistentVolumeSource(obj: CephFsPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'monitors': obj.monitors?.map(y => y), - 'path': obj.path, - 'readOnly': obj.readOnly, - 'secretFile': obj.secretFile, - 'secretRef': toJson_SecretReference(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource - */ -export interface CinderPersistentVolumeSource { - /** - * fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - - /** - * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'CinderPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CinderPersistentVolumeSource(obj: CinderPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_SecretReference(obj.secretRef), - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents storage that is managed by an external CSI volume driver (Beta feature) - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource - */ -export interface CsiPersistentVolumeSource { - /** - * controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerExpandSecretRef - */ - readonly controllerExpandSecretRef?: SecretReference; - - /** - * controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerPublishSecretRef - */ - readonly controllerPublishSecretRef?: SecretReference; - - /** - * driver is the name of the driver to use for this volume. Required. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#driver - */ - readonly driver: string; - - /** - * fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeExpandSecretRef - */ - readonly nodeExpandSecretRef?: SecretReference; - - /** - * nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodePublishSecretRef - */ - readonly nodePublishSecretRef?: SecretReference; - - /** - * nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeStageSecretRef - */ - readonly nodeStageSecretRef?: SecretReference; - - /** - * readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * - * @default false (read/write). - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * volumeAttributes of the volume to publish. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeAttributes - */ - readonly volumeAttributes?: { [key: string]: string }; - - /** - * volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - * - * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeHandle - */ - readonly volumeHandle: string; - -} - -/** - * Converts an object of type 'CsiPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CsiPersistentVolumeSource(obj: CsiPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'controllerExpandSecretRef': toJson_SecretReference(obj.controllerExpandSecretRef), - 'controllerPublishSecretRef': toJson_SecretReference(obj.controllerPublishSecretRef), - 'driver': obj.driver, - 'fsType': obj.fsType, - 'nodeExpandSecretRef': toJson_SecretReference(obj.nodeExpandSecretRef), - 'nodePublishSecretRef': toJson_SecretReference(obj.nodePublishSecretRef), - 'nodeStageSecretRef': toJson_SecretReference(obj.nodeStageSecretRef), - 'readOnly': obj.readOnly, - 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'volumeHandle': obj.volumeHandle, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.FCVolumeSource - */ -export interface FcVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.FCVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * lun is Optional: FC target lun number - * - * @schema io.k8s.api.core.v1.FCVolumeSource#lun - */ - readonly lun?: number; - - /** - * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.FCVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * targetWWNs is Optional: FC target worldwide names (WWNs) - * - * @schema io.k8s.api.core.v1.FCVolumeSource#targetWWNs - */ - readonly targetWwNs?: string[]; - - /** - * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - * - * @schema io.k8s.api.core.v1.FCVolumeSource#wwids - */ - readonly wwids?: string[]; - -} - -/** - * Converts an object of type 'FcVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FcVolumeSource(obj: FcVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'lun': obj.lun, - 'readOnly': obj.readOnly, - 'targetWWNs': obj.targetWwNs?.map(y => y), - 'wwids': obj.wwids?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource - */ -export interface FlexPersistentVolumeSource { - /** - * driver is the name of the driver to use for this volume. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#driver - */ - readonly driver: string; - - /** - * fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * options is Optional: this field holds extra command options if any. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#options - */ - readonly options?: { [key: string]: string }; - - /** - * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - * - * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - -} - -/** - * Converts an object of type 'FlexPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlexPersistentVolumeSource(obj: FlexPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'readOnly': obj.readOnly, - 'secretRef': toJson_SecretReference(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.FlockerVolumeSource - */ -export interface FlockerVolumeSource { - /** - * datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * - * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetName - */ - readonly datasetName?: string; - - /** - * datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset - * - * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetUUID - */ - readonly datasetUuid?: string; - -} - -/** - * Converts an object of type 'FlockerVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlockerVolumeSource(obj: FlockerVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'datasetName': obj.datasetName, - 'datasetUUID': obj.datasetUuid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Persistent Disk resource in Google Compute Engine. - * - * A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource - */ -export interface GcePersistentDiskVolumeSource { - /** - * fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#partition - */ - readonly partition?: number; - - /** - * pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#pdName - */ - readonly pdName: string; - - /** - * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'GcePersistentDiskVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_GcePersistentDiskVolumeSource(obj: GcePersistentDiskVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'partition': obj.partition, - 'pdName': obj.pdName, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource - */ -export interface GlusterfsPersistentVolumeSource { - /** - * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpoints - */ - readonly endpoints: string; - - /** - * endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpointsNamespace - */ - readonly endpointsNamespace?: string; - - /** - * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#path - */ - readonly path: string; - - /** - * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'GlusterfsPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_GlusterfsPersistentVolumeSource(obj: GlusterfsPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'endpoints': obj.endpoints, - 'endpointsNamespace': obj.endpointsNamespace, - 'path': obj.path, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.HostPathVolumeSource - */ -export interface HostPathVolumeSource { - /** - * path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @schema io.k8s.api.core.v1.HostPathVolumeSource#path - */ - readonly path: string; - - /** - * type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @default More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * @schema io.k8s.api.core.v1.HostPathVolumeSource#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'HostPathVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HostPathVolumeSource(obj: HostPathVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource - */ -export interface IscsiPersistentVolumeSource { - /** - * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthDiscovery - */ - readonly chapAuthDiscovery?: boolean; - - /** - * chapAuthSession defines whether support iSCSI Session CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthSession - */ - readonly chapAuthSession?: boolean; - - /** - * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#initiatorName - */ - readonly initiatorName?: string; - - /** - * iqn is Target iSCSI Qualified Name. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iqn - */ - readonly iqn: string; - - /** - * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * - * @default default' (tcp). - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iscsiInterface - */ - readonly iscsiInterface?: string; - - /** - * lun is iSCSI Target Lun number. - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#lun - */ - readonly lun: number; - - /** - * portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#portals - */ - readonly portals?: string[]; - - /** - * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is the CHAP Secret for iSCSI target and initiator authentication - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - - /** - * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#targetPortal - */ - readonly targetPortal: string; - -} - -/** - * Converts an object of type 'IscsiPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IscsiPersistentVolumeSource(obj: IscsiPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'chapAuthDiscovery': obj.chapAuthDiscovery, - 'chapAuthSession': obj.chapAuthSession, - 'fsType': obj.fsType, - 'initiatorName': obj.initiatorName, - 'iqn': obj.iqn, - 'iscsiInterface': obj.iscsiInterface, - 'lun': obj.lun, - 'portals': obj.portals?.map(y => y), - 'readOnly': obj.readOnly, - 'secretRef': toJson_SecretReference(obj.secretRef), - 'targetPortal': obj.targetPortal, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Local represents directly-attached storage with node affinity (Beta feature) - * - * @schema io.k8s.api.core.v1.LocalVolumeSource - */ -export interface LocalVolumeSource { - /** - * fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. - * - * @schema io.k8s.api.core.v1.LocalVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - * - * @schema io.k8s.api.core.v1.LocalVolumeSource#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'LocalVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LocalVolumeSource(obj: LocalVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.NFSVolumeSource - */ -export interface NfsVolumeSource { - /** - * path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.NFSVolumeSource#path - */ - readonly path: string; - - /** - * readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * @schema io.k8s.api.core.v1.NFSVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.NFSVolumeSource#server - */ - readonly server: string; - -} - -/** - * Converts an object of type 'NfsVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NfsVolumeSource(obj: NfsVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'readOnly': obj.readOnly, - 'server': obj.server, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. - * - * @schema io.k8s.api.core.v1.VolumeNodeAffinity - */ -export interface VolumeNodeAffinity { - /** - * required specifies hard node constraints that must be met. - * - * @schema io.k8s.api.core.v1.VolumeNodeAffinity#required - */ - readonly required?: NodeSelector; - -} - -/** - * Converts an object of type 'VolumeNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeNodeAffinity(obj: VolumeNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'required': toJson_NodeSelector(obj.required), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Photon Controller persistent disk resource. - * - * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource - */ -export interface PhotonPersistentDiskVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * pdID is the ID that identifies Photon Controller persistent disk - * - * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#pdID - */ - readonly pdId: string; - -} - -/** - * Converts an object of type 'PhotonPersistentDiskVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PhotonPersistentDiskVolumeSource(obj: PhotonPersistentDiskVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'pdID': obj.pdId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PortworxVolumeSource represents a Portworx volume resource. - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource - */ -export interface PortworxVolumeSource { - /** - * fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * volumeID uniquely identifies a Portworx volume - * - * @schema io.k8s.api.core.v1.PortworxVolumeSource#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'PortworxVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PortworxVolumeSource(obj: PortworxVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource - */ -export interface QuobyteVolumeSource { - /** - * group to map volume access to Default is no group - * - * @default no group - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#group - */ - readonly group?: string; - - /** - * readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#registry - */ - readonly registry: string; - - /** - * tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#tenant - */ - readonly tenant?: string; - - /** - * user to map volume access to Defaults to serivceaccount user - * - * @default serivceaccount user - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#user - */ - readonly user?: string; - - /** - * volume is a string that references an already created Quobyte volume by name. - * - * @schema io.k8s.api.core.v1.QuobyteVolumeSource#volume - */ - readonly volume: string; - -} - -/** - * Converts an object of type 'QuobyteVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_QuobyteVolumeSource(obj: QuobyteVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'readOnly': obj.readOnly, - 'registry': obj.registry, - 'tenant': obj.tenant, - 'user': obj.user, - 'volume': obj.volume, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource - */ -export interface RbdPersistentVolumeSource { - /** - * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#image - */ - readonly image: string; - - /** - * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#keyring - */ - readonly keyring?: string; - - /** - * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#monitors - */ - readonly monitors: string[]; - - /** - * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#pool - */ - readonly pool?: string; - - /** - * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#secretRef - */ - readonly secretRef?: SecretReference; - - /** - * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'RbdPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RbdPersistentVolumeSource(obj: RbdPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'image': obj.image, - 'keyring': obj.keyring, - 'monitors': obj.monitors?.map(y => y), - 'pool': obj.pool, - 'readOnly': obj.readOnly, - 'secretRef': toJson_SecretReference(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource - */ -export interface ScaleIoPersistentVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * - * @default xfs" - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * gateway is the host address of the ScaleIO API Gateway. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#gateway - */ - readonly gateway: string; - - /** - * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#protectionDomain - */ - readonly protectionDomain?: string; - - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#secretRef - */ - readonly secretRef: SecretReference; - - /** - * sslEnabled is the flag to enable/disable SSL communication with Gateway, default false - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#sslEnabled - */ - readonly sslEnabled?: boolean; - - /** - * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * - * @default ThinProvisioned. - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storageMode - */ - readonly storageMode?: string; - - /** - * storagePool is the ScaleIO Storage Pool associated with the protection domain. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storagePool - */ - readonly storagePool?: string; - - /** - * system is the name of the storage system as configured in ScaleIO. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#system - */ - readonly system: string; - - /** - * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. - * - * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'ScaleIoPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ScaleIoPersistentVolumeSource(obj: ScaleIoPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'gateway': obj.gateway, - 'protectionDomain': obj.protectionDomain, - 'readOnly': obj.readOnly, - 'secretRef': toJson_SecretReference(obj.secretRef), - 'sslEnabled': obj.sslEnabled, - 'storageMode': obj.storageMode, - 'storagePool': obj.storagePool, - 'system': obj.system, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a StorageOS persistent volume resource. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource - */ -export interface StorageOsPersistentVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#secretRef - */ - readonly secretRef?: ObjectReference; - - /** - * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeName - */ - readonly volumeName?: string; - - /** - * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - * - * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeNamespace - */ - readonly volumeNamespace?: string; - -} - -/** - * Converts an object of type 'StorageOsPersistentVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StorageOsPersistentVolumeSource(obj: StorageOsPersistentVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_ObjectReference(obj.secretRef), - 'volumeName': obj.volumeName, - 'volumeNamespace': obj.volumeNamespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a vSphere volume resource. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource - */ -export interface VsphereVirtualDiskVolumeSource { - /** - * fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyID - */ - readonly storagePolicyId?: string; - - /** - * storagePolicyName is the storage Policy Based Management (SPBM) profile name. - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyName - */ - readonly storagePolicyName?: string; - - /** - * volumePath is the path that identifies vSphere volume vmdk - * - * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#volumePath - */ - readonly volumePath: string; - -} - -/** - * Converts an object of type 'VsphereVirtualDiskVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VsphereVirtualDiskVolumeSource(obj: VsphereVirtualDiskVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'storagePolicyID': obj.storagePolicyId, - 'storagePolicyName': obj.storagePolicyName, - 'volumePath': obj.volumePath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference - */ -export interface TypedLocalObjectReference { - /** - * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference#apiGroup - */ - readonly apiGroup?: string; - - /** - * Kind is the type of resource being referenced - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference#kind - */ - readonly kind: string; - - /** - * Name is the name of resource being referenced - * - * @schema io.k8s.api.core.v1.TypedLocalObjectReference#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'TypedLocalObjectReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TypedLocalObjectReference(obj: TypedLocalObjectReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema io.k8s.api.core.v1.TypedObjectReference - */ -export interface TypedObjectReference { - /** - * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * - * @schema io.k8s.api.core.v1.TypedObjectReference#apiGroup - */ - readonly apiGroup?: string; - - /** - * Kind is the type of resource being referenced - * - * @schema io.k8s.api.core.v1.TypedObjectReference#kind - */ - readonly kind: string; - - /** - * Name is the name of resource being referenced - * - * @schema io.k8s.api.core.v1.TypedObjectReference#name - */ - readonly name: string; - - /** - * Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - * - * @schema io.k8s.api.core.v1.TypedObjectReference#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'TypedObjectReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TypedObjectReference(obj: TypedObjectReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeResourceRequirements describes the storage resource requirements for a volume. - * - * @schema io.k8s.api.core.v1.VolumeResourceRequirements - */ -export interface VolumeResourceRequirements { - /** - * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.VolumeResourceRequirements#limits - */ - readonly limits?: { [key: string]: Quantity }; - - /** - * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.VolumeResourceRequirements#requests - */ - readonly requests?: { [key: string]: Quantity }; - -} - -/** - * Converts an object of type 'VolumeResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeResourceRequirements(obj: VolumeResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Affinity is a group of affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.Affinity - */ -export interface Affinity { - /** - * Describes node affinity scheduling rules for the pod. - * - * @schema io.k8s.api.core.v1.Affinity#nodeAffinity - */ - readonly nodeAffinity?: NodeAffinity; - - /** - * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema io.k8s.api.core.v1.Affinity#podAffinity - */ - readonly podAffinity?: PodAffinity; - - /** - * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * - * @schema io.k8s.api.core.v1.Affinity#podAntiAffinity - */ - readonly podAntiAffinity?: PodAntiAffinity; - -} - -/** - * Converts an object of type 'Affinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Affinity(obj: Affinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_NodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_PodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_PodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A single application container that you want to run within a pod. - * - * @schema io.k8s.api.core.v1.Container - */ -export interface Container { - /** - * Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.Container#args - */ - readonly args?: string[]; - - /** - * Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.Container#command - */ - readonly command?: string[]; - - /** - * List of environment variables to set in the container. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#env - */ - readonly env?: EnvVar[]; - - /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#envFrom - */ - readonly envFrom?: EnvFromSource[]; - - /** - * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * - * @schema io.k8s.api.core.v1.Container#image - */ - readonly image?: string; - - /** - * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * - * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * @schema io.k8s.api.core.v1.Container#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#lifecycle - */ - readonly lifecycle?: Lifecycle; - - /** - * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Container#livenessProbe - */ - readonly livenessProbe?: Probe; - - /** - * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#name - */ - readonly name: string; - - /** - * List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#ports - */ - readonly ports?: ContainerPort[]; - - /** - * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Container#readinessProbe - */ - readonly readinessProbe?: Probe; - - /** - * Resources resize policy for the container. - * - * @schema io.k8s.api.core.v1.Container#resizePolicy - */ - readonly resizePolicy?: ContainerResizePolicy[]; - - /** - * Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.Container#resources - */ - readonly resources?: ResourceRequirements; - - /** - * RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. - * - * @schema io.k8s.api.core.v1.Container#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * - * @schema io.k8s.api.core.v1.Container#securityContext - */ - readonly securityContext?: SecurityContext; - - /** - * StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Container#startupProbe - */ - readonly startupProbe?: Probe; - - /** - * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.Container#stdin - */ - readonly stdin?: boolean; - - /** - * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * - * @default false - * @schema io.k8s.api.core.v1.Container#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * - * @default dev/termination-log. Cannot be updated. - * @schema io.k8s.api.core.v1.Container#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * - * @default File. Cannot be updated. - * @schema io.k8s.api.core.v1.Container#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.Container#tty - */ - readonly tty?: boolean; - - /** - * volumeDevices is the list of block devices to be used by the container. - * - * @schema io.k8s.api.core.v1.Container#volumeDevices - */ - readonly volumeDevices?: VolumeDevice[]; - - /** - * Pod volumes to mount into the container's filesystem. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#volumeMounts - */ - readonly volumeMounts?: VolumeMount[]; - - /** - * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - * - * @schema io.k8s.api.core.v1.Container#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'Container' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Container(obj: Container | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_EnvVar(y)), - 'envFrom': obj.envFrom?.map(y => toJson_EnvFromSource(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_Lifecycle(obj.lifecycle), - 'livenessProbe': toJson_Probe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_ContainerPort(y)), - 'readinessProbe': toJson_Probe(obj.readinessProbe), - 'resizePolicy': obj.resizePolicy?.map(y => toJson_ContainerResizePolicy(y)), - 'resources': toJson_ResourceRequirements(obj.resources), - 'restartPolicy': obj.restartPolicy, - 'securityContext': toJson_SecurityContext(obj.securityContext), - 'startupProbe': toJson_Probe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_VolumeDevice(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_VolumeMount(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. - * - * @schema io.k8s.api.core.v1.PodDNSConfig - */ -export interface PodDnsConfig { - /** - * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * - * @schema io.k8s.api.core.v1.PodDNSConfig#nameservers - */ - readonly nameservers?: string[]; - - /** - * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * - * @schema io.k8s.api.core.v1.PodDNSConfig#options - */ - readonly options?: PodDnsConfigOption[]; - - /** - * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - * - * @schema io.k8s.api.core.v1.PodDNSConfig#searches - */ - readonly searches?: string[]; - -} - -/** - * Converts an object of type 'PodDnsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodDnsConfig(obj: PodDnsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nameservers': obj.nameservers?.map(y => y), - 'options': obj.options?.map(y => toJson_PodDnsConfigOption(y)), - 'searches': obj.searches?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. - * - * To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. - * - * @schema io.k8s.api.core.v1.EphemeralContainer - */ -export interface EphemeralContainer { - /** - * Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.EphemeralContainer#args - */ - readonly args?: string[]; - - /** - * Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * - * @schema io.k8s.api.core.v1.EphemeralContainer#command - */ - readonly command?: string[]; - - /** - * List of environment variables to set in the container. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#env - */ - readonly env?: EnvVar[]; - - /** - * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#envFrom - */ - readonly envFrom?: EnvFromSource[]; - - /** - * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images - * - * @schema io.k8s.api.core.v1.EphemeralContainer#image - */ - readonly image?: string; - - /** - * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * - * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * @schema io.k8s.api.core.v1.EphemeralContainer#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * Lifecycle is not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#lifecycle - */ - readonly lifecycle?: Lifecycle; - - /** - * Probes are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#livenessProbe - */ - readonly livenessProbe?: Probe; - - /** - * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#name - */ - readonly name: string; - - /** - * Ports are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#ports - */ - readonly ports?: ContainerPort[]; - - /** - * Probes are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#readinessProbe - */ - readonly readinessProbe?: Probe; - - /** - * Resources resize policy for the container. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#resizePolicy - */ - readonly resizePolicy?: ContainerResizePolicy[]; - - /** - * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#resources - */ - readonly resources?: ResourceRequirements; - - /** - * Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#securityContext - */ - readonly securityContext?: SecurityContext; - - /** - * Probes are not allowed for ephemeral containers. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#startupProbe - */ - readonly startupProbe?: Probe; - - /** - * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.EphemeralContainer#stdin - */ - readonly stdin?: boolean; - - /** - * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * - * @default false - * @schema io.k8s.api.core.v1.EphemeralContainer#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. - * - * The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#targetContainerName - */ - readonly targetContainerName?: string; - - /** - * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * - * @default dev/termination-log. Cannot be updated. - * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * - * @default File. Cannot be updated. - * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * - * @default false. - * @schema io.k8s.api.core.v1.EphemeralContainer#tty - */ - readonly tty?: boolean; - - /** - * volumeDevices is the list of block devices to be used by the container. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#volumeDevices - */ - readonly volumeDevices?: VolumeDevice[]; - - /** - * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#volumeMounts - */ - readonly volumeMounts?: VolumeMount[]; - - /** - * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - * - * @schema io.k8s.api.core.v1.EphemeralContainer#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'EphemeralContainer' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EphemeralContainer(obj: EphemeralContainer | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_EnvVar(y)), - 'envFrom': obj.envFrom?.map(y => toJson_EnvFromSource(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_Lifecycle(obj.lifecycle), - 'livenessProbe': toJson_Probe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_ContainerPort(y)), - 'readinessProbe': toJson_Probe(obj.readinessProbe), - 'resizePolicy': obj.resizePolicy?.map(y => toJson_ContainerResizePolicy(y)), - 'resources': toJson_ResourceRequirements(obj.resources), - 'restartPolicy': obj.restartPolicy, - 'securityContext': toJson_SecurityContext(obj.securityContext), - 'startupProbe': toJson_Probe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'targetContainerName': obj.targetContainerName, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_VolumeDevice(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_VolumeMount(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. - * - * @schema io.k8s.api.core.v1.HostAlias - */ -export interface HostAlias { - /** - * Hostnames for the above IP address. - * - * @schema io.k8s.api.core.v1.HostAlias#hostnames - */ - readonly hostnames?: string[]; - - /** - * IP address of the host file entry. - * - * @schema io.k8s.api.core.v1.HostAlias#ip - */ - readonly ip?: string; - -} - -/** - * Converts an object of type 'HostAlias' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HostAlias(obj: HostAlias | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hostnames': obj.hostnames?.map(y => y), - 'ip': obj.ip, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodOS defines the OS parameters of a pod. - * - * @schema io.k8s.api.core.v1.PodOS - */ -export interface PodOs { - /** - * Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null - * - * @schema io.k8s.api.core.v1.PodOS#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'PodOs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodOs(obj: PodOs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodReadinessGate contains the reference to a pod condition - * - * @schema io.k8s.api.core.v1.PodReadinessGate - */ -export interface PodReadinessGate { - /** - * ConditionType refers to a condition in the pod's condition list with matching type. - * - * @schema io.k8s.api.core.v1.PodReadinessGate#conditionType - */ - readonly conditionType: string; - -} - -/** - * Converts an object of type 'PodReadinessGate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodReadinessGate(obj: PodReadinessGate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'conditionType': obj.conditionType, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. - * - * @schema io.k8s.api.core.v1.PodResourceClaim - */ -export interface PodResourceClaim { - /** - * Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. - * - * @schema io.k8s.api.core.v1.PodResourceClaim#name - */ - readonly name: string; - - /** - * Source describes where to find the ResourceClaim. - * - * @schema io.k8s.api.core.v1.PodResourceClaim#source - */ - readonly source?: ClaimSource; - -} - -/** - * Converts an object of type 'PodResourceClaim' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodResourceClaim(obj: PodResourceClaim | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'source': toJson_ClaimSource(obj.source), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSchedulingGate is associated to a Pod to guard its scheduling. - * - * @schema io.k8s.api.core.v1.PodSchedulingGate - */ -export interface PodSchedulingGate { - /** - * Name of the scheduling gate. Each scheduling gate must have a unique name field. - * - * @schema io.k8s.api.core.v1.PodSchedulingGate#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'PodSchedulingGate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodSchedulingGate(obj: PodSchedulingGate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. - * - * @schema io.k8s.api.core.v1.PodSecurityContext - */ -export interface PodSecurityContext { - /** - * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - * - * 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - * - * If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. - * - * @default user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. - * @schema io.k8s.api.core.v1.PodSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: SeLinuxOptions; - - /** - * The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#seccompProfile - */ - readonly seccompProfile?: SeccompProfile; - - /** - * A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#sysctls - */ - readonly sysctls?: Sysctl[]; - - /** - * The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. - * - * @schema io.k8s.api.core.v1.PodSecurityContext#windowsOptions - */ - readonly windowsOptions?: WindowsSecurityContextOptions; - -} - -/** - * Converts an object of type 'PodSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodSecurityContext(obj: PodSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_SeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_SeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_Sysctl(y)), - 'windowsOptions': toJson_WindowsSecurityContextOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - * - * @schema io.k8s.api.core.v1.Toleration - */ -export interface Toleration { - /** - * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * - * @schema io.k8s.api.core.v1.Toleration#effect - */ - readonly effect?: string; - - /** - * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * - * @schema io.k8s.api.core.v1.Toleration#key - */ - readonly key?: string; - - /** - * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * - * @default Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * @schema io.k8s.api.core.v1.Toleration#operator - */ - readonly operator?: string; - - /** - * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * - * @schema io.k8s.api.core.v1.Toleration#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - * - * @schema io.k8s.api.core.v1.Toleration#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'Toleration' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Toleration(obj: Toleration | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TopologySpreadConstraint specifies how to spread matching pods among the given topology. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint - */ -export interface TopologySpreadConstraint { - /** - * LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#labelSelector - */ - readonly labelSelector?: LabelSelector; - - /** - * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. - * - * This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#maxSkew - */ - readonly maxSkew: number; - - /** - * MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. - * - * For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. - * - * This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#minDomains - */ - readonly minDomains?: number; - - /** - * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. - * - * If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. - * - * If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#topologyKey - */ - readonly topologyKey: string; - - /** - * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, - * but giving higher precedence to topologies that would help reduce the - * skew. - * A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - * - * @schema io.k8s.api.core.v1.TopologySpreadConstraint#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'TopologySpreadConstraint' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TopologySpreadConstraint(obj: TopologySpreadConstraint | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_LabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Volume represents a named volume in a pod that may be accessed by any container in the pod. - * - * @schema io.k8s.api.core.v1.Volume - */ -export interface Volume { - /** - * awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * - * @schema io.k8s.api.core.v1.Volume#awsElasticBlockStore - */ - readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; - - /** - * azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.Volume#azureDisk - */ - readonly azureDisk?: AzureDiskVolumeSource; - - /** - * azureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.Volume#azureFile - */ - readonly azureFile?: AzureFileVolumeSource; - - /** - * cephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.Volume#cephfs - */ - readonly cephfs?: CephFsVolumeSource; - - /** - * cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.Volume#cinder - */ - readonly cinder?: CinderVolumeSource; - - /** - * configMap represents a configMap that should populate this volume - * - * @schema io.k8s.api.core.v1.Volume#configMap - */ - readonly configMap?: ConfigMapVolumeSource; - - /** - * csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). - * - * @schema io.k8s.api.core.v1.Volume#csi - */ - readonly csi?: CsiVolumeSource; - - /** - * downwardAPI represents downward API about the pod that should populate this volume - * - * @schema io.k8s.api.core.v1.Volume#downwardAPI - */ - readonly downwardApi?: DownwardApiVolumeSource; - - /** - * emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * - * @schema io.k8s.api.core.v1.Volume#emptyDir - */ - readonly emptyDir?: EmptyDirVolumeSource; - - /** - * ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. - * - * Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity - * tracking are needed, - * c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through - * a PersistentVolumeClaim (see EphemeralVolumeSource for more - * information on the connection between this volume type - * and PersistentVolumeClaim). - * - * Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. - * - * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. - * - * A pod can use both types of ephemeral volumes and persistent volumes at the same time. - * - * @schema io.k8s.api.core.v1.Volume#ephemeral - */ - readonly ephemeral?: EphemeralVolumeSource; - - /** - * fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * - * @schema io.k8s.api.core.v1.Volume#fc - */ - readonly fc?: FcVolumeSource; - - /** - * flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.Volume#flexVolume - */ - readonly flexVolume?: FlexVolumeSource; - - /** - * flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * - * @schema io.k8s.api.core.v1.Volume#flocker - */ - readonly flocker?: FlockerVolumeSource; - - /** - * gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * - * @schema io.k8s.api.core.v1.Volume#gcePersistentDisk - */ - readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; - - /** - * gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * - * @schema io.k8s.api.core.v1.Volume#gitRepo - */ - readonly gitRepo?: GitRepoVolumeSource; - - /** - * glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * - * @schema io.k8s.api.core.v1.Volume#glusterfs - */ - readonly glusterfs?: GlusterfsVolumeSource; - - /** - * hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * - * @schema io.k8s.api.core.v1.Volume#hostPath - */ - readonly hostPath?: HostPathVolumeSource; - - /** - * iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * - * @schema io.k8s.api.core.v1.Volume#iscsi - */ - readonly iscsi?: IscsiVolumeSource; - - /** - * name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.Volume#name - */ - readonly name: string; - - /** - * nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * - * @schema io.k8s.api.core.v1.Volume#nfs - */ - readonly nfs?: NfsVolumeSource; - - /** - * persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.Volume#persistentVolumeClaim - */ - readonly persistentVolumeClaim?: PersistentVolumeClaimVolumeSource; - - /** - * photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.Volume#photonPersistentDisk - */ - readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; - - /** - * portworxVolume represents a portworx volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.Volume#portworxVolume - */ - readonly portworxVolume?: PortworxVolumeSource; - - /** - * projected items for all in one resources secrets, configmaps, and downward API - * - * @schema io.k8s.api.core.v1.Volume#projected - */ - readonly projected?: ProjectedVolumeSource; - - /** - * quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * - * @schema io.k8s.api.core.v1.Volume#quobyte - */ - readonly quobyte?: QuobyteVolumeSource; - - /** - * rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * - * @schema io.k8s.api.core.v1.Volume#rbd - */ - readonly rbd?: RbdVolumeSource; - - /** - * scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * - * @schema io.k8s.api.core.v1.Volume#scaleIO - */ - readonly scaleIo?: ScaleIoVolumeSource; - - /** - * secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * - * @schema io.k8s.api.core.v1.Volume#secret - */ - readonly secret?: SecretVolumeSource; - - /** - * storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * - * @schema io.k8s.api.core.v1.Volume#storageos - */ - readonly storageos?: StorageOsVolumeSource; - - /** - * vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * - * @schema io.k8s.api.core.v1.Volume#vsphereVolume - */ - readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; - -} - -/** - * Converts an object of type 'Volume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Volume(obj: Volume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'awsElasticBlockStore': toJson_AwsElasticBlockStoreVolumeSource(obj.awsElasticBlockStore), - 'azureDisk': toJson_AzureDiskVolumeSource(obj.azureDisk), - 'azureFile': toJson_AzureFileVolumeSource(obj.azureFile), - 'cephfs': toJson_CephFsVolumeSource(obj.cephfs), - 'cinder': toJson_CinderVolumeSource(obj.cinder), - 'configMap': toJson_ConfigMapVolumeSource(obj.configMap), - 'csi': toJson_CsiVolumeSource(obj.csi), - 'downwardAPI': toJson_DownwardApiVolumeSource(obj.downwardApi), - 'emptyDir': toJson_EmptyDirVolumeSource(obj.emptyDir), - 'ephemeral': toJson_EphemeralVolumeSource(obj.ephemeral), - 'fc': toJson_FcVolumeSource(obj.fc), - 'flexVolume': toJson_FlexVolumeSource(obj.flexVolume), - 'flocker': toJson_FlockerVolumeSource(obj.flocker), - 'gcePersistentDisk': toJson_GcePersistentDiskVolumeSource(obj.gcePersistentDisk), - 'gitRepo': toJson_GitRepoVolumeSource(obj.gitRepo), - 'glusterfs': toJson_GlusterfsVolumeSource(obj.glusterfs), - 'hostPath': toJson_HostPathVolumeSource(obj.hostPath), - 'iscsi': toJson_IscsiVolumeSource(obj.iscsi), - 'name': obj.name, - 'nfs': toJson_NfsVolumeSource(obj.nfs), - 'persistentVolumeClaim': toJson_PersistentVolumeClaimVolumeSource(obj.persistentVolumeClaim), - 'photonPersistentDisk': toJson_PhotonPersistentDiskVolumeSource(obj.photonPersistentDisk), - 'portworxVolume': toJson_PortworxVolumeSource(obj.portworxVolume), - 'projected': toJson_ProjectedVolumeSource(obj.projected), - 'quobyte': toJson_QuobyteVolumeSource(obj.quobyte), - 'rbd': toJson_RbdVolumeSource(obj.rbd), - 'scaleIO': toJson_ScaleIoVolumeSource(obj.scaleIo), - 'secret': toJson_SecretVolumeSource(obj.secret), - 'storageos': toJson_StorageOsVolumeSource(obj.storageos), - 'vsphereVolume': toJson_VsphereVirtualDiskVolumeSource(obj.vsphereVolume), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. - * - * @schema io.k8s.api.core.v1.ScopeSelector - */ -export interface ScopeSelector { - /** - * A list of scope selector requirements by scope of the resources. - * - * @schema io.k8s.api.core.v1.ScopeSelector#matchExpressions - */ - readonly matchExpressions?: ScopedResourceSelectorRequirement[]; - -} - -/** - * Converts an object of type 'ScopeSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ScopeSelector(obj: ScopeSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_ScopedResourceSelectorRequirement(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServicePort contains information on service's port. - * - * @schema io.k8s.api.core.v1.ServicePort - */ -export interface ServicePort { - /** - * The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: - * - * * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). - * - * * Kubernetes-defined prefixed names: - * * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- - * * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 - * * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 - * - * * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. - * - * @schema io.k8s.api.core.v1.ServicePort#appProtocol - */ - readonly appProtocol?: string; - - /** - * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. - * - * @schema io.k8s.api.core.v1.ServicePort#name - */ - readonly name?: string; - - /** - * The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - * - * @schema io.k8s.api.core.v1.ServicePort#nodePort - */ - readonly nodePort?: number; - - /** - * The port that will be exposed by this service. - * - * @schema io.k8s.api.core.v1.ServicePort#port - */ - readonly port: number; - - /** - * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - * - * @default TCP. - * @schema io.k8s.api.core.v1.ServicePort#protocol - */ - readonly protocol?: string; - - /** - * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - * - * @schema io.k8s.api.core.v1.ServicePort#targetPort - */ - readonly targetPort?: IntOrString; - -} - -/** - * Converts an object of type 'ServicePort' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServicePort(obj: ServicePort | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appProtocol': obj.appProtocol, - 'name': obj.name, - 'nodePort': obj.nodePort, - 'port': obj.port, - 'protocol': obj.protocol, - 'targetPort': obj.targetPort?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SessionAffinityConfig represents the configurations of session affinity. - * - * @schema io.k8s.api.core.v1.SessionAffinityConfig - */ -export interface SessionAffinityConfig { - /** - * clientIP contains the configurations of Client IP based session affinity. - * - * @schema io.k8s.api.core.v1.SessionAffinityConfig#clientIP - */ - readonly clientIp?: ClientIpConfig; - -} - -/** - * Converts an object of type 'SessionAffinityConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SessionAffinityConfig(obj: SessionAffinityConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientIP': toJson_ClientIpConfig(obj.clientIp), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointConditions represents the current condition of an endpoint. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions - */ -export interface EndpointConditions { - /** - * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions#ready - */ - readonly ready?: boolean; - - /** - * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions#serving - */ - readonly serving?: boolean; - - /** - * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. - * - * @schema io.k8s.api.discovery.v1.EndpointConditions#terminating - */ - readonly terminating?: boolean; - -} - -/** - * Converts an object of type 'EndpointConditions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EndpointConditions(obj: EndpointConditions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ready': obj.ready, - 'serving': obj.serving, - 'terminating': obj.terminating, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EndpointHints provides hints describing how an endpoint should be consumed. - * - * @schema io.k8s.api.discovery.v1.EndpointHints - */ -export interface EndpointHints { - /** - * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. - * - * @schema io.k8s.api.discovery.v1.EndpointHints#forZones - */ - readonly forZones?: ForZone[]; - -} - -/** - * Converts an object of type 'EndpointHints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EndpointHints(obj: EndpointHints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'forZones': obj.forZones?.map(y => toJson_ForZone(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowDistinguisherMethod specifies the method of a flow distinguisher. - * - * @schema io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod - */ -export interface FlowDistinguisherMethod { - /** - * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - * - * @schema io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'FlowDistinguisherMethod' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlowDistinguisherMethod(obj: FlowDistinguisherMethod | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference - */ -export interface PriorityLevelConfigurationReference { - /** - * `name` is the name of the priority level configuration being referenced Required. - * - * @schema io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'PriorityLevelConfigurationReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PriorityLevelConfigurationReference(obj: PriorityLevelConfigurationReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. - * - * @schema io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects - */ -export interface PolicyRulesWithSubjects { - /** - * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * - * @schema io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects#nonResourceRules - */ - readonly nonResourceRules?: NonResourcePolicyRule[]; - - /** - * `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * - * @schema io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects#resourceRules - */ - readonly resourceRules?: ResourcePolicyRule[]; - - /** - * subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * - * @schema io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects#subjects - */ - readonly subjects: Subject[]; - -} - -/** - * Converts an object of type 'PolicyRulesWithSubjects' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PolicyRulesWithSubjects(obj: PolicyRulesWithSubjects | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nonResourceRules': obj.nonResourceRules?.map(y => toJson_NonResourcePolicyRule(y)), - 'resourceRules': obj.resourceRules?.map(y => toJson_ResourcePolicyRule(y)), - 'subjects': obj.subjects?.map(y => toJson_Subject(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. - * - * @schema io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration - */ -export interface ExemptPriorityLevelConfiguration { - /** - * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - * - * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - * - * @schema io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration#lendablePercent - */ - readonly lendablePercent?: number; - - /** - * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: - * - * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) - * - * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. - * - * @schema io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration#nominalConcurrencyShares - */ - readonly nominalConcurrencyShares?: number; - -} - -/** - * Converts an object of type 'ExemptPriorityLevelConfiguration' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ExemptPriorityLevelConfiguration(obj: ExemptPriorityLevelConfiguration | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'lendablePercent': obj.lendablePercent, - 'nominalConcurrencyShares': obj.nominalConcurrencyShares, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - * - How are requests for this priority level limited? - * - What should be done with requests that exceed the limit? - * - * @schema io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration - */ -export interface LimitedPriorityLevelConfiguration { - /** - * `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. - * - * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - * - * The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. - * - * @schema io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration#borrowingLimitPercent - */ - readonly borrowingLimitPercent?: number; - - /** - * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - * - * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - * - * @schema io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration#lendablePercent - */ - readonly lendablePercent?: number; - - /** - * `limitResponse` indicates what to do with requests that can not be executed right now - * - * @schema io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration#limitResponse - */ - readonly limitResponse?: LimitResponse; - - /** - * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: - * - * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) - * - * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. - * - * If not specified, this field defaults to a value of 30. - * - * Setting this field to zero supports the construction of a "jail" for this priority level that is used to hold some request(s) - * - * @schema io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration#nominalConcurrencyShares - */ - readonly nominalConcurrencyShares?: number; - -} - -/** - * Converts an object of type 'LimitedPriorityLevelConfiguration' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LimitedPriorityLevelConfiguration(obj: LimitedPriorityLevelConfiguration | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'borrowingLimitPercent': obj.borrowingLimitPercent, - 'lendablePercent': obj.lendablePercent, - 'limitResponse': toJson_LimitResponse(obj.limitResponse), - 'nominalConcurrencyShares': obj.nominalConcurrencyShares, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlowDistinguisherMethod specifies the method of a flow distinguisher. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod - */ -export interface FlowDistinguisherMethodV1Beta3 { - /** - * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'FlowDistinguisherMethodV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlowDistinguisherMethodV1Beta3(obj: FlowDistinguisherMethodV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference - */ -export interface PriorityLevelConfigurationReferenceV1Beta3 { - /** - * `name` is the name of the priority level configuration being referenced Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'PriorityLevelConfigurationReferenceV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PriorityLevelConfigurationReferenceV1Beta3(obj: PriorityLevelConfigurationReferenceV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects - */ -export interface PolicyRulesWithSubjectsV1Beta3 { - /** - * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects#nonResourceRules - */ - readonly nonResourceRules?: NonResourcePolicyRuleV1Beta3[]; - - /** - * `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects#resourceRules - */ - readonly resourceRules?: ResourcePolicyRuleV1Beta3[]; - - /** - * subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects#subjects - */ - readonly subjects: SubjectV1Beta3[]; - -} - -/** - * Converts an object of type 'PolicyRulesWithSubjectsV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PolicyRulesWithSubjectsV1Beta3(obj: PolicyRulesWithSubjectsV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nonResourceRules': obj.nonResourceRules?.map(y => toJson_NonResourcePolicyRuleV1Beta3(y)), - 'resourceRules': obj.resourceRules?.map(y => toJson_ResourcePolicyRuleV1Beta3(y)), - 'subjects': obj.subjects?.map(y => toJson_SubjectV1Beta3(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration - */ -export interface ExemptPriorityLevelConfigurationV1Beta3 { - /** - * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - * - * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - * - * @schema io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration#lendablePercent - */ - readonly lendablePercent?: number; - - /** - * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: - * - * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) - * - * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration#nominalConcurrencyShares - */ - readonly nominalConcurrencyShares?: number; - -} - -/** - * Converts an object of type 'ExemptPriorityLevelConfigurationV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ExemptPriorityLevelConfigurationV1Beta3(obj: ExemptPriorityLevelConfigurationV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'lendablePercent': obj.lendablePercent, - 'nominalConcurrencyShares': obj.nominalConcurrencyShares, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - * - How are requests for this priority level limited? - * - What should be done with requests that exceed the limit? - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration - */ -export interface LimitedPriorityLevelConfigurationV1Beta3 { - /** - * `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. - * - * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) - * - * The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration#borrowingLimitPercent - */ - readonly borrowingLimitPercent?: number; - - /** - * `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. - * - * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration#lendablePercent - */ - readonly lendablePercent?: number; - - /** - * `limitResponse` indicates what to do with requests that can not be executed right now - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration#limitResponse - */ - readonly limitResponse?: LimitResponseV1Beta3; - - /** - * `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: - * - * NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) - * - * Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30. - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration#nominalConcurrencyShares - */ - readonly nominalConcurrencyShares?: number; - -} - -/** - * Converts an object of type 'LimitedPriorityLevelConfigurationV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LimitedPriorityLevelConfigurationV1Beta3(obj: LimitedPriorityLevelConfigurationV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'borrowingLimitPercent': obj.borrowingLimitPercent, - 'lendablePercent': obj.lendablePercent, - 'limitResponse': toJson_LimitResponseV1Beta3(obj.limitResponse), - 'nominalConcurrencyShares': obj.nominalConcurrencyShares, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressBackend describes all endpoints for a given service and port. - * - * @schema io.k8s.api.networking.v1.IngressBackend - */ -export interface IngressBackend { - /** - * resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". - * - * @schema io.k8s.api.networking.v1.IngressBackend#resource - */ - readonly resource?: TypedLocalObjectReference; - - /** - * service references a service as a backend. This is a mutually exclusive setting with "Resource". - * - * @schema io.k8s.api.networking.v1.IngressBackend#service - */ - readonly service?: IngressServiceBackend; - -} - -/** - * Converts an object of type 'IngressBackend' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressBackend(obj: IngressBackend | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resource': toJson_TypedLocalObjectReference(obj.resource), - 'service': toJson_IngressServiceBackend(obj.service), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. - * - * @schema io.k8s.api.networking.v1.IngressRule - */ -export interface IngressRule { - /** - * host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - * the IP in the Spec of the parent Ingress. - * 2. The `:` delimiter is not respected because ports are not allowed. - * Currently the port of an Ingress is implicitly :80 for http and - * :443 for https. - * Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - * - * host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * - * @schema io.k8s.api.networking.v1.IngressRule#host - */ - readonly host?: string; - - /** - * @schema io.k8s.api.networking.v1.IngressRule#http - */ - readonly http?: HttpIngressRuleValue; - -} - -/** - * Converts an object of type 'IngressRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressRule(obj: IngressRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'http': toJson_HttpIngressRuleValue(obj.http), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressTLS describes the transport layer security associated with an ingress. - * - * @schema io.k8s.api.networking.v1.IngressTLS - */ -export interface IngressTls { - /** - * hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * - * @default the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * @schema io.k8s.api.networking.v1.IngressTLS#hosts - */ - readonly hosts?: string[]; - - /** - * secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing. - * - * @schema io.k8s.api.networking.v1.IngressTLS#secretName - */ - readonly secretName?: string; - -} - -/** - * Converts an object of type 'IngressTls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressTls(obj: IngressTls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hosts': obj.hosts?.map(y => y), - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference - */ -export interface IngressClassParametersReference { - /** - * apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#apiGroup - */ - readonly apiGroup?: string; - - /** - * kind is the type of resource being referenced. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#kind - */ - readonly kind: string; - - /** - * name is the name of resource being referenced. - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#name - */ - readonly name: string; - - /** - * namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#namespace - */ - readonly namespace?: string; - - /** - * scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". - * - * @schema io.k8s.api.networking.v1.IngressClassParametersReference#scope - */ - readonly scope?: string; - -} - -/** - * Converts an object of type 'IngressClassParametersReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressClassParametersReference(obj: IngressClassParametersReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - 'scope': obj.scope, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 - * - * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule - */ -export interface NetworkPolicyEgressRule { - /** - * ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#ports - */ - readonly ports?: NetworkPolicyPort[]; - - /** - * to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#to - */ - readonly to?: NetworkPolicyPeer[]; - -} - -/** - * Converts an object of type 'NetworkPolicyEgressRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NetworkPolicyEgressRule(obj: NetworkPolicyEgressRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ports': obj.ports?.map(y => toJson_NetworkPolicyPort(y)), - 'to': obj.to?.map(y => toJson_NetworkPolicyPeer(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule - */ -export interface NetworkPolicyIngressRule { - /** - * from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#from - */ - readonly from?: NetworkPolicyPeer[]; - - /** - * ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#ports - */ - readonly ports?: NetworkPolicyPort[]; - -} - -/** - * Converts an object of type 'NetworkPolicyIngressRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NetworkPolicyIngressRule(obj: NetworkPolicyIngressRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'from': obj.from?.map(y => toJson_NetworkPolicyPeer(y)), - 'ports': obj.ports?.map(y => toJson_NetworkPolicyPort(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ParentReference describes a reference to a parent object. - * - * @schema io.k8s.api.networking.v1alpha1.ParentReference - */ -export interface ParentReferenceV1Alpha1 { - /** - * Group is the group of the object being referenced. - * - * @schema io.k8s.api.networking.v1alpha1.ParentReference#group - */ - readonly group?: string; - - /** - * Name is the name of the object being referenced. - * - * @schema io.k8s.api.networking.v1alpha1.ParentReference#name - */ - readonly name?: string; - - /** - * Namespace is the namespace of the object being referenced. - * - * @schema io.k8s.api.networking.v1alpha1.ParentReference#namespace - */ - readonly namespace?: string; - - /** - * Resource is the resource of the object being referenced. - * - * @schema io.k8s.api.networking.v1alpha1.ParentReference#resource - */ - readonly resource?: string; - -} - -/** - * Converts an object of type 'ParentReferenceV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ParentReferenceV1Alpha1(obj: ParentReferenceV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'name': obj.name, - 'namespace': obj.namespace, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * 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 - * - * @schema IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind - */ -export enum IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind { - /** DeleteOptions */ - DELETE_OPTIONS = "DeleteOptions", -} - -/** - * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions - */ -export interface Preconditions { - /** - * Specifies the target ResourceVersion - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#resourceVersion - */ - readonly resourceVersion?: string; - - /** - * Specifies the target UID. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#uid - */ - readonly uid?: string; - -} - -/** - * Converts an object of type 'Preconditions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Preconditions(obj: Preconditions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceVersion': obj.resourceVersion, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema io.k8s.apimachinery.pkg.util.intstr.IntOrString - */ -export class IntOrString { - public static fromString(value: string): IntOrString { - return new IntOrString(value); - } - public static fromNumber(value: number): IntOrString { - return new IntOrString(value); - } - private constructor(public readonly value: string | number) { - } -} - -/** - * ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference - */ -export interface ResourceClaimParametersReferenceV1Alpha2 { - /** - * APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference#apiGroup - */ - readonly apiGroup?: string; - - /** - * Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap". - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference#kind - */ - readonly kind: string; - - /** - * Name is the name of resource being referenced. - * - * @schema io.k8s.api.resource.v1alpha2.ResourceClaimParametersReference#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'ResourceClaimParametersReferenceV1Alpha2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceClaimParametersReferenceV1Alpha2(obj: ResourceClaimParametersReferenceV1Alpha2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - * - * @schema io.k8s.api.core.v1.NodeSelectorTerm - */ -export interface NodeSelectorTerm { - /** - * A list of node selector requirements by node's labels. - * - * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchExpressions - */ - readonly matchExpressions?: NodeSelectorRequirement[]; - - /** - * A list of node selector requirements by node's fields. - * - * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchFields - */ - readonly matchFields?: NodeSelectorRequirement[]; - -} - -/** - * Converts an object of type 'NodeSelectorTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NodeSelectorTerm(obj: NodeSelectorTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_NodeSelectorRequirement(y)), - 'matchFields': obj.matchFields?.map(y => toJson_NodeSelectorRequirement(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TokenRequest contains parameters of a service account token. - * - * @schema io.k8s.api.storage.v1.TokenRequest - */ -export interface TokenRequest { - /** - * audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver. - * - * @schema io.k8s.api.storage.v1.TokenRequest#audience - */ - readonly audience: string; - - /** - * expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". - * - * @schema io.k8s.api.storage.v1.TokenRequest#expirationSeconds - */ - readonly expirationSeconds?: number; - -} - -/** - * Converts an object of type 'TokenRequest' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TokenRequest(obj: TokenRequest | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'audience': obj.audience, - 'expirationSeconds': obj.expirationSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CSINodeDriver holds information about the specification of one CSI driver installed on a node - * - * @schema io.k8s.api.storage.v1.CSINodeDriver - */ -export interface CsiNodeDriver { - /** - * allocatable represents the volume resources of a node that are available for scheduling. This field is beta. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#allocatable - */ - readonly allocatable?: VolumeNodeResources; - - /** - * name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#name - */ - readonly name: string; - - /** - * nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#nodeID - */ - readonly nodeId: string; - - /** - * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. - * - * @schema io.k8s.api.storage.v1.CSINodeDriver#topologyKeys - */ - readonly topologyKeys?: string[]; - -} - -/** - * Converts an object of type 'CsiNodeDriver' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CsiNodeDriver(obj: CsiNodeDriver | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allocatable': toJson_VolumeNodeResources(obj.allocatable), - 'name': obj.name, - 'nodeID': obj.nodeId, - 'topologyKeys': obj.topologyKeys?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement - */ -export interface LabelSelectorRequirement { - /** - * key is the label key that the selector applies to. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#key - */ - readonly key: string; - - /** - * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#operator - */ - readonly operator: string; - - /** - * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'LabelSelectorRequirement' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LabelSelectorRequirement(obj: LabelSelectorRequirement | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. - * - * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement - */ -export interface TopologySelectorLabelRequirement { - /** - * The label key that the selector applies to. - * - * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#key - */ - readonly key: string; - - /** - * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - * - * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#values - */ - readonly values: string[]; - -} - -/** - * Converts an object of type 'TopologySelectorLabelRequirement' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TopologySelectorLabelRequirement(obj: TopologySelectorLabelRequirement | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSource - */ -export interface VolumeAttachmentSource { - /** - * inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#inlineVolumeSpec - */ - readonly inlineVolumeSpec?: PersistentVolumeSpec; - - /** - * persistentVolumeName represents the name of the persistent volume to attach. - * - * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#persistentVolumeName - */ - readonly persistentVolumeName?: string; - -} - -/** - * Converts an object of type 'VolumeAttachmentSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeAttachmentSource(obj: VolumeAttachmentSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'inlineVolumeSpec': toJson_PersistentVolumeSpec(obj.inlineVolumeSpec), - 'persistentVolumeName': obj.persistentVolumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceConversion describes how to convert different versions of a CR. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion - */ -export interface CustomResourceConversion { - /** - * strategy specifies how custom resources are converted between versions. Allowed values are: - `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information - * is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#strategy - */ - readonly strategy: string; - - /** - * webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#webhook - */ - readonly webhook?: WebhookConversion; - -} - -/** - * Converts an object of type 'CustomResourceConversion' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceConversion(obj: CustomResourceConversion | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'strategy': obj.strategy, - 'webhook': toJson_WebhookConversion(obj.webhook), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames - */ -export interface CustomResourceDefinitionNames { - /** - * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#categories - */ - readonly categories?: string[]; - - /** - * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#kind - */ - readonly kind: string; - - /** - * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * - * @default kind`List". - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#listKind - */ - readonly listKind?: string; - - /** - * plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#plural - */ - readonly plural: string; - - /** - * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#shortNames - */ - readonly shortNames?: string[]; - - /** - * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - * - * @default lowercased `kind`. - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#singular - */ - readonly singular?: string; - -} - -/** - * Converts an object of type 'CustomResourceDefinitionNames' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceDefinitionNames(obj: CustomResourceDefinitionNames | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'categories': obj.categories?.map(y => y), - 'kind': obj.kind, - 'listKind': obj.listKind, - 'plural': obj.plural, - 'shortNames': obj.shortNames?.map(y => y), - 'singular': obj.singular, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceDefinitionVersion describes a version for CRD. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion - */ -export interface CustomResourceDefinitionVersion { - /** - * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#additionalPrinterColumns - */ - readonly additionalPrinterColumns?: CustomResourceColumnDefinition[]; - - /** - * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. - * - * @default false. - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecated - */ - readonly deprecated?: boolean; - - /** - * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecationWarning - */ - readonly deprecationWarning?: string; - - /** - * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#name - */ - readonly name: string; - - /** - * schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#schema - */ - readonly schema?: CustomResourceValidation; - - /** - * served is a flag enabling/disabling this version from being served via REST APIs - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#served - */ - readonly served: boolean; - - /** - * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#storage - */ - readonly storage: boolean; - - /** - * subresources specify what subresources this version of the defined custom resource have. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#subresources - */ - readonly subresources?: CustomResourceSubresources; - -} - -/** - * Converts an object of type 'CustomResourceDefinitionVersion' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceDefinitionVersion(obj: CustomResourceDefinitionVersion | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'additionalPrinterColumns': obj.additionalPrinterColumns?.map(y => toJson_CustomResourceColumnDefinition(y)), - 'deprecated': obj.deprecated, - 'deprecationWarning': obj.deprecationWarning, - 'name': obj.name, - 'schema': toJson_CustomResourceValidation(obj.schema), - 'served': obj.served, - 'storage': obj.storage, - 'subresources': toJson_CustomResourceSubresources(obj.subresources), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause - */ -export interface StatusCause { - /** - * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. - * - * Examples: - * "name" - the field "name" on the current resource - * "items[0].name" - the field "name" on the first array entry in "items" - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#field - */ - readonly field?: string; - - /** - * A human-readable description of the cause of the error. This field may be presented as-is to a reader. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#message - */ - readonly message?: string; - - /** - * A machine-readable description of the cause of the error. If this value is empty there is no information available. - * - * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#reason - */ - readonly reason?: string; - -} - -/** - * Converts an object of type 'StatusCause' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StatusCause(obj: StatusCause | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'field': obj.field, - 'message': obj.message, - 'reason': obj.reason, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceReference holds a reference to Service.legacy.k8s.io - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference - */ -export interface ServiceReference { - /** - * `name` is the name of the service. Required - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#name - */ - readonly name: string; - - /** - * `namespace` is the namespace of the service. Required - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#namespace - */ - readonly namespace: string; - - /** - * `path` is an optional URL path which will be sent in any request to this service. - * - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#path - */ - readonly path?: string; - - /** - * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - * - * @default 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - * @schema io.k8s.api.admissionregistration.v1.ServiceReference#port - */ - readonly port?: number; - -} - -/** - * Converts an object of type 'ServiceReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceReference(obj: ServiceReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'namespace': obj.namespace, - 'path': obj.path, - 'port': obj.port, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations - */ -export interface NamedRuleWithOperationsV1Alpha1 { - /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations#apiGroups - */ - readonly apiGroups?: string[]; - - /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations#apiVersions - */ - readonly apiVersions?: string[]; - - /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations#operations - */ - readonly operations?: string[]; - - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations#resourceNames - */ - readonly resourceNames?: string[]; - - /** - * Resources is a list of resources this rule applies to. - * - * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '_/scale' means all scale subresources. '_/*' means all resources and their subresources. - * - * If wildcard is present, the validation rule will ensure resources do not overlap with each other. - * - * Depending on the enclosing object, subresources might not be allowed. Required. - * - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations#resources - */ - readonly resources?: string[]; - - /** - * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - * - * @default . - * @schema io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations#scope - */ - readonly scope?: string; - -} - -/** - * Converts an object of type 'NamedRuleWithOperationsV1Alpha1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NamedRuleWithOperationsV1Alpha1(obj: NamedRuleWithOperationsV1Alpha1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroups': obj.apiGroups?.map(y => y), - 'apiVersions': obj.apiVersions?.map(y => y), - 'operations': obj.operations?.map(y => y), - 'resourceNames': obj.resourceNames?.map(y => y), - 'resources': obj.resources?.map(y => y), - 'scope': obj.scope, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. - * - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations - */ -export interface NamedRuleWithOperationsV1Beta1 { - /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations#apiGroups - */ - readonly apiGroups?: string[]; - - /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations#apiVersions - */ - readonly apiVersions?: string[]; - - /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations#operations - */ - readonly operations?: string[]; - - /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations#resourceNames - */ - readonly resourceNames?: string[]; - - /** - * Resources is a list of resources this rule applies to. - * - * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '_/scale' means all scale subresources. '_/*' means all resources and their subresources. - * - * If wildcard is present, the validation rule will ensure resources do not overlap with each other. - * - * Depending on the enclosing object, subresources might not be allowed. Required. - * - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations#resources - */ - readonly resources?: string[]; - - /** - * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - * - * @default . - * @schema io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations#scope - */ - readonly scope?: string; - -} - -/** - * Converts an object of type 'NamedRuleWithOperationsV1Beta1' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NamedRuleWithOperationsV1Beta1(obj: NamedRuleWithOperationsV1Beta1 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroups': obj.apiGroups?.map(y => y), - 'apiVersions': obj.apiVersions?.map(y => y), - 'operations': obj.operations?.map(y => y), - 'resourceNames': obj.resourceNames?.map(y => y), - 'resources': obj.resources?.map(y => y), - 'scope': obj.scope, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Spec to control the desired behavior of daemon set rolling update. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet - */ -export interface RollingUpdateDaemonSet { - /** - * The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxSurge - */ - readonly maxSurge?: IntOrString; - - /** - * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; - -} - -/** - * Converts an object of type 'RollingUpdateDaemonSet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RollingUpdateDaemonSet(obj: RollingUpdateDaemonSet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Spec to control the desired behavior of rolling update. - * - * @schema io.k8s.api.apps.v1.RollingUpdateDeployment - */ -export interface RollingUpdateDeployment { - /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * - * @default 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxSurge - */ - readonly maxSurge?: IntOrString; - - /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - * - * @default 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; - -} - -/** - * Converts an object of type 'RollingUpdateDeployment' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RollingUpdateDeployment(obj: RollingUpdateDeployment | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. - * - * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy - */ -export interface RollingUpdateStatefulSetStrategy { - /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. - * - * @default 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. - * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#maxUnavailable - */ - readonly maxUnavailable?: IntOrString; - - /** - * Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. - * - * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#partition - */ - readonly partition?: number; - -} - -/** - * Converts an object of type 'RollingUpdateStatefulSetStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RollingUpdateStatefulSetStrategy(obj: RollingUpdateStatefulSetStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxUnavailable': obj.maxUnavailable?.value, - 'partition': obj.partition, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingRules - */ -export interface HpaScalingRulesV2 { - /** - * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#policies - */ - readonly policies?: HpaScalingPolicyV2[]; - - /** - * selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#selectPolicy - */ - readonly selectPolicy?: string; - - /** - * stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#stabilizationWindowSeconds - */ - readonly stabilizationWindowSeconds?: number; - -} - -/** - * Converts an object of type 'HpaScalingRulesV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HpaScalingRulesV2(obj: HpaScalingRulesV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'policies': obj.policies?.map(y => toJson_HpaScalingPolicyV2(y)), - 'selectPolicy': obj.selectPolicy, - 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource - */ -export interface ContainerResourceMetricSourceV2 { - /** - * container is the name of the container in the pods of the scaling target - * - * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#container - */ - readonly container: string; - - /** - * name is the name of the resource in question. - * - * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#name - */ - readonly name: string; - - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#target - */ - readonly target: MetricTargetV2; - -} - -/** - * Converts an object of type 'ContainerResourceMetricSourceV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ContainerResourceMetricSourceV2(obj: ContainerResourceMetricSourceV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'container': obj.container, - 'name': obj.name, - 'target': toJson_MetricTargetV2(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - * - * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource - */ -export interface ExternalMetricSourceV2 { - /** - * metric identifies the target metric by name and selector - * - * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource#metric - */ - readonly metric: MetricIdentifierV2; - - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource#target - */ - readonly target: MetricTargetV2; - -} - -/** - * Converts an object of type 'ExternalMetricSourceV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ExternalMetricSourceV2(obj: ExternalMetricSourceV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metric': toJson_MetricIdentifierV2(obj.metric), - 'target': toJson_MetricTargetV2(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - * - * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource - */ -export interface ObjectMetricSourceV2 { - /** - * describedObject specifies the descriptions of a object,such as kind,name apiVersion - * - * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#describedObject - */ - readonly describedObject: CrossVersionObjectReferenceV2; - - /** - * metric identifies the target metric by name and selector - * - * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#metric - */ - readonly metric: MetricIdentifierV2; - - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#target - */ - readonly target: MetricTargetV2; - -} - -/** - * Converts an object of type 'ObjectMetricSourceV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ObjectMetricSourceV2(obj: ObjectMetricSourceV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'describedObject': toJson_CrossVersionObjectReferenceV2(obj.describedObject), - 'metric': toJson_MetricIdentifierV2(obj.metric), - 'target': toJson_MetricTargetV2(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - * - * @schema io.k8s.api.autoscaling.v2.PodsMetricSource - */ -export interface PodsMetricSourceV2 { - /** - * metric identifies the target metric by name and selector - * - * @schema io.k8s.api.autoscaling.v2.PodsMetricSource#metric - */ - readonly metric: MetricIdentifierV2; - - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2.PodsMetricSource#target - */ - readonly target: MetricTargetV2; - -} - -/** - * Converts an object of type 'PodsMetricSourceV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodsMetricSourceV2(obj: PodsMetricSourceV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metric': toJson_MetricIdentifierV2(obj.metric), - 'target': toJson_MetricTargetV2(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. - * - * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource - */ -export interface ResourceMetricSourceV2 { - /** - * name is the name of the resource in question. - * - * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource#name - */ - readonly name: string; - - /** - * target specifies the target value for the given metric - * - * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource#target - */ - readonly target: MetricTargetV2; - -} - -/** - * Converts an object of type 'ResourceMetricSourceV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceMetricSourceV2(obj: ResourceMetricSourceV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'target': toJson_MetricTargetV2(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyRule - */ -export interface PodFailurePolicyRule { - /** - * Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - * - * - FailJob: indicates that the pod's job is marked as Failed and all - * running pods are terminated. - * - FailIndex: indicates that the pod's index is marked as Failed and will - * not be restarted. - * This value is beta-level. It can be used when the - * `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - * - Ignore: indicates that the counter towards the .backoffLimit is not - * incremented and a replacement pod is created. - * - Count: indicates that the pod is handled in the default way - the - * counter towards the .backoffLimit is incremented. - * Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#action - */ - readonly action: string; - - /** - * Represents the requirement on the container exit codes. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#onExitCodes - */ - readonly onExitCodes?: PodFailurePolicyOnExitCodesRequirement; - - /** - * Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#onPodConditions - */ - readonly onPodConditions?: PodFailurePolicyOnPodConditionsPattern[]; - -} - -/** - * Converts an object of type 'PodFailurePolicyRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodFailurePolicyRule(obj: PodFailurePolicyRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'action': obj.action, - 'onExitCodes': toJson_PodFailurePolicyOnExitCodesRequirement(obj.onExitCodes), - 'onPodConditions': obj.onPodConditions?.map(y => toJson_PodFailurePolicyOnPodConditionsPattern(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource - */ -export interface ConfigMapNodeConfigSource { - /** - * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#kubeletConfigKey - */ - readonly kubeletConfigKey: string; - - /** - * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#name - */ - readonly name: string; - - /** - * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#namespace - */ - readonly namespace: string; - - /** - * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#resourceVersion - */ - readonly resourceVersion?: string; - - /** - * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * - * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#uid - */ - readonly uid?: string; - -} - -/** - * Converts an object of type 'ConfigMapNodeConfigSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ConfigMapNodeConfigSource(obj: ConfigMapNodeConfigSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'kubeletConfigKey': obj.kubeletConfigKey, - 'name': obj.name, - 'namespace': obj.namespace, - 'resourceVersion': obj.resourceVersion, - 'uid': obj.uid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace - * - * @schema io.k8s.api.core.v1.SecretReference - */ -export interface SecretReference { - /** - * name is unique within a namespace to reference a secret resource. - * - * @schema io.k8s.api.core.v1.SecretReference#name - */ - readonly name?: string; - - /** - * namespace defines the space within which the secret name must be unique. - * - * @schema io.k8s.api.core.v1.SecretReference#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'SecretReference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SecretReference(obj: SecretReference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Node affinity is a group of node affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.NodeAffinity - */ -export interface NodeAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * - * @schema io.k8s.api.core.v1.NodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]; - - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * - * @schema io.k8s.api.core.v1.NodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector; - -} - -/** - * Converts an object of type 'NodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NodeAffinity(obj: NodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PreferredSchedulingTerm(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_NodeSelector(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Pod affinity is a group of inter pod affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.PodAffinity - */ -export interface PodAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * - * @schema io.k8s.api.core.v1.PodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; - - /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * - * @schema io.k8s.api.core.v1.PodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; - -} - -/** - * Converts an object of type 'PodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodAffinity(obj: PodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_WeightedPodAffinityTerm(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PodAffinityTerm(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Pod anti affinity is a group of inter pod anti affinity scheduling rules. - * - * @schema io.k8s.api.core.v1.PodAntiAffinity - */ -export interface PodAntiAffinity { - /** - * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * - * @schema io.k8s.api.core.v1.PodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; - - /** - * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - * - * @schema io.k8s.api.core.v1.PodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; - -} - -/** - * Converts an object of type 'PodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodAntiAffinity(obj: PodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_WeightedPodAffinityTerm(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PodAffinityTerm(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EnvVar represents an environment variable present in a Container. - * - * @schema io.k8s.api.core.v1.EnvVar - */ -export interface EnvVar { - /** - * Name of the environment variable. Must be a C_IDENTIFIER. - * - * @schema io.k8s.api.core.v1.EnvVar#name - */ - readonly name: string; - - /** - * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * - * @default . - * @schema io.k8s.api.core.v1.EnvVar#value - */ - readonly value?: string; - - /** - * Source for the environment variable's value. Cannot be used if value is not empty. - * - * @schema io.k8s.api.core.v1.EnvVar#valueFrom - */ - readonly valueFrom?: EnvVarSource; - -} - -/** - * Converts an object of type 'EnvVar' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EnvVar(obj: EnvVar | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_EnvVarSource(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EnvFromSource represents the source of a set of ConfigMaps - * - * @schema io.k8s.api.core.v1.EnvFromSource - */ -export interface EnvFromSource { - /** - * The ConfigMap to select from - * - * @schema io.k8s.api.core.v1.EnvFromSource#configMapRef - */ - readonly configMapRef?: ConfigMapEnvSource; - - /** - * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * - * @schema io.k8s.api.core.v1.EnvFromSource#prefix - */ - readonly prefix?: string; - - /** - * The Secret to select from - * - * @schema io.k8s.api.core.v1.EnvFromSource#secretRef - */ - readonly secretRef?: SecretEnvSource; - -} - -/** - * Converts an object of type 'EnvFromSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EnvFromSource(obj: EnvFromSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_ConfigMapEnvSource(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_SecretEnvSource(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. - * - * @schema io.k8s.api.core.v1.Lifecycle - */ -export interface Lifecycle { - /** - * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * - * @schema io.k8s.api.core.v1.Lifecycle#postStart - */ - readonly postStart?: LifecycleHandler; - - /** - * PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * - * @schema io.k8s.api.core.v1.Lifecycle#preStop - */ - readonly preStop?: LifecycleHandler; - -} - -/** - * Converts an object of type 'Lifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Lifecycle(obj: Lifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_LifecycleHandler(obj.postStart), - 'preStop': toJson_LifecycleHandler(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. - * - * @schema io.k8s.api.core.v1.Probe - */ -export interface Probe { - /** - * Exec specifies the action to take. - * - * @schema io.k8s.api.core.v1.Probe#exec - */ - readonly exec?: ExecAction; - - /** - * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * - * @default 3. Minimum value is 1. - * @schema io.k8s.api.core.v1.Probe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * GRPC specifies an action involving a GRPC port. - * - * @schema io.k8s.api.core.v1.Probe#grpc - */ - readonly grpc?: GrpcAction; - - /** - * HTTPGet specifies the http request to perform. - * - * @schema io.k8s.api.core.v1.Probe#httpGet - */ - readonly httpGet?: HttpGetAction; - - /** - * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @schema io.k8s.api.core.v1.Probe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * - * @default 10 seconds. Minimum value is 1. - * @schema io.k8s.api.core.v1.Probe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * - * @default 1. Must be 1 for liveness and startup. Minimum value is 1. - * @schema io.k8s.api.core.v1.Probe#successThreshold - */ - readonly successThreshold?: number; - - /** - * TCPSocket specifies an action involving a TCP port. - * - * @schema io.k8s.api.core.v1.Probe#tcpSocket - */ - readonly tcpSocket?: TcpSocketAction; - - /** - * Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. - * - * @schema io.k8s.api.core.v1.Probe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * - * @default 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * @schema io.k8s.api.core.v1.Probe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'Probe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Probe(obj: Probe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_ExecAction(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_GrpcAction(obj.grpc), - 'httpGet': toJson_HttpGetAction(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_TcpSocketAction(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ContainerPort represents a network port in a single container. - * - * @schema io.k8s.api.core.v1.ContainerPort - */ -export interface ContainerPort { - /** - * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * - * @schema io.k8s.api.core.v1.ContainerPort#containerPort - */ - readonly containerPort: number; - - /** - * What host IP to bind the external port to. - * - * @schema io.k8s.api.core.v1.ContainerPort#hostIP - */ - readonly hostIp?: string; - - /** - * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * - * @schema io.k8s.api.core.v1.ContainerPort#hostPort - */ - readonly hostPort?: number; - - /** - * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * - * @schema io.k8s.api.core.v1.ContainerPort#name - */ - readonly name?: string; - - /** - * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - * - * @default TCP". - * @schema io.k8s.api.core.v1.ContainerPort#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'ContainerPort' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ContainerPort(obj: ContainerPort | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ContainerResizePolicy represents resource resize policy for the container. - * - * @schema io.k8s.api.core.v1.ContainerResizePolicy - */ -export interface ContainerResizePolicy { - /** - * Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. - * - * @schema io.k8s.api.core.v1.ContainerResizePolicy#resourceName - */ - readonly resourceName: string; - - /** - * Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. - * - * @schema io.k8s.api.core.v1.ContainerResizePolicy#restartPolicy - */ - readonly restartPolicy: string; - -} - -/** - * Converts an object of type 'ContainerResizePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ContainerResizePolicy(obj: ContainerResizePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceName': obj.resourceName, - 'restartPolicy': obj.restartPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceRequirements describes the compute resource requirements. - * - * @schema io.k8s.api.core.v1.ResourceRequirements - */ -export interface ResourceRequirements { - /** - * Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. - * - * This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. - * - * This field is immutable. It can only be set for containers. - * - * @schema io.k8s.api.core.v1.ResourceRequirements#claims - */ - readonly claims?: ResourceClaim[]; - - /** - * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.ResourceRequirements#limits - */ - readonly limits?: { [key: string]: Quantity }; - - /** - * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - * - * @schema io.k8s.api.core.v1.ResourceRequirements#requests - */ - readonly requests?: { [key: string]: Quantity }; - -} - -/** - * Converts an object of type 'ResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceRequirements(obj: ResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_ResourceClaim(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext - */ -export interface SecurityContext { - /** - * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.SecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. - * - * @default the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. - * @schema io.k8s.api.core.v1.SecurityContext#capabilities - */ - readonly capabilities?: Capabilities; - - /** - * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. - * - * @default false. Note that this field cannot be set when spec.os.name is windows. - * @schema io.k8s.api.core.v1.SecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.SecurityContext#procMount - */ - readonly procMount?: string; - - /** - * Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. - * - * @default false. Note that this field cannot be set when spec.os.name is windows. - * @schema io.k8s.api.core.v1.SecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.SecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @schema io.k8s.api.core.v1.SecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. - * - * @default user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. - * @schema io.k8s.api.core.v1.SecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.SecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: SeLinuxOptions; - - /** - * The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. - * - * @schema io.k8s.api.core.v1.SecurityContext#seccompProfile - */ - readonly seccompProfile?: SeccompProfile; - - /** - * The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. - * - * @schema io.k8s.api.core.v1.SecurityContext#windowsOptions - */ - readonly windowsOptions?: WindowsSecurityContextOptions; - -} - -/** - * Converts an object of type 'SecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SecurityContext(obj: SecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'capabilities': toJson_Capabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_SeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_SeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_WindowsSecurityContextOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * volumeDevice describes a mapping of a raw block device within a container. - * - * @schema io.k8s.api.core.v1.VolumeDevice - */ -export interface VolumeDevice { - /** - * devicePath is the path inside of the container that the device will be mapped to. - * - * @schema io.k8s.api.core.v1.VolumeDevice#devicePath - */ - readonly devicePath: string; - - /** - * name must match the name of a persistentVolumeClaim in the pod - * - * @schema io.k8s.api.core.v1.VolumeDevice#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'VolumeDevice' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeDevice(obj: VolumeDevice | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeMount describes a mounting of a Volume within a container. - * - * @schema io.k8s.api.core.v1.VolumeMount - */ -export interface VolumeMount { - /** - * Path within the container at which the volume should be mounted. Must not contain ':'. - * - * @schema io.k8s.api.core.v1.VolumeMount#mountPath - */ - readonly mountPath: string; - - /** - * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * - * @schema io.k8s.api.core.v1.VolumeMount#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * This must match the Name of a Volume. - * - * @schema io.k8s.api.core.v1.VolumeMount#name - */ - readonly name: string; - - /** - * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.VolumeMount#readOnly - */ - readonly readOnly?: boolean; - - /** - * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * - * @default volume's root). - * @schema io.k8s.api.core.v1.VolumeMount#subPath - */ - readonly subPath?: string; - - /** - * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - * - * @default volume's root). SubPathExpr and SubPath are mutually exclusive. - * @schema io.k8s.api.core.v1.VolumeMount#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'VolumeMount' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeMount(obj: VolumeMount | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodDNSConfigOption defines DNS resolver options of a pod. - * - * @schema io.k8s.api.core.v1.PodDNSConfigOption - */ -export interface PodDnsConfigOption { - /** - * Required. - * - * @schema io.k8s.api.core.v1.PodDNSConfigOption#name - */ - readonly name?: string; - - /** - * @schema io.k8s.api.core.v1.PodDNSConfigOption#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'PodDnsConfigOption' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodDnsConfigOption(obj: PodDnsConfigOption | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClaimSource describes a reference to a ResourceClaim. - * - * Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. - * - * @schema io.k8s.api.core.v1.ClaimSource - */ -export interface ClaimSource { - /** - * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. - * - * @schema io.k8s.api.core.v1.ClaimSource#resourceClaimName - */ - readonly resourceClaimName?: string; - - /** - * ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. - * - * The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. - * - * This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. - * - * @schema io.k8s.api.core.v1.ClaimSource#resourceClaimTemplateName - */ - readonly resourceClaimTemplateName?: string; - -} - -/** - * Converts an object of type 'ClaimSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ClaimSource(obj: ClaimSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceClaimName': obj.resourceClaimName, - 'resourceClaimTemplateName': obj.resourceClaimTemplateName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SELinuxOptions are the labels to be applied to the container - * - * @schema io.k8s.api.core.v1.SELinuxOptions - */ -export interface SeLinuxOptions { - /** - * Level is SELinux level label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#level - */ - readonly level?: string; - - /** - * Role is a SELinux role label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#role - */ - readonly role?: string; - - /** - * Type is a SELinux type label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#type - */ - readonly type?: string; - - /** - * User is a SELinux user label that applies to the container. - * - * @schema io.k8s.api.core.v1.SELinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'SeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SeLinuxOptions(obj: SeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. - * - * @schema io.k8s.api.core.v1.SeccompProfile - */ -export interface SeccompProfile { - /** - * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. - * - * @schema io.k8s.api.core.v1.SeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * type indicates which kind of seccomp profile will be applied. Valid options are: - * - * Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. - * - * @schema io.k8s.api.core.v1.SeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'SeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SeccompProfile(obj: SeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Sysctl defines a kernel parameter to be set - * - * @schema io.k8s.api.core.v1.Sysctl - */ -export interface Sysctl { - /** - * Name of a property to set - * - * @schema io.k8s.api.core.v1.Sysctl#name - */ - readonly name: string; - - /** - * Value of a property to set - * - * @schema io.k8s.api.core.v1.Sysctl#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'Sysctl' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Sysctl(obj: Sysctl | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * WindowsSecurityContextOptions contain Windows-specific options and credentials. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions - */ -export interface WindowsSecurityContextOptions { - /** - * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * GMSACredentialSpecName is the name of the GMSA credential spec to use. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. - * - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * - * @default the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'WindowsSecurityContextOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_WindowsSecurityContextOptions(obj: WindowsSecurityContextOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource - */ -export interface AzureFileVolumeSource { - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretName is the name of secret that contains Azure Storage Account Name and Key - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource#secretName - */ - readonly secretName: string; - - /** - * shareName is the azure share Name - * - * @schema io.k8s.api.core.v1.AzureFileVolumeSource#shareName - */ - readonly shareName: string; - -} - -/** - * Converts an object of type 'AzureFileVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_AzureFileVolumeSource(obj: AzureFileVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'readOnly': obj.readOnly, - 'secretName': obj.secretName, - 'shareName': obj.shareName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource - */ -export interface CephFsVolumeSource { - /** - * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#monitors - */ - readonly monitors: string[]; - - /** - * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#path - */ - readonly path?: string; - - /** - * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.CephFSVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretFile - */ - readonly secretFile?: string; - - /** - * secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - - /** - * user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.CephFSVolumeSource#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'CephFsVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CephFsVolumeSource(obj: CephFsVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'monitors': obj.monitors?.map(y => y), - 'path': obj.path, - 'readOnly': obj.readOnly, - 'secretFile': obj.secretFile, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.CinderVolumeSource - */ -export interface CinderVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is optional: points to a secret object containing parameters used to connect to OpenStack. - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - - /** - * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * - * @schema io.k8s.api.core.v1.CinderVolumeSource#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'CinderVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CinderVolumeSource(obj: CinderVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Adapts a ConfigMap into a volume. - * - * The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource - */ -export interface ConfigMapVolumeSource { - /** - * defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#defaultMode - */ - readonly defaultMode?: number; - - /** - * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#items - */ - readonly items?: KeyToPath[]; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#name - */ - readonly name?: string; - - /** - * optional specify whether the ConfigMap or its keys must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ConfigMapVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ConfigMapVolumeSource(obj: ConfigMapVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_KeyToPath(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a source location of a volume to mount, managed by an external CSI driver - * - * @schema io.k8s.api.core.v1.CSIVolumeSource - */ -export interface CsiVolumeSource { - /** - * driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#driver - */ - readonly driver: string; - - /** - * fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#nodePublishSecretRef - */ - readonly nodePublishSecretRef?: LocalObjectReference; - - /** - * readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). - * - * @default false (read/write). - * @schema io.k8s.api.core.v1.CSIVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - * - * @schema io.k8s.api.core.v1.CSIVolumeSource#volumeAttributes - */ - readonly volumeAttributes?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'CsiVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CsiVolumeSource(obj: CsiVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'nodePublishSecretRef': toJson_LocalObjectReference(obj.nodePublishSecretRef), - 'readOnly': obj.readOnly, - 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource - */ -export interface DownwardApiVolumeSource { - /** - * Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#defaultMode - */ - readonly defaultMode?: number; - - /** - * Items is a list of downward API volume file - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#items - */ - readonly items?: DownwardApiVolumeFile[]; - -} - -/** - * Converts an object of type 'DownwardApiVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DownwardApiVolumeSource(obj: DownwardApiVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_DownwardApiVolumeFile(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.EmptyDirVolumeSource - */ -export interface EmptyDirVolumeSource { - /** - * medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * - * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#medium - */ - readonly medium?: string; - - /** - * sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * - * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#sizeLimit - */ - readonly sizeLimit?: Quantity; - -} - -/** - * Converts an object of type 'EmptyDirVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EmptyDirVolumeSource(obj: EmptyDirVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'medium': obj.medium, - 'sizeLimit': obj.sizeLimit?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents an ephemeral volume that is handled by a normal storage driver. - * - * @schema io.k8s.api.core.v1.EphemeralVolumeSource - */ -export interface EphemeralVolumeSource { - /** - * Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long). - * - * An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster. - * - * This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created. - * - * Required, must not be nil. - * - * @schema io.k8s.api.core.v1.EphemeralVolumeSource#volumeClaimTemplate - */ - readonly volumeClaimTemplate?: PersistentVolumeClaimTemplate; - -} - -/** - * Converts an object of type 'EphemeralVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EphemeralVolumeSource(obj: EphemeralVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'volumeClaimTemplate': toJson_PersistentVolumeClaimTemplate(obj.volumeClaimTemplate), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource - */ -export interface FlexVolumeSource { - /** - * driver is the name of the driver to use for this volume. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#driver - */ - readonly driver: string; - - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * options is Optional: this field holds extra command options if any. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#options - */ - readonly options?: { [key: string]: string }; - - /** - * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - * - * @schema io.k8s.api.core.v1.FlexVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - -} - -/** - * Converts an object of type 'FlexVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_FlexVolumeSource(obj: FlexVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'readOnly': obj.readOnly, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. - * - * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource - */ -export interface GitRepoVolumeSource { - /** - * directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource#directory - */ - readonly directory?: string; - - /** - * repository is the URL - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource#repository - */ - readonly repository: string; - - /** - * revision is the commit hash for the specified revision. - * - * @schema io.k8s.api.core.v1.GitRepoVolumeSource#revision - */ - readonly revision?: string; - -} - -/** - * Converts an object of type 'GitRepoVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_GitRepoVolumeSource(obj: GitRepoVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'directory': obj.directory, - 'repository': obj.repository, - 'revision': obj.revision, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. - * - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource - */ -export interface GlusterfsVolumeSource { - /** - * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#endpoints - */ - readonly endpoints: string; - - /** - * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#path - */ - readonly path: string; - - /** - * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * - * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'GlusterfsVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_GlusterfsVolumeSource(obj: GlusterfsVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'endpoints': obj.endpoints, - 'path': obj.path, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource - */ -export interface IscsiVolumeSource { - /** - * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthDiscovery - */ - readonly chapAuthDiscovery?: boolean; - - /** - * chapAuthSession defines whether support iSCSI Session CHAP authentication - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthSession - */ - readonly chapAuthSession?: boolean; - - /** - * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#initiatorName - */ - readonly initiatorName?: string; - - /** - * iqn is the target iSCSI Qualified Name. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iqn - */ - readonly iqn: string; - - /** - * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * - * @default default' (tcp). - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iscsiInterface - */ - readonly iscsiInterface?: string; - - /** - * lun represents iSCSI Target Lun number. - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#lun - */ - readonly lun: number; - - /** - * portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#portals - */ - readonly portals?: string[]; - - /** - * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * - * @default false. - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is the CHAP Secret for iSCSI target and initiator authentication - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - - /** - * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * - * @schema io.k8s.api.core.v1.ISCSIVolumeSource#targetPortal - */ - readonly targetPortal: string; - -} - -/** - * Converts an object of type 'IscsiVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IscsiVolumeSource(obj: IscsiVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'chapAuthDiscovery': obj.chapAuthDiscovery, - 'chapAuthSession': obj.chapAuthSession, - 'fsType': obj.fsType, - 'initiatorName': obj.initiatorName, - 'iqn': obj.iqn, - 'iscsiInterface': obj.iscsiInterface, - 'lun': obj.lun, - 'portals': obj.portals?.map(y => y), - 'readOnly': obj.readOnly, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - 'targetPortal': obj.targetPortal, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource - */ -export interface PersistentVolumeClaimVolumeSource { - /** - * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#claimName - */ - readonly claimName: string; - - /** - * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'PersistentVolumeClaimVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PersistentVolumeClaimVolumeSource(obj: PersistentVolumeClaimVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claimName': obj.claimName, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a projected volume source - * - * @schema io.k8s.api.core.v1.ProjectedVolumeSource - */ -export interface ProjectedVolumeSource { - /** - * defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @schema io.k8s.api.core.v1.ProjectedVolumeSource#defaultMode - */ - readonly defaultMode?: number; - - /** - * sources is the list of volume projections - * - * @schema io.k8s.api.core.v1.ProjectedVolumeSource#sources - */ - readonly sources?: VolumeProjection[]; - -} - -/** - * Converts an object of type 'ProjectedVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ProjectedVolumeSource(obj: ProjectedVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'sources': obj.sources?.map(y => toJson_VolumeProjection(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.RBDVolumeSource - */ -export interface RbdVolumeSource { - /** - * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * - * @schema io.k8s.api.core.v1.RBDVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDVolumeSource#image - */ - readonly image: string; - - /** - * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#keyring - */ - readonly keyring?: string; - - /** - * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @schema io.k8s.api.core.v1.RBDVolumeSource#monitors - */ - readonly monitors: string[]; - - /** - * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#pool - */ - readonly pool?: string; - - /** - * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - - /** - * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * - * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * @schema io.k8s.api.core.v1.RBDVolumeSource#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'RbdVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_RbdVolumeSource(obj: RbdVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'image': obj.image, - 'keyring': obj.keyring, - 'monitors': obj.monitors?.map(y => y), - 'pool': obj.pool, - 'readOnly': obj.readOnly, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ScaleIOVolumeSource represents a persistent ScaleIO volume - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource - */ -export interface ScaleIoVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * - * @default xfs". - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * gateway is the host address of the ScaleIO API Gateway. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#gateway - */ - readonly gateway: string; - - /** - * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#protectionDomain - */ - readonly protectionDomain?: string; - - /** - * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#secretRef - */ - readonly secretRef: LocalObjectReference; - - /** - * sslEnabled Flag enable/disable SSL communication with Gateway, default false - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#sslEnabled - */ - readonly sslEnabled?: boolean; - - /** - * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * - * @default ThinProvisioned. - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storageMode - */ - readonly storageMode?: string; - - /** - * storagePool is the ScaleIO Storage Pool associated with the protection domain. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storagePool - */ - readonly storagePool?: string; - - /** - * system is the name of the storage system as configured in ScaleIO. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#system - */ - readonly system: string; - - /** - * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. - * - * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'ScaleIoVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ScaleIoVolumeSource(obj: ScaleIoVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'gateway': obj.gateway, - 'protectionDomain': obj.protectionDomain, - 'readOnly': obj.readOnly, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - 'sslEnabled': obj.sslEnabled, - 'storageMode': obj.storageMode, - 'storagePool': obj.storagePool, - 'system': obj.system, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Adapts a Secret into a volume. - * - * The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. - * - * @schema io.k8s.api.core.v1.SecretVolumeSource - */ -export interface SecretVolumeSource { - /** - * defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * @schema io.k8s.api.core.v1.SecretVolumeSource#defaultMode - */ - readonly defaultMode?: number; - - /** - * items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.SecretVolumeSource#items - */ - readonly items?: KeyToPath[]; - - /** - * optional field specify whether the Secret or its keys must be defined - * - * @schema io.k8s.api.core.v1.SecretVolumeSource#optional - */ - readonly optional?: boolean; - - /** - * secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * - * @schema io.k8s.api.core.v1.SecretVolumeSource#secretName - */ - readonly secretName?: string; - -} - -/** - * Converts an object of type 'SecretVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SecretVolumeSource(obj: SecretVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_KeyToPath(y)), - 'optional': obj.optional, - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents a StorageOS persistent volume resource. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource - */ -export interface StorageOsVolumeSource { - /** - * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#fsType - */ - readonly fsType?: string; - - /** - * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#readOnly - */ - readonly readOnly?: boolean; - - /** - * secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#secretRef - */ - readonly secretRef?: LocalObjectReference; - - /** - * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeName - */ - readonly volumeName?: string; - - /** - * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - * - * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeNamespace - */ - readonly volumeNamespace?: string; - -} - -/** - * Converts an object of type 'StorageOsVolumeSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_StorageOsVolumeSource(obj: StorageOsVolumeSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_LocalObjectReference(obj.secretRef), - 'volumeName': obj.volumeName, - 'volumeNamespace': obj.volumeNamespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement - */ -export interface ScopedResourceSelectorRequirement { - /** - * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#operator - */ - readonly operator: string; - - /** - * The name of the scope that the selector applies to. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#scopeName - */ - readonly scopeName: string; - - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - * - * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'ScopedResourceSelectorRequirement' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ScopedResourceSelectorRequirement(obj: ScopedResourceSelectorRequirement | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'operator': obj.operator, - 'scopeName': obj.scopeName, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClientIPConfig represents the configurations of Client IP based session affinity. - * - * @schema io.k8s.api.core.v1.ClientIPConfig - */ -export interface ClientIpConfig { - /** - * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). - * - * @schema io.k8s.api.core.v1.ClientIPConfig#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'ClientIpConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ClientIpConfig(obj: ClientIpConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ForZone provides information about which zones should consume this endpoint. - * - * @schema io.k8s.api.discovery.v1.ForZone - */ -export interface ForZone { - /** - * name represents the name of the zone. - * - * @schema io.k8s.api.discovery.v1.ForZone#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'ForZone' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ForZone(obj: ForZone | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. - * - * @schema io.k8s.api.flowcontrol.v1.NonResourcePolicyRule - */ -export interface NonResourcePolicyRule { - /** - * `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - * - "/healthz" is legal - * - "/hea*" is illegal - * - "/hea" is legal but matches nothing - * - "/hea/*" also matches nothing - * - "/healthz/*" matches all per-component health checks. - * "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1.NonResourcePolicyRule#nonResourceURLs - */ - readonly nonResourceUrLs: string[]; - - /** - * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1.NonResourcePolicyRule#verbs - */ - readonly verbs: string[]; - -} - -/** - * Converts an object of type 'NonResourcePolicyRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NonResourcePolicyRule(obj: NonResourcePolicyRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), - 'verbs': obj.verbs?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. - * - * @schema io.k8s.api.flowcontrol.v1.ResourcePolicyRule - */ -export interface ResourcePolicyRule { - /** - * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1.ResourcePolicyRule#apiGroups - */ - readonly apiGroups: string[]; - - /** - * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * - * @schema io.k8s.api.flowcontrol.v1.ResourcePolicyRule#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * - * @schema io.k8s.api.flowcontrol.v1.ResourcePolicyRule#namespaces - */ - readonly namespaces?: string[]; - - /** - * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1.ResourcePolicyRule#resources - */ - readonly resources: string[]; - - /** - * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1.ResourcePolicyRule#verbs - */ - readonly verbs: string[]; - -} - -/** - * Converts an object of type 'ResourcePolicyRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourcePolicyRule(obj: ResourcePolicyRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroups': obj.apiGroups?.map(y => y), - 'clusterScope': obj.clusterScope, - 'namespaces': obj.namespaces?.map(y => y), - 'resources': obj.resources?.map(y => y), - 'verbs': obj.verbs?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitResponse defines how to handle requests that can not be executed right now. - * - * @schema io.k8s.api.flowcontrol.v1.LimitResponse - */ -export interface LimitResponse { - /** - * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * - * @schema io.k8s.api.flowcontrol.v1.LimitResponse#queuing - */ - readonly queuing?: QueuingConfiguration; - - /** - * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - * - * @schema io.k8s.api.flowcontrol.v1.LimitResponse#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'LimitResponse' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LimitResponse(obj: LimitResponse | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'queuing': toJson_QueuingConfiguration(obj.queuing), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. - * - * @schema io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule - */ -export interface NonResourcePolicyRuleV1Beta3 { - /** - * `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - * - "/healthz" is legal - * - "/hea*" is illegal - * - "/hea" is legal but matches nothing - * - "/hea/*" also matches nothing - * - "/healthz/*" matches all per-component health checks. - * "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule#nonResourceURLs - */ - readonly nonResourceUrLs: string[]; - - /** - * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule#verbs - */ - readonly verbs: string[]; - -} - -/** - * Converts an object of type 'NonResourcePolicyRuleV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NonResourcePolicyRuleV1Beta3(obj: NonResourcePolicyRuleV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), - 'verbs': obj.verbs?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule - */ -export interface ResourcePolicyRuleV1Beta3 { - /** - * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule#apiGroups - */ - readonly apiGroups: string[]; - - /** - * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule#clusterScope - */ - readonly clusterScope?: boolean; - - /** - * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule#namespaces - */ - readonly namespaces?: string[]; - - /** - * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule#resources - */ - readonly resources: string[]; - - /** - * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule#verbs - */ - readonly verbs: string[]; - -} - -/** - * Converts an object of type 'ResourcePolicyRuleV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourcePolicyRuleV1Beta3(obj: ResourcePolicyRuleV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroups': obj.apiGroups?.map(y => y), - 'clusterScope': obj.clusterScope, - 'namespaces': obj.namespaces?.map(y => y), - 'resources': obj.resources?.map(y => y), - 'verbs': obj.verbs?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. - * - * @schema io.k8s.api.flowcontrol.v1beta3.Subject - */ -export interface SubjectV1Beta3 { - /** - * `group` matches based on user group name. - * - * @schema io.k8s.api.flowcontrol.v1beta3.Subject#group - */ - readonly group?: GroupSubjectV1Beta3; - - /** - * `kind` indicates which one of the other fields is non-empty. Required - * - * @schema io.k8s.api.flowcontrol.v1beta3.Subject#kind - */ - readonly kind: string; - - /** - * `serviceAccount` matches ServiceAccounts. - * - * @schema io.k8s.api.flowcontrol.v1beta3.Subject#serviceAccount - */ - readonly serviceAccount?: ServiceAccountSubjectV1Beta3; - - /** - * `user` matches based on username. - * - * @schema io.k8s.api.flowcontrol.v1beta3.Subject#user - */ - readonly user?: UserSubjectV1Beta3; - -} - -/** - * Converts an object of type 'SubjectV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SubjectV1Beta3(obj: SubjectV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': toJson_GroupSubjectV1Beta3(obj.group), - 'kind': obj.kind, - 'serviceAccount': toJson_ServiceAccountSubjectV1Beta3(obj.serviceAccount), - 'user': toJson_UserSubjectV1Beta3(obj.user), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LimitResponse defines how to handle requests that can not be executed right now. - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitResponse - */ -export interface LimitResponseV1Beta3 { - /** - * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitResponse#queuing - */ - readonly queuing?: QueuingConfigurationV1Beta3; - - /** - * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.LimitResponse#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'LimitResponseV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LimitResponseV1Beta3(obj: LimitResponseV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'queuing': toJson_QueuingConfigurationV1Beta3(obj.queuing), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IngressServiceBackend references a Kubernetes Service as a Backend. - * - * @schema io.k8s.api.networking.v1.IngressServiceBackend - */ -export interface IngressServiceBackend { - /** - * name is the referenced service. The service must exist in the same namespace as the Ingress object. - * - * @schema io.k8s.api.networking.v1.IngressServiceBackend#name - */ - readonly name: string; - - /** - * port of the referenced service. A port name or port number is required for a IngressServiceBackend. - * - * @schema io.k8s.api.networking.v1.IngressServiceBackend#port - */ - readonly port?: ServiceBackendPort; - -} - -/** - * Converts an object of type 'IngressServiceBackend' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IngressServiceBackend(obj: IngressServiceBackend | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'port': toJson_ServiceBackendPort(obj.port), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. - * - * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue - */ -export interface HttpIngressRuleValue { - /** - * paths is a collection of paths that map requests to backends. - * - * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue#paths - */ - readonly paths: HttpIngressPath[]; - -} - -/** - * Converts an object of type 'HttpIngressRuleValue' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HttpIngressRuleValue(obj: HttpIngressRuleValue | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'paths': obj.paths?.map(y => toJson_HttpIngressPath(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicyPort describes a port to allow traffic on - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort - */ -export interface NetworkPolicyPort { - /** - * endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort#endPort - */ - readonly endPort?: number; - - /** - * port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort#port - */ - readonly port?: IntOrString; - - /** - * protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPort#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'NetworkPolicyPort' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NetworkPolicyPort(obj: NetworkPolicyPort | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'endPort': obj.endPort, - 'port': obj.port?.value, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer - */ -export interface NetworkPolicyPeer { - /** - * ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#ipBlock - */ - readonly ipBlock?: IpBlock; - - /** - * namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - * - * If podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - - /** - * podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - * - * If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace. - * - * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#podSelector - */ - readonly podSelector?: LabelSelector; - -} - -/** - * Converts an object of type 'NetworkPolicyPeer' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NetworkPolicyPeer(obj: NetworkPolicyPeer | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'ipBlock': toJson_IpBlock(obj.ipBlock), - 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), - 'podSelector': toJson_LabelSelector(obj.podSelector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement - */ -export interface NodeSelectorRequirement { - /** - * The label key that the selector applies to. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement#key - */ - readonly key: string; - - /** - * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement#operator - */ - readonly operator: string; - - /** - * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - * - * @schema io.k8s.api.core.v1.NodeSelectorRequirement#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'NodeSelectorRequirement' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_NodeSelectorRequirement(obj: NodeSelectorRequirement | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * VolumeNodeResources is a set of resource limits for scheduling of volumes. - * - * @schema io.k8s.api.storage.v1.VolumeNodeResources - */ -export interface VolumeNodeResources { - /** - * count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. - * - * @schema io.k8s.api.storage.v1.VolumeNodeResources#count - */ - readonly count?: number; - -} - -/** - * Converts an object of type 'VolumeNodeResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeNodeResources(obj: VolumeNodeResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'count': obj.count, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * WebhookConversion describes how to call a conversion webhook - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion - */ -export interface WebhookConversion { - /** - * clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#clientConfig - */ - readonly clientConfig?: WebhookClientConfig; - - /** - * conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#conversionReviewVersions - */ - readonly conversionReviewVersions: string[]; - -} - -/** - * Converts an object of type 'WebhookConversion' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_WebhookConversion(obj: WebhookConversion | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), - 'conversionReviewVersions': obj.conversionReviewVersions?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceColumnDefinition specifies a column for server side printing. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition - */ -export interface CustomResourceColumnDefinition { - /** - * description is a human readable description of this column. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#description - */ - readonly description?: string; - - /** - * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#format - */ - readonly format?: string; - - /** - * jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#jsonPath - */ - readonly jsonPath: string; - - /** - * name is a human readable name for the column. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#name - */ - readonly name: string; - - /** - * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#priority - */ - readonly priority?: number; - - /** - * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'CustomResourceColumnDefinition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceColumnDefinition(obj: CustomResourceColumnDefinition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'description': obj.description, - 'format': obj.format, - 'jsonPath': obj.jsonPath, - 'name': obj.name, - 'priority': obj.priority, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceValidation is a list of validation methods for CustomResources. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation - */ -export interface CustomResourceValidation { - /** - * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation#openAPIV3Schema - */ - readonly openApiv3Schema?: JsonSchemaProps; - -} - -/** - * Converts an object of type 'CustomResourceValidation' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceValidation(obj: CustomResourceValidation | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'openAPIV3Schema': toJson_JsonSchemaProps(obj.openApiv3Schema), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceSubresources defines the status and scale subresources for CustomResources. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources - */ -export interface CustomResourceSubresources { - /** - * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#scale - */ - readonly scale?: CustomResourceSubresourceScale; - - /** - * status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#status - */ - readonly status?: any; - -} - -/** - * Converts an object of type 'CustomResourceSubresources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceSubresources(obj: CustomResourceSubresources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'scale': toJson_CustomResourceSubresourceScale(obj.scale), - 'status': obj.status, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HPAScalingPolicy is a single policy which must hold true for a specified past interval. - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy - */ -export interface HpaScalingPolicyV2 { - /** - * periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#periodSeconds - */ - readonly periodSeconds: number; - - /** - * type is used to specify the scaling policy. - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#type - */ - readonly type: string; - - /** - * value contains the amount of change which is permitted by the policy. It must be greater than zero - * - * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#value - */ - readonly value: number; - -} - -/** - * Converts an object of type 'HpaScalingPolicyV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HpaScalingPolicyV2(obj: HpaScalingPolicyV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'periodSeconds': obj.periodSeconds, - 'type': obj.type, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MetricTarget defines the target value, average value, or average utilization of a specific metric - * - * @schema io.k8s.api.autoscaling.v2.MetricTarget - */ -export interface MetricTargetV2 { - /** - * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type - * - * @schema io.k8s.api.autoscaling.v2.MetricTarget#averageUtilization - */ - readonly averageUtilization?: number; - - /** - * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * - * @schema io.k8s.api.autoscaling.v2.MetricTarget#averageValue - */ - readonly averageValue?: Quantity; - - /** - * type represents whether the metric type is Utilization, Value, or AverageValue - * - * @schema io.k8s.api.autoscaling.v2.MetricTarget#type - */ - readonly type: string; - - /** - * value is the target value of the metric (as a quantity). - * - * @schema io.k8s.api.autoscaling.v2.MetricTarget#value - */ - readonly value?: Quantity; - -} - -/** - * Converts an object of type 'MetricTargetV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MetricTargetV2(obj: MetricTargetV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'averageUtilization': obj.averageUtilization, - 'averageValue': obj.averageValue?.value, - 'type': obj.type, - 'value': obj.value?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * MetricIdentifier defines the name and optionally selector for a metric - * - * @schema io.k8s.api.autoscaling.v2.MetricIdentifier - */ -export interface MetricIdentifierV2 { - /** - * name is the name of the given metric - * - * @schema io.k8s.api.autoscaling.v2.MetricIdentifier#name - */ - readonly name: string; - - /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * - * @schema io.k8s.api.autoscaling.v2.MetricIdentifier#selector - */ - readonly selector?: LabelSelector; - -} - -/** - * Converts an object of type 'MetricIdentifierV2' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_MetricIdentifierV2(obj: MetricIdentifierV2 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'selector': toJson_LabelSelector(obj.selector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement - */ -export interface PodFailurePolicyOnExitCodesRequirement { - /** - * Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#containerName - */ - readonly containerName?: string; - - /** - * Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - * - * - In: the requirement is satisfied if at least one container exit code - * (might be multiple if there are multiple containers not restricted - * by the 'containerName' field) is in the set of specified values. - * - NotIn: the requirement is satisfied if at least one container exit code - * (might be multiple if there are multiple containers not restricted - * by the 'containerName' field) is not in the set of specified values. - * Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#operator - */ - readonly operator: string; - - /** - * Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#values - */ - readonly values: number[]; - -} - -/** - * Converts an object of type 'PodFailurePolicyOnExitCodesRequirement' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodFailurePolicyOnExitCodesRequirement(obj: PodFailurePolicyOnExitCodesRequirement | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern - */ -export interface PodFailurePolicyOnPodConditionsPattern { - /** - * Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. - * - * @default True. - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern#status - */ - readonly status: string; - - /** - * Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. - * - * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'PodFailurePolicyOnPodConditionsPattern' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodFailurePolicyOnPodConditionsPattern(obj: PodFailurePolicyOnPodConditionsPattern | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'status': obj.status, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - * - * @schema io.k8s.api.core.v1.PreferredSchedulingTerm - */ -export interface PreferredSchedulingTerm { - /** - * A node selector term, associated with the corresponding weight. - * - * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#preference - */ - readonly preference: NodeSelectorTerm; - - /** - * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - * - * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'PreferredSchedulingTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PreferredSchedulingTerm(obj: PreferredSchedulingTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_NodeSelectorTerm(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - * - * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm - */ -export interface WeightedPodAffinityTerm { - /** - * Required. A pod affinity term, associated with the corresponding weight. - * - * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#podAffinityTerm - */ - readonly podAffinityTerm: PodAffinityTerm; - - /** - * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - * - * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'WeightedPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_WeightedPodAffinityTerm(obj: WeightedPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_PodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running - * - * @schema io.k8s.api.core.v1.PodAffinityTerm - */ -export interface PodAffinityTerm { - /** - * A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#labelSelector - */ - readonly labelSelector?: LabelSelector; - - /** - * MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: LabelSelector; - - /** - * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - * - * @schema io.k8s.api.core.v1.PodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'PodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PodAffinityTerm(obj: PodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_LabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * EnvVarSource represents a source for the value of an EnvVar. - * - * @schema io.k8s.api.core.v1.EnvVarSource - */ -export interface EnvVarSource { - /** - * Selects a key of a ConfigMap. - * - * @schema io.k8s.api.core.v1.EnvVarSource#configMapKeyRef - */ - readonly configMapKeyRef?: ConfigMapKeySelector; - - /** - * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. - * - * @schema io.k8s.api.core.v1.EnvVarSource#fieldRef - */ - readonly fieldRef?: ObjectFieldSelector; - - /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * - * @schema io.k8s.api.core.v1.EnvVarSource#resourceFieldRef - */ - readonly resourceFieldRef?: ResourceFieldSelector; - - /** - * Selects a key of a secret in the pod's namespace - * - * @schema io.k8s.api.core.v1.EnvVarSource#secretKeyRef - */ - readonly secretKeyRef?: SecretKeySelector; - -} - -/** - * Converts an object of type 'EnvVarSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_EnvVarSource(obj: EnvVarSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_ConfigMapKeySelector(obj.configMapKeyRef), - 'fieldRef': toJson_ObjectFieldSelector(obj.fieldRef), - 'resourceFieldRef': toJson_ResourceFieldSelector(obj.resourceFieldRef), - 'secretKeyRef': toJson_SecretKeySelector(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. - * - * The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. - * - * @schema io.k8s.api.core.v1.ConfigMapEnvSource - */ -export interface ConfigMapEnvSource { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapEnvSource#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapEnvSource#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ConfigMapEnvSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ConfigMapEnvSource(obj: ConfigMapEnvSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecretEnvSource selects a Secret to populate the environment variables with. - * - * The contents of the target Secret's Data field will represent the key-value pairs as environment variables. - * - * @schema io.k8s.api.core.v1.SecretEnvSource - */ -export interface SecretEnvSource { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.SecretEnvSource#name - */ - readonly name?: string; - - /** - * Specify whether the Secret must be defined - * - * @schema io.k8s.api.core.v1.SecretEnvSource#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'SecretEnvSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SecretEnvSource(obj: SecretEnvSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. - * - * @schema io.k8s.api.core.v1.LifecycleHandler - */ -export interface LifecycleHandler { - /** - * Exec specifies the action to take. - * - * @schema io.k8s.api.core.v1.LifecycleHandler#exec - */ - readonly exec?: ExecAction; - - /** - * HTTPGet specifies the http request to perform. - * - * @schema io.k8s.api.core.v1.LifecycleHandler#httpGet - */ - readonly httpGet?: HttpGetAction; - - /** - * Sleep represents the duration that the container should sleep before being terminated. - * - * @schema io.k8s.api.core.v1.LifecycleHandler#sleep - */ - readonly sleep?: SleepAction; - - /** - * Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified. - * - * @schema io.k8s.api.core.v1.LifecycleHandler#tcpSocket - */ - readonly tcpSocket?: TcpSocketAction; - -} - -/** - * Converts an object of type 'LifecycleHandler' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_LifecycleHandler(obj: LifecycleHandler | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_ExecAction(obj.exec), - 'httpGet': toJson_HttpGetAction(obj.httpGet), - 'sleep': toJson_SleepAction(obj.sleep), - 'tcpSocket': toJson_TcpSocketAction(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ExecAction describes a "run in container" action. - * - * @schema io.k8s.api.core.v1.ExecAction - */ -export interface ExecAction { - /** - * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - * - * @schema io.k8s.api.core.v1.ExecAction#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'ExecAction' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ExecAction(obj: ExecAction | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema io.k8s.api.core.v1.GRPCAction - */ -export interface GrpcAction { - /** - * Port number of the gRPC service. Number must be in the range 1 to 65535. - * - * @schema io.k8s.api.core.v1.GRPCAction#port - */ - readonly port: number; - - /** - * Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). - * - * If this is not specified, the default behavior is defined by gRPC. - * - * @schema io.k8s.api.core.v1.GRPCAction#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'GrpcAction' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_GrpcAction(obj: GrpcAction | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HTTPGetAction describes an action based on HTTP Get requests. - * - * @schema io.k8s.api.core.v1.HTTPGetAction - */ -export interface HttpGetAction { - /** - * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#host - */ - readonly host?: string; - - /** - * Custom headers to set in the request. HTTP allows repeated headers. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#httpHeaders - */ - readonly httpHeaders?: HttpHeader[]; - - /** - * Path to access on the HTTP server. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#path - */ - readonly path?: string; - - /** - * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * - * @schema io.k8s.api.core.v1.HTTPGetAction#port - */ - readonly port: IntOrString; - - /** - * Scheme to use for connecting to the host. Defaults to HTTP. - * - * @default HTTP. - * @schema io.k8s.api.core.v1.HTTPGetAction#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'HttpGetAction' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HttpGetAction(obj: HttpGetAction | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_HttpHeader(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * TCPSocketAction describes an action based on opening a socket - * - * @schema io.k8s.api.core.v1.TCPSocketAction - */ -export interface TcpSocketAction { - /** - * Optional: Host name to connect to, defaults to the pod IP. - * - * @schema io.k8s.api.core.v1.TCPSocketAction#host - */ - readonly host?: string; - - /** - * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * - * @schema io.k8s.api.core.v1.TCPSocketAction#port - */ - readonly port: IntOrString; - -} - -/** - * Converts an object of type 'TcpSocketAction' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_TcpSocketAction(obj: TcpSocketAction | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceClaim references one entry in PodSpec.ResourceClaims. - * - * @schema io.k8s.api.core.v1.ResourceClaim - */ -export interface ResourceClaim { - /** - * Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. - * - * @schema io.k8s.api.core.v1.ResourceClaim#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'ResourceClaim' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceClaim(obj: ResourceClaim | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Adds and removes POSIX capabilities from running containers. - * - * @schema io.k8s.api.core.v1.Capabilities - */ -export interface Capabilities { - /** - * Added capabilities - * - * @schema io.k8s.api.core.v1.Capabilities#add - */ - readonly add?: string[]; - - /** - * Removed capabilities - * - * @schema io.k8s.api.core.v1.Capabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'Capabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_Capabilities(obj: Capabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Maps a string key to a path within a volume. - * - * @schema io.k8s.api.core.v1.KeyToPath - */ -export interface KeyToPath { - /** - * key is the key to project. - * - * @schema io.k8s.api.core.v1.KeyToPath#key - */ - readonly key: string; - - /** - * mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @schema io.k8s.api.core.v1.KeyToPath#mode - */ - readonly mode?: number; - - /** - * path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - * - * @schema io.k8s.api.core.v1.KeyToPath#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'KeyToPath' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_KeyToPath(obj: KeyToPath | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * DownwardAPIVolumeFile represents information to create the file containing the pod field - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile - */ -export interface DownwardApiVolumeFile { - /** - * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#fieldRef - */ - readonly fieldRef?: ObjectFieldSelector; - - /** - * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#mode - */ - readonly mode?: number; - - /** - * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#path - */ - readonly path: string; - - /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - * - * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#resourceFieldRef - */ - readonly resourceFieldRef?: ResourceFieldSelector; - -} - -/** - * Converts an object of type 'DownwardApiVolumeFile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DownwardApiVolumeFile(obj: DownwardApiVolumeFile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_ObjectFieldSelector(obj.fieldRef), - 'mode': obj.mode, - 'path': obj.path, - 'resourceFieldRef': toJson_ResourceFieldSelector(obj.resourceFieldRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate - */ -export interface PersistentVolumeClaimTemplate { - /** - * May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#metadata - */ - readonly metadata?: ObjectMeta; - - /** - * The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here. - * - * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#spec - */ - readonly spec: PersistentVolumeClaimSpec; - -} - -/** - * Converts an object of type 'PersistentVolumeClaimTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_PersistentVolumeClaimTemplate(obj: PersistentVolumeClaimTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_ObjectMeta(obj.metadata), - 'spec': toJson_PersistentVolumeClaimSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Projection that may be projected along with other supported volume types - * - * @schema io.k8s.api.core.v1.VolumeProjection - */ -export interface VolumeProjection { - /** - * ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file. - * - * Alpha, gated by the ClusterTrustBundleProjection feature gate. - * - * ClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector. - * - * Kubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time. - * - * @schema io.k8s.api.core.v1.VolumeProjection#clusterTrustBundle - */ - readonly clusterTrustBundle?: ClusterTrustBundleProjection; - - /** - * configMap information about the configMap data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#configMap - */ - readonly configMap?: ConfigMapProjection; - - /** - * downwardAPI information about the downwardAPI data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#downwardAPI - */ - readonly downwardApi?: DownwardApiProjection; - - /** - * secret information about the secret data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#secret - */ - readonly secret?: SecretProjection; - - /** - * serviceAccountToken is information about the serviceAccountToken data to project - * - * @schema io.k8s.api.core.v1.VolumeProjection#serviceAccountToken - */ - readonly serviceAccountToken?: ServiceAccountTokenProjection; - -} - -/** - * Converts an object of type 'VolumeProjection' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_VolumeProjection(obj: VolumeProjection | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterTrustBundle': toJson_ClusterTrustBundleProjection(obj.clusterTrustBundle), - 'configMap': toJson_ConfigMapProjection(obj.configMap), - 'downwardAPI': toJson_DownwardApiProjection(obj.downwardApi), - 'secret': toJson_SecretProjection(obj.secret), - 'serviceAccountToken': toJson_ServiceAccountTokenProjection(obj.serviceAccountToken), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * QueuingConfiguration holds the configuration parameters for queuing - * - * @schema io.k8s.api.flowcontrol.v1.QueuingConfiguration - */ -export interface QueuingConfiguration { - /** - * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * - * @schema io.k8s.api.flowcontrol.v1.QueuingConfiguration#handSize - */ - readonly handSize?: number; - - /** - * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * - * @schema io.k8s.api.flowcontrol.v1.QueuingConfiguration#queueLengthLimit - */ - readonly queueLengthLimit?: number; - - /** - * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - * - * @schema io.k8s.api.flowcontrol.v1.QueuingConfiguration#queues - */ - readonly queues?: number; - -} - -/** - * Converts an object of type 'QueuingConfiguration' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_QueuingConfiguration(obj: QueuingConfiguration | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'handSize': obj.handSize, - 'queueLengthLimit': obj.queueLengthLimit, - 'queues': obj.queues, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * GroupSubject holds detailed information for group-kind subject. - * - * @schema io.k8s.api.flowcontrol.v1beta3.GroupSubject - */ -export interface GroupSubjectV1Beta3 { - /** - * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.GroupSubject#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'GroupSubjectV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_GroupSubjectV1Beta3(obj: GroupSubjectV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceAccountSubject holds detailed information for service-account-kind subject. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject - */ -export interface ServiceAccountSubjectV1Beta3 { - /** - * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject#name - */ - readonly name: string; - - /** - * `namespace` is the namespace of matching ServiceAccount objects. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject#namespace - */ - readonly namespace: string; - -} - -/** - * Converts an object of type 'ServiceAccountSubjectV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceAccountSubjectV1Beta3(obj: ServiceAccountSubjectV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * UserSubject holds detailed information for user-kind subject. - * - * @schema io.k8s.api.flowcontrol.v1beta3.UserSubject - */ -export interface UserSubjectV1Beta3 { - /** - * `name` is the username that matches, or "*" to match all usernames. Required. - * - * @schema io.k8s.api.flowcontrol.v1beta3.UserSubject#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'UserSubjectV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_UserSubjectV1Beta3(obj: UserSubjectV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * QueuingConfiguration holds the configuration parameters for queuing - * - * @schema io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration - */ -export interface QueuingConfigurationV1Beta3 { - /** - * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * - * @schema io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration#handSize - */ - readonly handSize?: number; - - /** - * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * - * @schema io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration#queueLengthLimit - */ - readonly queueLengthLimit?: number; - - /** - * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - * - * @schema io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration#queues - */ - readonly queues?: number; - -} - -/** - * Converts an object of type 'QueuingConfigurationV1Beta3' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_QueuingConfigurationV1Beta3(obj: QueuingConfigurationV1Beta3 | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'handSize': obj.handSize, - 'queueLengthLimit': obj.queueLengthLimit, - 'queues': obj.queues, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceBackendPort is the service port being referenced. - * - * @schema io.k8s.api.networking.v1.ServiceBackendPort - */ -export interface ServiceBackendPort { - /** - * name is the name of the port on the Service. This is a mutually exclusive setting with "Number". - * - * @schema io.k8s.api.networking.v1.ServiceBackendPort#name - */ - readonly name?: string; - - /** - * number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". - * - * @schema io.k8s.api.networking.v1.ServiceBackendPort#number - */ - readonly number?: number; - -} - -/** - * Converts an object of type 'ServiceBackendPort' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceBackendPort(obj: ServiceBackendPort | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'number': obj.number, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath - */ -export interface HttpIngressPath { - /** - * backend defines the referenced service endpoint to which the traffic will be forwarded to. - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath#backend - */ - readonly backend: IngressBackend; - - /** - * path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath#path - */ - readonly path?: string; - - /** - * pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - * done on a path element by element basis. A path element refers is the - * list of labels in the path split by the '/' separator. A request is a - * match for path p if every p is an element-wise prefix of p of the - * request path. Note that if the last element of the path is a substring - * of the last element in request path, it is not a match (e.g. /foo/bar - * matches /foo/bar/baz, but does not match /foo/barbaz). - * * ImplementationSpecific: Interpretation of the Path matching is up to - * the IngressClass. Implementations can treat this as a separate PathType - * or treat it identically to Prefix or Exact path types. - * Implementations are required to support all path types. - * - * @schema io.k8s.api.networking.v1.HTTPIngressPath#pathType - */ - readonly pathType: string; - -} - -/** - * Converts an object of type 'HttpIngressPath' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HttpIngressPath(obj: HttpIngressPath | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'backend': toJson_IngressBackend(obj.backend), - 'path': obj.path, - 'pathType': obj.pathType, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. - * - * @schema io.k8s.api.networking.v1.IPBlock - */ -export interface IpBlock { - /** - * cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" - * - * @schema io.k8s.api.networking.v1.IPBlock#cidr - */ - readonly cidr: string; - - /** - * except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range - * - * @schema io.k8s.api.networking.v1.IPBlock#except - */ - readonly except?: string[]; - -} - -/** - * Converts an object of type 'IpBlock' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_IpBlock(obj: IpBlock | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cidr': obj.cidr, - 'except': obj.except?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps - */ -export interface JsonSchemaProps { - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$ref - */ - readonly ref?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$schema - */ - readonly schema?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalItems - */ - readonly additionalItems?: any; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalProperties - */ - readonly additionalProperties?: any; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#allOf - */ - readonly allOf?: JsonSchemaProps[]; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#anyOf - */ - readonly anyOf?: JsonSchemaProps[]; - - /** - * default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#default - */ - readonly default?: any; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#definitions - */ - readonly definitions?: { [key: string]: JsonSchemaProps }; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#dependencies - */ - readonly dependencies?: { [key: string]: any }; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#description - */ - readonly description?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#enum - */ - readonly enum?: any[]; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#example - */ - readonly example?: any; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMaximum - */ - readonly exclusiveMaximum?: boolean; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMinimum - */ - readonly exclusiveMinimum?: boolean; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#externalDocs - */ - readonly externalDocs?: ExternalDocumentation; - - /** - * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - * - * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#format - */ - readonly format?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#id - */ - readonly id?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#items - */ - readonly items?: any; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxItems - */ - readonly maxItems?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxLength - */ - readonly maxLength?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxProperties - */ - readonly maxProperties?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maximum - */ - readonly maximum?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minItems - */ - readonly minItems?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minLength - */ - readonly minLength?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minProperties - */ - readonly minProperties?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minimum - */ - readonly minimum?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#multipleOf - */ - readonly multipleOf?: number; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#not - */ - readonly not?: JsonSchemaProps; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#nullable - */ - readonly nullable?: boolean; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#oneOf - */ - readonly oneOf?: JsonSchemaProps[]; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#pattern - */ - readonly pattern?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#patternProperties - */ - readonly patternProperties?: { [key: string]: JsonSchemaProps }; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#properties - */ - readonly properties?: { [key: string]: JsonSchemaProps }; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#required - */ - readonly required?: string[]; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#title - */ - readonly title?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#type - */ - readonly type?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#uniqueItems - */ - readonly uniqueItems?: boolean; - - /** - * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-embedded-resource - */ - readonly xKubernetesEmbeddedResource?: boolean; - - /** - * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - * - * 1) anyOf: - * - type: integer - * - type: string - * 2) allOf: - * - anyOf: - * - type: integer - * - type: string - * - ... zero or more - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-int-or-string - */ - readonly xKubernetesIntOrString?: boolean; - - /** - * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - * - * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - * - * The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-map-keys - */ - readonly xKubernetesListMapKeys?: string[]; - - /** - * x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - * - * 1) `atomic`: the list is treated as a single entity, like a scalar. - * Atomic lists will be entirely replaced when updated. This extension - * may be used on any type of list (struct, scalar, ...). - * 2) `set`: - * Sets are lists that must not have multiple items with the same value. Each - * value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - * array with x-kubernetes-list-type `atomic`. - * 3) `map`: - * These lists are like maps in that their elements have a non-index key - * used to identify them. Order is preserved upon merge. The map tag - * must only be used on a list with elements of type object. - * Defaults to atomic for arrays. - * - * @default atomic for arrays. - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-type - */ - readonly xKubernetesListType?: string; - - /** - * x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - * - * 1) `granular`: - * These maps are actual maps (key-value pairs) and each fields are independent - * from each other (they can each be manipulated by separate actors). This is - * the default behaviour for all maps. - * 2) `atomic`: the list is treated as a single entity, like a scalar. - * Atomic maps will be entirely replaced when updated. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-map-type - */ - readonly xKubernetesMapType?: string; - - /** - * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-preserve-unknown-fields - */ - readonly xKubernetesPreserveUnknownFields?: boolean; - - /** - * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-validations - */ - readonly xKubernetesValidations?: ValidationRule[]; - -} - -/** - * Converts an object of type 'JsonSchemaProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_JsonSchemaProps(obj: JsonSchemaProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - '$ref': obj.ref, - '$schema': obj.schema, - 'additionalItems': obj.additionalItems, - 'additionalProperties': obj.additionalProperties, - 'allOf': obj.allOf?.map(y => toJson_JsonSchemaProps(y)), - 'anyOf': obj.anyOf?.map(y => toJson_JsonSchemaProps(y)), - 'default': obj.default, - 'definitions': ((obj.definitions) === undefined) ? undefined : (Object.entries(obj.definitions).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), - 'dependencies': ((obj.dependencies) === undefined) ? undefined : (Object.entries(obj.dependencies).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'description': obj.description, - 'enum': obj.enum?.map(y => y), - 'example': obj.example, - 'exclusiveMaximum': obj.exclusiveMaximum, - 'exclusiveMinimum': obj.exclusiveMinimum, - 'externalDocs': toJson_ExternalDocumentation(obj.externalDocs), - 'format': obj.format, - 'id': obj.id, - 'items': obj.items, - 'maxItems': obj.maxItems, - 'maxLength': obj.maxLength, - 'maxProperties': obj.maxProperties, - 'maximum': obj.maximum, - 'minItems': obj.minItems, - 'minLength': obj.minLength, - 'minProperties': obj.minProperties, - 'minimum': obj.minimum, - 'multipleOf': obj.multipleOf, - 'not': toJson_JsonSchemaProps(obj.not), - 'nullable': obj.nullable, - 'oneOf': obj.oneOf?.map(y => toJson_JsonSchemaProps(y)), - 'pattern': obj.pattern, - 'patternProperties': ((obj.patternProperties) === undefined) ? undefined : (Object.entries(obj.patternProperties).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), - 'properties': ((obj.properties) === undefined) ? undefined : (Object.entries(obj.properties).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), - 'required': obj.required?.map(y => y), - 'title': obj.title, - 'type': obj.type, - 'uniqueItems': obj.uniqueItems, - 'x-kubernetes-embedded-resource': obj.xKubernetesEmbeddedResource, - 'x-kubernetes-int-or-string': obj.xKubernetesIntOrString, - 'x-kubernetes-list-map-keys': obj.xKubernetesListMapKeys?.map(y => y), - 'x-kubernetes-list-type': obj.xKubernetesListType, - 'x-kubernetes-map-type': obj.xKubernetesMapType, - 'x-kubernetes-preserve-unknown-fields': obj.xKubernetesPreserveUnknownFields, - 'x-kubernetes-validations': obj.xKubernetesValidations?.map(y => toJson_ValidationRule(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale - */ -export interface CustomResourceSubresourceScale { - /** - * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#labelSelectorPath - */ - readonly labelSelectorPath?: string; - - /** - * specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#specReplicasPath - */ - readonly specReplicasPath: string; - - /** - * statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#statusReplicasPath - */ - readonly statusReplicasPath: string; - -} - -/** - * Converts an object of type 'CustomResourceSubresourceScale' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_CustomResourceSubresourceScale(obj: CustomResourceSubresourceScale | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelectorPath': obj.labelSelectorPath, - 'specReplicasPath': obj.specReplicasPath, - 'statusReplicasPath': obj.statusReplicasPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Selects a key from a ConfigMap. - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector - */ -export interface ConfigMapKeySelector { - /** - * The key to select. - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector#key - */ - readonly key: string; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector#name - */ - readonly name?: string; - - /** - * Specify whether the ConfigMap or its key must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapKeySelector#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ConfigMapKeySelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ConfigMapKeySelector(obj: ConfigMapKeySelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ObjectFieldSelector selects an APIVersioned field of an object. - * - * @schema io.k8s.api.core.v1.ObjectFieldSelector - */ -export interface ObjectFieldSelector { - /** - * Version of the schema the FieldPath is written in terms of, defaults to "v1". - * - * @schema io.k8s.api.core.v1.ObjectFieldSelector#apiVersion - */ - readonly apiVersion?: string; - - /** - * Path of the field to select in the specified API version. - * - * @schema io.k8s.api.core.v1.ObjectFieldSelector#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'ObjectFieldSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ObjectFieldSelector(obj: ObjectFieldSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResourceFieldSelector represents container resources (cpu, memory) and their output format - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector - */ -export interface ResourceFieldSelector { - /** - * Container name: required for volumes, optional for env vars - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector#containerName - */ - readonly containerName?: string; - - /** - * Specifies the output format of the exposed resources, defaults to "1" - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector#divisor - */ - readonly divisor?: Quantity; - - /** - * Required: resource to select - * - * @schema io.k8s.api.core.v1.ResourceFieldSelector#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'ResourceFieldSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ResourceFieldSelector(obj: ResourceFieldSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SecretKeySelector selects a key of a Secret. - * - * @schema io.k8s.api.core.v1.SecretKeySelector - */ -export interface SecretKeySelector { - /** - * The key of the secret to select from. Must be a valid secret key. - * - * @schema io.k8s.api.core.v1.SecretKeySelector#key - */ - readonly key: string; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.SecretKeySelector#name - */ - readonly name?: string; - - /** - * Specify whether the Secret or its key must be defined - * - * @schema io.k8s.api.core.v1.SecretKeySelector#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'SecretKeySelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SecretKeySelector(obj: SecretKeySelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * SleepAction describes a "sleep" action. - * - * @schema io.k8s.api.core.v1.SleepAction - */ -export interface SleepAction { - /** - * Seconds is the number of seconds to sleep. - * - * @schema io.k8s.api.core.v1.SleepAction#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'SleepAction' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SleepAction(obj: SleepAction | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * HTTPHeader describes a custom header to be used in HTTP probes - * - * @schema io.k8s.api.core.v1.HTTPHeader - */ -export interface HttpHeader { - /** - * The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. - * - * @schema io.k8s.api.core.v1.HTTPHeader#name - */ - readonly name: string; - - /** - * The header field value - * - * @schema io.k8s.api.core.v1.HTTPHeader#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'HttpHeader' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_HttpHeader(obj: HttpHeader | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. - * - * @schema io.k8s.api.core.v1.ClusterTrustBundleProjection - */ -export interface ClusterTrustBundleProjection { - /** - * Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as "match nothing". If set but empty, interpreted as "match everything". - * - * @schema io.k8s.api.core.v1.ClusterTrustBundleProjection#labelSelector - */ - readonly labelSelector?: LabelSelector; - - /** - * Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. - * - * @schema io.k8s.api.core.v1.ClusterTrustBundleProjection#name - */ - readonly name?: string; - - /** - * If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. - * - * @schema io.k8s.api.core.v1.ClusterTrustBundleProjection#optional - */ - readonly optional?: boolean; - - /** - * Relative path from the volume root to write the bundle. - * - * @schema io.k8s.api.core.v1.ClusterTrustBundleProjection#path - */ - readonly path: string; - - /** - * Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. - * - * @schema io.k8s.api.core.v1.ClusterTrustBundleProjection#signerName - */ - readonly signerName?: string; - -} - -/** - * Converts an object of type 'ClusterTrustBundleProjection' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ClusterTrustBundleProjection(obj: ClusterTrustBundleProjection | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_LabelSelector(obj.labelSelector), - 'name': obj.name, - 'optional': obj.optional, - 'path': obj.path, - 'signerName': obj.signerName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Adapts a ConfigMap into a projected volume. - * - * The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. - * - * @schema io.k8s.api.core.v1.ConfigMapProjection - */ -export interface ConfigMapProjection { - /** - * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.ConfigMapProjection#items - */ - readonly items?: KeyToPath[]; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.ConfigMapProjection#name - */ - readonly name?: string; - - /** - * optional specify whether the ConfigMap or its keys must be defined - * - * @schema io.k8s.api.core.v1.ConfigMapProjection#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'ConfigMapProjection' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ConfigMapProjection(obj: ConfigMapProjection | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_KeyToPath(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. - * - * @schema io.k8s.api.core.v1.DownwardAPIProjection - */ -export interface DownwardApiProjection { - /** - * Items is a list of DownwardAPIVolume file - * - * @schema io.k8s.api.core.v1.DownwardAPIProjection#items - */ - readonly items?: DownwardApiVolumeFile[]; - -} - -/** - * Converts an object of type 'DownwardApiProjection' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_DownwardApiProjection(obj: DownwardApiProjection | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_DownwardApiVolumeFile(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Adapts a secret into a projected volume. - * - * The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. - * - * @schema io.k8s.api.core.v1.SecretProjection - */ -export interface SecretProjection { - /** - * items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * - * @schema io.k8s.api.core.v1.SecretProjection#items - */ - readonly items?: KeyToPath[]; - - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * - * @schema io.k8s.api.core.v1.SecretProjection#name - */ - readonly name?: string; - - /** - * optional field specify whether the Secret or its key must be defined - * - * @schema io.k8s.api.core.v1.SecretProjection#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'SecretProjection' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_SecretProjection(obj: SecretProjection | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_KeyToPath(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). - * - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection - */ -export interface ServiceAccountTokenProjection { - /** - * audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#audience - */ - readonly audience?: string; - - /** - * expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * - * @default 1 hour and must be at least 10 minutes. - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#expirationSeconds - */ - readonly expirationSeconds?: number; - - /** - * path is the path relative to the mount point of the file to project the token into. - * - * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'ServiceAccountTokenProjection' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceAccountTokenProjection(obj: ServiceAccountTokenProjection | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'audience': obj.audience, - 'expirationSeconds': obj.expirationSeconds, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ExternalDocumentation allows referencing an external resource for extended documentation. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation - */ -export interface ExternalDocumentation { - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#description - */ - readonly description?: string; - - /** - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#url - */ - readonly url?: string; - -} - -/** - * Converts an object of type 'ExternalDocumentation' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ExternalDocumentation(obj: ExternalDocumentation | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'description': obj.description, - 'url': obj.url, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ValidationRule describes a validation rule written in the CEL expression language. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule - */ -export interface ValidationRule { - /** - * fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']` - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#fieldPath - */ - readonly fieldPath?: string; - - /** - * Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#message - */ - readonly message?: string; - - /** - * MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")" - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#messageExpression - */ - readonly messageExpression?: string; - - /** - * optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value. - * - * When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created. - * - * You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes - * - * May not be set unless `oldSelf` is used in `rule`. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#optionalOldSelf - */ - readonly optionalOldSelf?: boolean; - - /** - * reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: "FieldValueInvalid", "FieldValueForbidden", "FieldValueRequired", "FieldValueDuplicate". If not set, default to use "FieldValueInvalid". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#reason - */ - readonly reason?: string; - - /** - * Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} - * - * If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} - * - * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. - * - * Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: - * - A schema with no type and x-kubernetes-preserve-unknown-fields set to true - * - An array where the items schema is of an "unknown type" - * - An object where the additionalProperties schema is of an "unknown type" - * - * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: - * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", - * "import", "let", "loop", "package", "namespace", "return". - * Examples: - * - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} - * - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} - * - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} - * - * Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and - * non-intersecting elements in `Y` are appended, retaining their partial order. - * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values - * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with - * non-intersecting keys are appended, retaining their partial order. - * - * If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`. - * - * By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional - * variable whose value() is the same type as `self`. - * See the documentation for the `optionalOldSelf` field for details. - * - * Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true. - * - * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#rule - */ - readonly rule: string; - -} - -/** - * Converts an object of type 'ValidationRule' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ValidationRule(obj: ValidationRule | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldPath': obj.fieldPath, - 'message': obj.message, - 'messageExpression': obj.messageExpression, - 'optionalOldSelf': obj.optionalOldSelf, - 'reason': obj.reason, - 'rule': obj.rule, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - diff --git a/.devops/aws/src/imports/linkerd.io.ts b/.devops/aws/src/imports/linkerd.io.ts deleted file mode 100644 index da27391..0000000 --- a/.devops/aws/src/imports/linkerd.io.ts +++ /dev/null @@ -1,884 +0,0 @@ -// generated by cdk8s -import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - - -/** - * - * - * @schema ServiceProfile - */ -export class ServiceProfile extends ApiObject { - /** - * Returns the apiVersion and kind for "ServiceProfile" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'linkerd.io/v1alpha1', - kind: 'ServiceProfile', - } - - /** - * Renders a Kubernetes manifest for "ServiceProfile". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: ServiceProfileProps = {}): any { - return { - ...ServiceProfile.GVK, - ...toJson_ServiceProfileProps(props), - }; - } - - /** - * Defines a "ServiceProfile" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: ServiceProfileProps = {}) { - super(scope, id, { - ...ServiceProfile.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...ServiceProfile.GVK, - ...toJson_ServiceProfileProps(resolved), - }; - } -} - -/** - * @schema ServiceProfile - */ -export interface ServiceProfileProps { - /** - * @schema ServiceProfile#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * Spec is the custom resource spec - * - * @schema ServiceProfile#spec - */ - readonly spec?: ServiceProfileSpec; - -} - -/** - * Converts an object of type 'ServiceProfileProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileProps(obj: ServiceProfileProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_ServiceProfileSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Spec is the custom resource spec - * - * @schema ServiceProfileSpec - */ -export interface ServiceProfileSpec { - /** - * @schema ServiceProfileSpec#dstOverrides - */ - readonly dstOverrides?: ServiceProfileSpecDstOverrides[]; - - /** - * @schema ServiceProfileSpec#opaquePorts - */ - readonly opaquePorts?: string[]; - - /** - * RetryBudget describes the maximum number of retries that should be issued to this service. - * - * @schema ServiceProfileSpec#retryBudget - */ - readonly retryBudget?: ServiceProfileSpecRetryBudget; - - /** - * @schema ServiceProfileSpec#routes - */ - readonly routes: ServiceProfileSpecRoutes[]; - -} - -/** - * Converts an object of type 'ServiceProfileSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpec(obj: ServiceProfileSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'dstOverrides': obj.dstOverrides?.map(y => toJson_ServiceProfileSpecDstOverrides(y)), - 'opaquePorts': obj.opaquePorts?.map(y => y), - 'retryBudget': toJson_ServiceProfileSpecRetryBudget(obj.retryBudget), - 'routes': obj.routes?.map(y => toJson_ServiceProfileSpecRoutes(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * WeightedDst is a weighted alternate destination. - * - * @schema ServiceProfileSpecDstOverrides - */ -export interface ServiceProfileSpecDstOverrides { - /** - * @schema ServiceProfileSpecDstOverrides#authority - */ - readonly authority?: string; - - /** - * @schema ServiceProfileSpecDstOverrides#weight - */ - readonly weight?: ServiceProfileSpecDstOverridesWeight; - -} - -/** - * Converts an object of type 'ServiceProfileSpecDstOverrides' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecDstOverrides(obj: ServiceProfileSpecDstOverrides | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'authority': obj.authority, - 'weight': obj.weight?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RetryBudget describes the maximum number of retries that should be issued to this service. - * - * @schema ServiceProfileSpecRetryBudget - */ -export interface ServiceProfileSpecRetryBudget { - /** - * @schema ServiceProfileSpecRetryBudget#minRetriesPerSecond - */ - readonly minRetriesPerSecond: number; - - /** - * @schema ServiceProfileSpecRetryBudget#retryRatio - */ - readonly retryRatio: number; - - /** - * @schema ServiceProfileSpecRetryBudget#ttl - */ - readonly ttl: string; - -} - -/** - * Converts an object of type 'ServiceProfileSpecRetryBudget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecRetryBudget(obj: ServiceProfileSpecRetryBudget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minRetriesPerSecond': obj.minRetriesPerSecond, - 'retryRatio': obj.retryRatio, - 'ttl': obj.ttl, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RouteSpec specifies a Route resource. - * - * @schema ServiceProfileSpecRoutes - */ -export interface ServiceProfileSpecRoutes { - /** - * RequestMatch describes the conditions under which to match a Route. - * - * @schema ServiceProfileSpecRoutes#condition - */ - readonly condition: ServiceProfileSpecRoutesCondition; - - /** - * @schema ServiceProfileSpecRoutes#isRetryable - */ - readonly isRetryable?: boolean; - - /** - * @schema ServiceProfileSpecRoutes#name - */ - readonly name: string; - - /** - * @schema ServiceProfileSpecRoutes#responseClasses - */ - readonly responseClasses?: ServiceProfileSpecRoutesResponseClasses[]; - - /** - * @schema ServiceProfileSpecRoutes#timeout - */ - readonly timeout?: string; - -} - -/** - * Converts an object of type 'ServiceProfileSpecRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecRoutes(obj: ServiceProfileSpecRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'condition': toJson_ServiceProfileSpecRoutesCondition(obj.condition), - 'isRetryable': obj.isRetryable, - 'name': obj.name, - 'responseClasses': obj.responseClasses?.map(y => toJson_ServiceProfileSpecRoutesResponseClasses(y)), - 'timeout': obj.timeout, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema ServiceProfileSpecDstOverridesWeight - */ -export class ServiceProfileSpecDstOverridesWeight { - public static fromNumber(value: number): ServiceProfileSpecDstOverridesWeight { - return new ServiceProfileSpecDstOverridesWeight(value); - } - public static fromString(value: string): ServiceProfileSpecDstOverridesWeight { - return new ServiceProfileSpecDstOverridesWeight(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * RequestMatch describes the conditions under which to match a Route. - * - * @schema ServiceProfileSpecRoutesCondition - */ -export interface ServiceProfileSpecRoutesCondition { - /** - * @schema ServiceProfileSpecRoutesCondition#all - */ - readonly all?: any[]; - - /** - * @schema ServiceProfileSpecRoutesCondition#any - */ - readonly any?: any[]; - - /** - * @schema ServiceProfileSpecRoutesCondition#method - */ - readonly method?: string; - - /** - * @schema ServiceProfileSpecRoutesCondition#not - */ - readonly not?: any[]; - - /** - * @schema ServiceProfileSpecRoutesCondition#pathRegex - */ - readonly pathRegex?: string; - -} - -/** - * Converts an object of type 'ServiceProfileSpecRoutesCondition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecRoutesCondition(obj: ServiceProfileSpecRoutesCondition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'all': obj.all?.map(y => y), - 'any': obj.any?.map(y => y), - 'method': obj.method, - 'not': obj.not?.map(y => y), - 'pathRegex': obj.pathRegex, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResponseClass describes how to classify a response (e.g. success or failures). - * - * @schema ServiceProfileSpecRoutesResponseClasses - */ -export interface ServiceProfileSpecRoutesResponseClasses { - /** - * ResponseMatch describes the conditions under which to classify a response. - * - * @schema ServiceProfileSpecRoutesResponseClasses#condition - */ - readonly condition: ServiceProfileSpecRoutesResponseClassesCondition; - - /** - * @schema ServiceProfileSpecRoutesResponseClasses#isFailure - */ - readonly isFailure?: boolean; - -} - -/** - * Converts an object of type 'ServiceProfileSpecRoutesResponseClasses' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecRoutesResponseClasses(obj: ServiceProfileSpecRoutesResponseClasses | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'condition': toJson_ServiceProfileSpecRoutesResponseClassesCondition(obj.condition), - 'isFailure': obj.isFailure, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResponseMatch describes the conditions under which to classify a response. - * - * @schema ServiceProfileSpecRoutesResponseClassesCondition - */ -export interface ServiceProfileSpecRoutesResponseClassesCondition { - /** - * @schema ServiceProfileSpecRoutesResponseClassesCondition#all - */ - readonly all?: any[]; - - /** - * @schema ServiceProfileSpecRoutesResponseClassesCondition#any - */ - readonly any?: any[]; - - /** - * @schema ServiceProfileSpecRoutesResponseClassesCondition#not - */ - readonly not?: any[]; - - /** - * Range describes a range of integers (e.g. status codes). - * - * @schema ServiceProfileSpecRoutesResponseClassesCondition#status - */ - readonly status?: ServiceProfileSpecRoutesResponseClassesConditionStatus; - -} - -/** - * Converts an object of type 'ServiceProfileSpecRoutesResponseClassesCondition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecRoutesResponseClassesCondition(obj: ServiceProfileSpecRoutesResponseClassesCondition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'all': obj.all?.map(y => y), - 'any': obj.any?.map(y => y), - 'not': obj.not?.map(y => y), - 'status': toJson_ServiceProfileSpecRoutesResponseClassesConditionStatus(obj.status), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Range describes a range of integers (e.g. status codes). - * - * @schema ServiceProfileSpecRoutesResponseClassesConditionStatus - */ -export interface ServiceProfileSpecRoutesResponseClassesConditionStatus { - /** - * @schema ServiceProfileSpecRoutesResponseClassesConditionStatus#max - */ - readonly max?: number; - - /** - * @schema ServiceProfileSpecRoutesResponseClassesConditionStatus#min - */ - readonly min?: number; - -} - -/** - * Converts an object of type 'ServiceProfileSpecRoutesResponseClassesConditionStatus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileSpecRoutesResponseClassesConditionStatus(obj: ServiceProfileSpecRoutesResponseClassesConditionStatus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'max': obj.max, - 'min': obj.min, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - - -/** - * - * - * @schema ServiceProfileV1Alpha2 - */ -export class ServiceProfileV1Alpha2 extends ApiObject { - /** - * Returns the apiVersion and kind for "ServiceProfileV1Alpha2" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'linkerd.io/v1alpha2', - kind: 'ServiceProfile', - } - - /** - * Renders a Kubernetes manifest for "ServiceProfileV1Alpha2". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: ServiceProfileV1Alpha2Props = {}): any { - return { - ...ServiceProfileV1Alpha2.GVK, - ...toJson_ServiceProfileV1Alpha2Props(props), - }; - } - - /** - * Defines a "ServiceProfileV1Alpha2" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: ServiceProfileV1Alpha2Props = {}) { - super(scope, id, { - ...ServiceProfileV1Alpha2.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...ServiceProfileV1Alpha2.GVK, - ...toJson_ServiceProfileV1Alpha2Props(resolved), - }; - } -} - -/** - * @schema ServiceProfileV1Alpha2 - */ -export interface ServiceProfileV1Alpha2Props { - /** - * @schema ServiceProfileV1Alpha2#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * Spec is the custom resource spec - * - * @schema ServiceProfileV1Alpha2#spec - */ - readonly spec?: ServiceProfileV1Alpha2Spec; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2Props(obj: ServiceProfileV1Alpha2Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_ServiceProfileV1Alpha2Spec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Spec is the custom resource spec - * - * @schema ServiceProfileV1Alpha2Spec - */ -export interface ServiceProfileV1Alpha2Spec { - /** - * @schema ServiceProfileV1Alpha2Spec#dstOverrides - */ - readonly dstOverrides?: ServiceProfileV1Alpha2SpecDstOverrides[]; - - /** - * @schema ServiceProfileV1Alpha2Spec#opaquePorts - */ - readonly opaquePorts?: string[]; - - /** - * RetryBudget describes the maximum number of retries that should be issued to this service. - * - * @schema ServiceProfileV1Alpha2Spec#retryBudget - */ - readonly retryBudget?: ServiceProfileV1Alpha2SpecRetryBudget; - - /** - * @schema ServiceProfileV1Alpha2Spec#routes - */ - readonly routes?: ServiceProfileV1Alpha2SpecRoutes[]; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2Spec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2Spec(obj: ServiceProfileV1Alpha2Spec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'dstOverrides': obj.dstOverrides?.map(y => toJson_ServiceProfileV1Alpha2SpecDstOverrides(y)), - 'opaquePorts': obj.opaquePorts?.map(y => y), - 'retryBudget': toJson_ServiceProfileV1Alpha2SpecRetryBudget(obj.retryBudget), - 'routes': obj.routes?.map(y => toJson_ServiceProfileV1Alpha2SpecRoutes(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * WeightedDst is a weighted alternate destination. - * - * @schema ServiceProfileV1Alpha2SpecDstOverrides - */ -export interface ServiceProfileV1Alpha2SpecDstOverrides { - /** - * @schema ServiceProfileV1Alpha2SpecDstOverrides#authority - */ - readonly authority?: string; - - /** - * @schema ServiceProfileV1Alpha2SpecDstOverrides#weight - */ - readonly weight?: ServiceProfileV1Alpha2SpecDstOverridesWeight; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecDstOverrides' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecDstOverrides(obj: ServiceProfileV1Alpha2SpecDstOverrides | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'authority': obj.authority, - 'weight': obj.weight?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RetryBudget describes the maximum number of retries that should be issued to this service. - * - * @schema ServiceProfileV1Alpha2SpecRetryBudget - */ -export interface ServiceProfileV1Alpha2SpecRetryBudget { - /** - * @schema ServiceProfileV1Alpha2SpecRetryBudget#minRetriesPerSecond - */ - readonly minRetriesPerSecond: number; - - /** - * @schema ServiceProfileV1Alpha2SpecRetryBudget#retryRatio - */ - readonly retryRatio: number; - - /** - * @schema ServiceProfileV1Alpha2SpecRetryBudget#ttl - */ - readonly ttl: string; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecRetryBudget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecRetryBudget(obj: ServiceProfileV1Alpha2SpecRetryBudget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'minRetriesPerSecond': obj.minRetriesPerSecond, - 'retryRatio': obj.retryRatio, - 'ttl': obj.ttl, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * RouteSpec specifies a Route resource. - * - * @schema ServiceProfileV1Alpha2SpecRoutes - */ -export interface ServiceProfileV1Alpha2SpecRoutes { - /** - * RequestMatch describes the conditions under which to match a Route. - * - * @schema ServiceProfileV1Alpha2SpecRoutes#condition - */ - readonly condition: ServiceProfileV1Alpha2SpecRoutesCondition; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutes#isRetryable - */ - readonly isRetryable?: boolean; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutes#name - */ - readonly name: string; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutes#responseClasses - */ - readonly responseClasses?: ServiceProfileV1Alpha2SpecRoutesResponseClasses[]; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutes#timeout - */ - readonly timeout?: string; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecRoutes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecRoutes(obj: ServiceProfileV1Alpha2SpecRoutes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'condition': toJson_ServiceProfileV1Alpha2SpecRoutesCondition(obj.condition), - 'isRetryable': obj.isRetryable, - 'name': obj.name, - 'responseClasses': obj.responseClasses?.map(y => toJson_ServiceProfileV1Alpha2SpecRoutesResponseClasses(y)), - 'timeout': obj.timeout, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema ServiceProfileV1Alpha2SpecDstOverridesWeight - */ -export class ServiceProfileV1Alpha2SpecDstOverridesWeight { - public static fromNumber(value: number): ServiceProfileV1Alpha2SpecDstOverridesWeight { - return new ServiceProfileV1Alpha2SpecDstOverridesWeight(value); - } - public static fromString(value: string): ServiceProfileV1Alpha2SpecDstOverridesWeight { - return new ServiceProfileV1Alpha2SpecDstOverridesWeight(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * RequestMatch describes the conditions under which to match a Route. - * - * @schema ServiceProfileV1Alpha2SpecRoutesCondition - */ -export interface ServiceProfileV1Alpha2SpecRoutesCondition { - /** - * @schema ServiceProfileV1Alpha2SpecRoutesCondition#all - */ - readonly all?: any[]; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesCondition#any - */ - readonly any?: any[]; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesCondition#method - */ - readonly method?: string; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesCondition#not - */ - readonly not?: any[]; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesCondition#pathRegex - */ - readonly pathRegex?: string; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecRoutesCondition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecRoutesCondition(obj: ServiceProfileV1Alpha2SpecRoutesCondition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'all': obj.all?.map(y => y), - 'any': obj.any?.map(y => y), - 'method': obj.method, - 'not': obj.not?.map(y => y), - 'pathRegex': obj.pathRegex, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResponseClass describes how to classify a response (e.g. success or failures). - * - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClasses - */ -export interface ServiceProfileV1Alpha2SpecRoutesResponseClasses { - /** - * ResponseMatch describes the conditions under which to classify a response. - * - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClasses#condition - */ - readonly condition: ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClasses#isFailure - */ - readonly isFailure?: boolean; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecRoutesResponseClasses' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecRoutesResponseClasses(obj: ServiceProfileV1Alpha2SpecRoutesResponseClasses | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'condition': toJson_ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition(obj.condition), - 'isFailure': obj.isFailure, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * ResponseMatch describes the conditions under which to classify a response. - * - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition - */ -export interface ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition { - /** - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition#all - */ - readonly all?: any[]; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition#any - */ - readonly any?: any[]; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition#not - */ - readonly not?: any[]; - - /** - * Range describes a range of integers (e.g. status codes). - * - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition#status - */ - readonly status?: ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition(obj: ServiceProfileV1Alpha2SpecRoutesResponseClassesCondition | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'all': obj.all?.map(y => y), - 'any': obj.any?.map(y => y), - 'not': obj.not?.map(y => y), - 'status': toJson_ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus(obj.status), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * Range describes a range of integers (e.g. status codes). - * - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus - */ -export interface ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus { - /** - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus#max - */ - readonly max?: number; - - /** - * @schema ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus#min - */ - readonly min?: number; - -} - -/** - * Converts an object of type 'ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus(obj: ServiceProfileV1Alpha2SpecRoutesResponseClassesConditionStatus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'max': obj.max, - 'min': obj.min, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - diff --git a/.devops/aws/src/imports/opentelemetry.io.ts b/.devops/aws/src/imports/opentelemetry.io.ts deleted file mode 100644 index 4fbbcf4..0000000 --- a/.devops/aws/src/imports/opentelemetry.io.ts +++ /dev/null @@ -1,34060 +0,0 @@ -// generated by cdk8s -import { ApiObject, ApiObjectMetadata, GroupVersionKind } from 'cdk8s'; -import { Construct } from 'constructs'; - - -/** - * - * - * @schema Instrumentation - */ -export class Instrumentation extends ApiObject { - /** - * Returns the apiVersion and kind for "Instrumentation" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'opentelemetry.io/v1alpha1', - kind: 'Instrumentation', - } - - /** - * Renders a Kubernetes manifest for "Instrumentation". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: InstrumentationProps = {}): any { - return { - ...Instrumentation.GVK, - ...toJson_InstrumentationProps(props), - }; - } - - /** - * Defines a "Instrumentation" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: InstrumentationProps = {}) { - super(scope, id, { - ...Instrumentation.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...Instrumentation.GVK, - ...toJson_InstrumentationProps(resolved), - }; - } -} - -/** - * @schema Instrumentation - */ -export interface InstrumentationProps { - /** - * @schema Instrumentation#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * @schema Instrumentation#spec - */ - readonly spec?: InstrumentationSpec; - -} - -/** - * Converts an object of type 'InstrumentationProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationProps(obj: InstrumentationProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_InstrumentationSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpec - */ -export interface InstrumentationSpec { - /** - * @schema InstrumentationSpec#apacheHttpd - */ - readonly apacheHttpd?: InstrumentationSpecApacheHttpd; - - /** - * @schema InstrumentationSpec#dotnet - */ - readonly dotnet?: InstrumentationSpecDotnet; - - /** - * @schema InstrumentationSpec#env - */ - readonly env?: InstrumentationSpecEnv[]; - - /** - * @schema InstrumentationSpec#exporter - */ - readonly exporter?: InstrumentationSpecExporter; - - /** - * @schema InstrumentationSpec#go - */ - readonly go?: InstrumentationSpecGo; - - /** - * @schema InstrumentationSpec#java - */ - readonly java?: InstrumentationSpecJava; - - /** - * @schema InstrumentationSpec#nginx - */ - readonly nginx?: InstrumentationSpecNginx; - - /** - * @schema InstrumentationSpec#nodejs - */ - readonly nodejs?: InstrumentationSpecNodejs; - - /** - * @schema InstrumentationSpec#propagators - */ - readonly propagators?: InstrumentationSpecPropagators[]; - - /** - * @schema InstrumentationSpec#python - */ - readonly python?: InstrumentationSpecPython; - - /** - * @schema InstrumentationSpec#resource - */ - readonly resource?: InstrumentationSpecResource; - - /** - * @schema InstrumentationSpec#sampler - */ - readonly sampler?: InstrumentationSpecSampler; - -} - -/** - * Converts an object of type 'InstrumentationSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpec(obj: InstrumentationSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apacheHttpd': toJson_InstrumentationSpecApacheHttpd(obj.apacheHttpd), - 'dotnet': toJson_InstrumentationSpecDotnet(obj.dotnet), - 'env': obj.env?.map(y => toJson_InstrumentationSpecEnv(y)), - 'exporter': toJson_InstrumentationSpecExporter(obj.exporter), - 'go': toJson_InstrumentationSpecGo(obj.go), - 'java': toJson_InstrumentationSpecJava(obj.java), - 'nginx': toJson_InstrumentationSpecNginx(obj.nginx), - 'nodejs': toJson_InstrumentationSpecNodejs(obj.nodejs), - 'propagators': obj.propagators?.map(y => y), - 'python': toJson_InstrumentationSpecPython(obj.python), - 'resource': toJson_InstrumentationSpecResource(obj.resource), - 'sampler': toJson_InstrumentationSpecSampler(obj.sampler), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpd - */ -export interface InstrumentationSpecApacheHttpd { - /** - * @schema InstrumentationSpecApacheHttpd#attrs - */ - readonly attrs?: InstrumentationSpecApacheHttpdAttrs[]; - - /** - * @schema InstrumentationSpecApacheHttpd#configPath - */ - readonly configPath?: string; - - /** - * @schema InstrumentationSpecApacheHttpd#env - */ - readonly env?: InstrumentationSpecApacheHttpdEnv[]; - - /** - * @schema InstrumentationSpecApacheHttpd#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecApacheHttpd#resourceRequirements - */ - readonly resourceRequirements?: InstrumentationSpecApacheHttpdResourceRequirements; - - /** - * @schema InstrumentationSpecApacheHttpd#version - */ - readonly version?: string; - - /** - * @schema InstrumentationSpecApacheHttpd#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecApacheHttpdVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpd' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpd(obj: InstrumentationSpecApacheHttpd | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'attrs': obj.attrs?.map(y => toJson_InstrumentationSpecApacheHttpdAttrs(y)), - 'configPath': obj.configPath, - 'env': obj.env?.map(y => toJson_InstrumentationSpecApacheHttpdEnv(y)), - 'image': obj.image, - 'resourceRequirements': toJson_InstrumentationSpecApacheHttpdResourceRequirements(obj.resourceRequirements), - 'version': obj.version, - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnet - */ -export interface InstrumentationSpecDotnet { - /** - * @schema InstrumentationSpecDotnet#env - */ - readonly env?: InstrumentationSpecDotnetEnv[]; - - /** - * @schema InstrumentationSpecDotnet#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecDotnet#resourceRequirements - */ - readonly resourceRequirements?: InstrumentationSpecDotnetResourceRequirements; - - /** - * @schema InstrumentationSpecDotnet#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecDotnetVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnet(obj: InstrumentationSpecDotnet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'env': obj.env?.map(y => toJson_InstrumentationSpecDotnetEnv(y)), - 'image': obj.image, - 'resourceRequirements': toJson_InstrumentationSpecDotnetResourceRequirements(obj.resourceRequirements), - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecEnv - */ -export interface InstrumentationSpecEnv { - /** - * @schema InstrumentationSpecEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecEnv(obj: InstrumentationSpecEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecExporter - */ -export interface InstrumentationSpecExporter { - /** - * @schema InstrumentationSpecExporter#endpoint - */ - readonly endpoint?: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecExporter' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecExporter(obj: InstrumentationSpecExporter | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'endpoint': obj.endpoint, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGo - */ -export interface InstrumentationSpecGo { - /** - * @schema InstrumentationSpecGo#env - */ - readonly env?: InstrumentationSpecGoEnv[]; - - /** - * @schema InstrumentationSpecGo#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecGo#resourceRequirements - */ - readonly resourceRequirements?: InstrumentationSpecGoResourceRequirements; - - /** - * @schema InstrumentationSpecGo#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecGoVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecGo' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGo(obj: InstrumentationSpecGo | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'env': obj.env?.map(y => toJson_InstrumentationSpecGoEnv(y)), - 'image': obj.image, - 'resourceRequirements': toJson_InstrumentationSpecGoResourceRequirements(obj.resourceRequirements), - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJava - */ -export interface InstrumentationSpecJava { - /** - * @schema InstrumentationSpecJava#env - */ - readonly env?: InstrumentationSpecJavaEnv[]; - - /** - * @schema InstrumentationSpecJava#extensions - */ - readonly extensions?: InstrumentationSpecJavaExtensions[]; - - /** - * @schema InstrumentationSpecJava#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecJava#resources - */ - readonly resources?: InstrumentationSpecJavaResources; - - /** - * @schema InstrumentationSpecJava#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecJavaVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecJava' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJava(obj: InstrumentationSpecJava | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'env': obj.env?.map(y => toJson_InstrumentationSpecJavaEnv(y)), - 'extensions': obj.extensions?.map(y => toJson_InstrumentationSpecJavaExtensions(y)), - 'image': obj.image, - 'resources': toJson_InstrumentationSpecJavaResources(obj.resources), - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginx - */ -export interface InstrumentationSpecNginx { - /** - * @schema InstrumentationSpecNginx#attrs - */ - readonly attrs?: InstrumentationSpecNginxAttrs[]; - - /** - * @schema InstrumentationSpecNginx#configFile - */ - readonly configFile?: string; - - /** - * @schema InstrumentationSpecNginx#env - */ - readonly env?: InstrumentationSpecNginxEnv[]; - - /** - * @schema InstrumentationSpecNginx#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecNginx#resourceRequirements - */ - readonly resourceRequirements?: InstrumentationSpecNginxResourceRequirements; - - /** - * @schema InstrumentationSpecNginx#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecNginxVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginx' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginx(obj: InstrumentationSpecNginx | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'attrs': obj.attrs?.map(y => toJson_InstrumentationSpecNginxAttrs(y)), - 'configFile': obj.configFile, - 'env': obj.env?.map(y => toJson_InstrumentationSpecNginxEnv(y)), - 'image': obj.image, - 'resourceRequirements': toJson_InstrumentationSpecNginxResourceRequirements(obj.resourceRequirements), - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejs - */ -export interface InstrumentationSpecNodejs { - /** - * @schema InstrumentationSpecNodejs#env - */ - readonly env?: InstrumentationSpecNodejsEnv[]; - - /** - * @schema InstrumentationSpecNodejs#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecNodejs#resourceRequirements - */ - readonly resourceRequirements?: InstrumentationSpecNodejsResourceRequirements; - - /** - * @schema InstrumentationSpecNodejs#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecNodejsVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejs(obj: InstrumentationSpecNodejs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'env': obj.env?.map(y => toJson_InstrumentationSpecNodejsEnv(y)), - 'image': obj.image, - 'resourceRequirements': toJson_InstrumentationSpecNodejsResourceRequirements(obj.resourceRequirements), - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPropagators - */ -export enum InstrumentationSpecPropagators { - /** tracecontext */ - TRACECONTEXT = "tracecontext", - /** baggage */ - BAGGAGE = "baggage", - /** b3 */ - B3 = "b3", - /** b3multi */ - B3MULTI = "b3multi", - /** jaeger */ - JAEGER = "jaeger", - /** xray */ - XRAY = "xray", - /** ottrace */ - OTTRACE = "ottrace", - /** none */ - NONE = "none", -} - -/** - * @schema InstrumentationSpecPython - */ -export interface InstrumentationSpecPython { - /** - * @schema InstrumentationSpecPython#env - */ - readonly env?: InstrumentationSpecPythonEnv[]; - - /** - * @schema InstrumentationSpecPython#image - */ - readonly image?: string; - - /** - * @schema InstrumentationSpecPython#resourceRequirements - */ - readonly resourceRequirements?: InstrumentationSpecPythonResourceRequirements; - - /** - * @schema InstrumentationSpecPython#volumeLimitSize - */ - readonly volumeLimitSize?: InstrumentationSpecPythonVolumeLimitSize; - -} - -/** - * Converts an object of type 'InstrumentationSpecPython' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPython(obj: InstrumentationSpecPython | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'env': obj.env?.map(y => toJson_InstrumentationSpecPythonEnv(y)), - 'image': obj.image, - 'resourceRequirements': toJson_InstrumentationSpecPythonResourceRequirements(obj.resourceRequirements), - 'volumeLimitSize': obj.volumeLimitSize?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecResource - */ -export interface InstrumentationSpecResource { - /** - * @schema InstrumentationSpecResource#addK8sUIDAttributes - */ - readonly addK8SUidAttributes?: boolean; - - /** - * @schema InstrumentationSpecResource#resourceAttributes - */ - readonly resourceAttributes?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'InstrumentationSpecResource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecResource(obj: InstrumentationSpecResource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'addK8sUIDAttributes': obj.addK8SUidAttributes, - 'resourceAttributes': ((obj.resourceAttributes) === undefined) ? undefined : (Object.entries(obj.resourceAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecSampler - */ -export interface InstrumentationSpecSampler { - /** - * @schema InstrumentationSpecSampler#argument - */ - readonly argument?: string; - - /** - * @schema InstrumentationSpecSampler#type - */ - readonly type?: InstrumentationSpecSamplerType; - -} - -/** - * Converts an object of type 'InstrumentationSpecSampler' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecSampler(obj: InstrumentationSpecSampler | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'argument': obj.argument, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdAttrs - */ -export interface InstrumentationSpecApacheHttpdAttrs { - /** - * @schema InstrumentationSpecApacheHttpdAttrs#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrs#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrs#valueFrom - */ - readonly valueFrom?: InstrumentationSpecApacheHttpdAttrsValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdAttrs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdAttrs(obj: InstrumentationSpecApacheHttpdAttrs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecApacheHttpdAttrsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdEnv - */ -export interface InstrumentationSpecApacheHttpdEnv { - /** - * @schema InstrumentationSpecApacheHttpdEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecApacheHttpdEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdEnv(obj: InstrumentationSpecApacheHttpdEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecApacheHttpdEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdResourceRequirements - */ -export interface InstrumentationSpecApacheHttpdResourceRequirements { - /** - * @schema InstrumentationSpecApacheHttpdResourceRequirements#claims - */ - readonly claims?: InstrumentationSpecApacheHttpdResourceRequirementsClaims[]; - - /** - * @schema InstrumentationSpecApacheHttpdResourceRequirements#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecApacheHttpdResourceRequirementsLimits }; - - /** - * @schema InstrumentationSpecApacheHttpdResourceRequirements#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecApacheHttpdResourceRequirementsRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdResourceRequirements(obj: InstrumentationSpecApacheHttpdResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecApacheHttpdResourceRequirementsClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdVolumeLimitSize - */ -export class InstrumentationSpecApacheHttpdVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecApacheHttpdVolumeLimitSize { - return new InstrumentationSpecApacheHttpdVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecApacheHttpdVolumeLimitSize { - return new InstrumentationSpecApacheHttpdVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecDotnetEnv - */ -export interface InstrumentationSpecDotnetEnv { - /** - * @schema InstrumentationSpecDotnetEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecDotnetEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecDotnetEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecDotnetEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetEnv(obj: InstrumentationSpecDotnetEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecDotnetEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetResourceRequirements - */ -export interface InstrumentationSpecDotnetResourceRequirements { - /** - * @schema InstrumentationSpecDotnetResourceRequirements#claims - */ - readonly claims?: InstrumentationSpecDotnetResourceRequirementsClaims[]; - - /** - * @schema InstrumentationSpecDotnetResourceRequirements#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecDotnetResourceRequirementsLimits }; - - /** - * @schema InstrumentationSpecDotnetResourceRequirements#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecDotnetResourceRequirementsRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetResourceRequirements(obj: InstrumentationSpecDotnetResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecDotnetResourceRequirementsClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetVolumeLimitSize - */ -export class InstrumentationSpecDotnetVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecDotnetVolumeLimitSize { - return new InstrumentationSpecDotnetVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecDotnetVolumeLimitSize { - return new InstrumentationSpecDotnetVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecEnvValueFrom - */ -export interface InstrumentationSpecEnvValueFrom { - /** - * @schema InstrumentationSpecEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecEnvValueFrom(obj: InstrumentationSpecEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoEnv - */ -export interface InstrumentationSpecGoEnv { - /** - * @schema InstrumentationSpecGoEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecGoEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecGoEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecGoEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoEnv(obj: InstrumentationSpecGoEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecGoEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoResourceRequirements - */ -export interface InstrumentationSpecGoResourceRequirements { - /** - * @schema InstrumentationSpecGoResourceRequirements#claims - */ - readonly claims?: InstrumentationSpecGoResourceRequirementsClaims[]; - - /** - * @schema InstrumentationSpecGoResourceRequirements#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecGoResourceRequirementsLimits }; - - /** - * @schema InstrumentationSpecGoResourceRequirements#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecGoResourceRequirementsRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoResourceRequirements(obj: InstrumentationSpecGoResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecGoResourceRequirementsClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoVolumeLimitSize - */ -export class InstrumentationSpecGoVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecGoVolumeLimitSize { - return new InstrumentationSpecGoVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecGoVolumeLimitSize { - return new InstrumentationSpecGoVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecJavaEnv - */ -export interface InstrumentationSpecJavaEnv { - /** - * @schema InstrumentationSpecJavaEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecJavaEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecJavaEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecJavaEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaEnv(obj: InstrumentationSpecJavaEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecJavaEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaExtensions - */ -export interface InstrumentationSpecJavaExtensions { - /** - * @schema InstrumentationSpecJavaExtensions#dir - */ - readonly dir: string; - - /** - * @schema InstrumentationSpecJavaExtensions#image - */ - readonly image: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaExtensions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaExtensions(obj: InstrumentationSpecJavaExtensions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'dir': obj.dir, - 'image': obj.image, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaResources - */ -export interface InstrumentationSpecJavaResources { - /** - * @schema InstrumentationSpecJavaResources#claims - */ - readonly claims?: InstrumentationSpecJavaResourcesClaims[]; - - /** - * @schema InstrumentationSpecJavaResources#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecJavaResourcesLimits }; - - /** - * @schema InstrumentationSpecJavaResources#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecJavaResourcesRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaResources(obj: InstrumentationSpecJavaResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecJavaResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaVolumeLimitSize - */ -export class InstrumentationSpecJavaVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecJavaVolumeLimitSize { - return new InstrumentationSpecJavaVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecJavaVolumeLimitSize { - return new InstrumentationSpecJavaVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNginxAttrs - */ -export interface InstrumentationSpecNginxAttrs { - /** - * @schema InstrumentationSpecNginxAttrs#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecNginxAttrs#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecNginxAttrs#valueFrom - */ - readonly valueFrom?: InstrumentationSpecNginxAttrsValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxAttrs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxAttrs(obj: InstrumentationSpecNginxAttrs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecNginxAttrsValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxEnv - */ -export interface InstrumentationSpecNginxEnv { - /** - * @schema InstrumentationSpecNginxEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecNginxEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecNginxEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecNginxEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxEnv(obj: InstrumentationSpecNginxEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecNginxEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxResourceRequirements - */ -export interface InstrumentationSpecNginxResourceRequirements { - /** - * @schema InstrumentationSpecNginxResourceRequirements#claims - */ - readonly claims?: InstrumentationSpecNginxResourceRequirementsClaims[]; - - /** - * @schema InstrumentationSpecNginxResourceRequirements#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecNginxResourceRequirementsLimits }; - - /** - * @schema InstrumentationSpecNginxResourceRequirements#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecNginxResourceRequirementsRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxResourceRequirements(obj: InstrumentationSpecNginxResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecNginxResourceRequirementsClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxVolumeLimitSize - */ -export class InstrumentationSpecNginxVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecNginxVolumeLimitSize { - return new InstrumentationSpecNginxVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecNginxVolumeLimitSize { - return new InstrumentationSpecNginxVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNodejsEnv - */ -export interface InstrumentationSpecNodejsEnv { - /** - * @schema InstrumentationSpecNodejsEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecNodejsEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecNodejsEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecNodejsEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsEnv(obj: InstrumentationSpecNodejsEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecNodejsEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsResourceRequirements - */ -export interface InstrumentationSpecNodejsResourceRequirements { - /** - * @schema InstrumentationSpecNodejsResourceRequirements#claims - */ - readonly claims?: InstrumentationSpecNodejsResourceRequirementsClaims[]; - - /** - * @schema InstrumentationSpecNodejsResourceRequirements#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecNodejsResourceRequirementsLimits }; - - /** - * @schema InstrumentationSpecNodejsResourceRequirements#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecNodejsResourceRequirementsRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsResourceRequirements(obj: InstrumentationSpecNodejsResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecNodejsResourceRequirementsClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsVolumeLimitSize - */ -export class InstrumentationSpecNodejsVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecNodejsVolumeLimitSize { - return new InstrumentationSpecNodejsVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecNodejsVolumeLimitSize { - return new InstrumentationSpecNodejsVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecPythonEnv - */ -export interface InstrumentationSpecPythonEnv { - /** - * @schema InstrumentationSpecPythonEnv#name - */ - readonly name: string; - - /** - * @schema InstrumentationSpecPythonEnv#value - */ - readonly value?: string; - - /** - * @schema InstrumentationSpecPythonEnv#valueFrom - */ - readonly valueFrom?: InstrumentationSpecPythonEnvValueFrom; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonEnv(obj: InstrumentationSpecPythonEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_InstrumentationSpecPythonEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonResourceRequirements - */ -export interface InstrumentationSpecPythonResourceRequirements { - /** - * @schema InstrumentationSpecPythonResourceRequirements#claims - */ - readonly claims?: InstrumentationSpecPythonResourceRequirementsClaims[]; - - /** - * @schema InstrumentationSpecPythonResourceRequirements#limits - */ - readonly limits?: { [key: string]: InstrumentationSpecPythonResourceRequirementsLimits }; - - /** - * @schema InstrumentationSpecPythonResourceRequirements#requests - */ - readonly requests?: { [key: string]: InstrumentationSpecPythonResourceRequirementsRequests }; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonResourceRequirements' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonResourceRequirements(obj: InstrumentationSpecPythonResourceRequirements | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_InstrumentationSpecPythonResourceRequirementsClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonVolumeLimitSize - */ -export class InstrumentationSpecPythonVolumeLimitSize { - public static fromNumber(value: number): InstrumentationSpecPythonVolumeLimitSize { - return new InstrumentationSpecPythonVolumeLimitSize(value); - } - public static fromString(value: string): InstrumentationSpecPythonVolumeLimitSize { - return new InstrumentationSpecPythonVolumeLimitSize(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecSamplerType - */ -export enum InstrumentationSpecSamplerType { - /** always_on */ - ALWAYS_UNDERSCORE_ON = "always_on", - /** always_off */ - ALWAYS_UNDERSCORE_OFF = "always_off", - /** traceidratio */ - TRACEIDRATIO = "traceidratio", - /** parentbased_always_on */ - PARENTBASED_UNDERSCORE_ALWAYS_UNDERSCORE_ON = "parentbased_always_on", - /** parentbased_always_off */ - PARENTBASED_UNDERSCORE_ALWAYS_UNDERSCORE_OFF = "parentbased_always_off", - /** parentbased_traceidratio */ - PARENTBASED_UNDERSCORE_TRACEIDRATIO = "parentbased_traceidratio", - /** jaeger_remote */ - JAEGER_UNDERSCORE_REMOTE = "jaeger_remote", - /** xray */ - XRAY = "xray", -} - -/** - * @schema InstrumentationSpecApacheHttpdAttrsValueFrom - */ -export interface InstrumentationSpecApacheHttpdAttrsValueFrom { - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecApacheHttpdAttrsValueFromFieldRef; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdAttrsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdAttrsValueFrom(obj: InstrumentationSpecApacheHttpdAttrsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecApacheHttpdAttrsValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdEnvValueFrom - */ -export interface InstrumentationSpecApacheHttpdEnvValueFrom { - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecApacheHttpdEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdEnvValueFrom(obj: InstrumentationSpecApacheHttpdEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecApacheHttpdEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdResourceRequirementsClaims - */ -export interface InstrumentationSpecApacheHttpdResourceRequirementsClaims { - /** - * @schema InstrumentationSpecApacheHttpdResourceRequirementsClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdResourceRequirementsClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdResourceRequirementsClaims(obj: InstrumentationSpecApacheHttpdResourceRequirementsClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdResourceRequirementsLimits - */ -export class InstrumentationSpecApacheHttpdResourceRequirementsLimits { - public static fromNumber(value: number): InstrumentationSpecApacheHttpdResourceRequirementsLimits { - return new InstrumentationSpecApacheHttpdResourceRequirementsLimits(value); - } - public static fromString(value: string): InstrumentationSpecApacheHttpdResourceRequirementsLimits { - return new InstrumentationSpecApacheHttpdResourceRequirementsLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecApacheHttpdResourceRequirementsRequests - */ -export class InstrumentationSpecApacheHttpdResourceRequirementsRequests { - public static fromNumber(value: number): InstrumentationSpecApacheHttpdResourceRequirementsRequests { - return new InstrumentationSpecApacheHttpdResourceRequirementsRequests(value); - } - public static fromString(value: string): InstrumentationSpecApacheHttpdResourceRequirementsRequests { - return new InstrumentationSpecApacheHttpdResourceRequirementsRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecDotnetEnvValueFrom - */ -export interface InstrumentationSpecDotnetEnvValueFrom { - /** - * @schema InstrumentationSpecDotnetEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecDotnetEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecDotnetEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecDotnetEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecDotnetEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecDotnetEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecDotnetEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetEnvValueFrom(obj: InstrumentationSpecDotnetEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecDotnetEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecDotnetEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecDotnetEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetResourceRequirementsClaims - */ -export interface InstrumentationSpecDotnetResourceRequirementsClaims { - /** - * @schema InstrumentationSpecDotnetResourceRequirementsClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetResourceRequirementsClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetResourceRequirementsClaims(obj: InstrumentationSpecDotnetResourceRequirementsClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetResourceRequirementsLimits - */ -export class InstrumentationSpecDotnetResourceRequirementsLimits { - public static fromNumber(value: number): InstrumentationSpecDotnetResourceRequirementsLimits { - return new InstrumentationSpecDotnetResourceRequirementsLimits(value); - } - public static fromString(value: string): InstrumentationSpecDotnetResourceRequirementsLimits { - return new InstrumentationSpecDotnetResourceRequirementsLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecDotnetResourceRequirementsRequests - */ -export class InstrumentationSpecDotnetResourceRequirementsRequests { - public static fromNumber(value: number): InstrumentationSpecDotnetResourceRequirementsRequests { - return new InstrumentationSpecDotnetResourceRequirementsRequests(value); - } - public static fromString(value: string): InstrumentationSpecDotnetResourceRequirementsRequests { - return new InstrumentationSpecDotnetResourceRequirementsRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecEnvValueFromFieldRef - */ -export interface InstrumentationSpecEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecEnvValueFromFieldRef(obj: InstrumentationSpecEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecEnvValueFromResourceFieldRef(obj: InstrumentationSpecEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecEnvValueFromSecretKeyRef(obj: InstrumentationSpecEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoEnvValueFrom - */ -export interface InstrumentationSpecGoEnvValueFrom { - /** - * @schema InstrumentationSpecGoEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecGoEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecGoEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecGoEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecGoEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecGoEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecGoEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecGoEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoEnvValueFrom(obj: InstrumentationSpecGoEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecGoEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecGoEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecGoEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecGoEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoResourceRequirementsClaims - */ -export interface InstrumentationSpecGoResourceRequirementsClaims { - /** - * @schema InstrumentationSpecGoResourceRequirementsClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoResourceRequirementsClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoResourceRequirementsClaims(obj: InstrumentationSpecGoResourceRequirementsClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoResourceRequirementsLimits - */ -export class InstrumentationSpecGoResourceRequirementsLimits { - public static fromNumber(value: number): InstrumentationSpecGoResourceRequirementsLimits { - return new InstrumentationSpecGoResourceRequirementsLimits(value); - } - public static fromString(value: string): InstrumentationSpecGoResourceRequirementsLimits { - return new InstrumentationSpecGoResourceRequirementsLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecGoResourceRequirementsRequests - */ -export class InstrumentationSpecGoResourceRequirementsRequests { - public static fromNumber(value: number): InstrumentationSpecGoResourceRequirementsRequests { - return new InstrumentationSpecGoResourceRequirementsRequests(value); - } - public static fromString(value: string): InstrumentationSpecGoResourceRequirementsRequests { - return new InstrumentationSpecGoResourceRequirementsRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecJavaEnvValueFrom - */ -export interface InstrumentationSpecJavaEnvValueFrom { - /** - * @schema InstrumentationSpecJavaEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecJavaEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecJavaEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecJavaEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecJavaEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecJavaEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecJavaEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecJavaEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaEnvValueFrom(obj: InstrumentationSpecJavaEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecJavaEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecJavaEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecJavaEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecJavaEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaResourcesClaims - */ -export interface InstrumentationSpecJavaResourcesClaims { - /** - * @schema InstrumentationSpecJavaResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaResourcesClaims(obj: InstrumentationSpecJavaResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaResourcesLimits - */ -export class InstrumentationSpecJavaResourcesLimits { - public static fromNumber(value: number): InstrumentationSpecJavaResourcesLimits { - return new InstrumentationSpecJavaResourcesLimits(value); - } - public static fromString(value: string): InstrumentationSpecJavaResourcesLimits { - return new InstrumentationSpecJavaResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecJavaResourcesRequests - */ -export class InstrumentationSpecJavaResourcesRequests { - public static fromNumber(value: number): InstrumentationSpecJavaResourcesRequests { - return new InstrumentationSpecJavaResourcesRequests(value); - } - public static fromString(value: string): InstrumentationSpecJavaResourcesRequests { - return new InstrumentationSpecJavaResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNginxAttrsValueFrom - */ -export interface InstrumentationSpecNginxAttrsValueFrom { - /** - * @schema InstrumentationSpecNginxAttrsValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecNginxAttrsValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecNginxAttrsValueFromFieldRef; - - /** - * @schema InstrumentationSpecNginxAttrsValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecNginxAttrsValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecNginxAttrsValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecNginxAttrsValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxAttrsValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxAttrsValueFrom(obj: InstrumentationSpecNginxAttrsValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecNginxAttrsValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecNginxAttrsValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecNginxAttrsValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxEnvValueFrom - */ -export interface InstrumentationSpecNginxEnvValueFrom { - /** - * @schema InstrumentationSpecNginxEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecNginxEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecNginxEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecNginxEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecNginxEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecNginxEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecNginxEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecNginxEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxEnvValueFrom(obj: InstrumentationSpecNginxEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecNginxEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecNginxEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecNginxEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecNginxEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxResourceRequirementsClaims - */ -export interface InstrumentationSpecNginxResourceRequirementsClaims { - /** - * @schema InstrumentationSpecNginxResourceRequirementsClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxResourceRequirementsClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxResourceRequirementsClaims(obj: InstrumentationSpecNginxResourceRequirementsClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxResourceRequirementsLimits - */ -export class InstrumentationSpecNginxResourceRequirementsLimits { - public static fromNumber(value: number): InstrumentationSpecNginxResourceRequirementsLimits { - return new InstrumentationSpecNginxResourceRequirementsLimits(value); - } - public static fromString(value: string): InstrumentationSpecNginxResourceRequirementsLimits { - return new InstrumentationSpecNginxResourceRequirementsLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNginxResourceRequirementsRequests - */ -export class InstrumentationSpecNginxResourceRequirementsRequests { - public static fromNumber(value: number): InstrumentationSpecNginxResourceRequirementsRequests { - return new InstrumentationSpecNginxResourceRequirementsRequests(value); - } - public static fromString(value: string): InstrumentationSpecNginxResourceRequirementsRequests { - return new InstrumentationSpecNginxResourceRequirementsRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNodejsEnvValueFrom - */ -export interface InstrumentationSpecNodejsEnvValueFrom { - /** - * @schema InstrumentationSpecNodejsEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecNodejsEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecNodejsEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecNodejsEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecNodejsEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecNodejsEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecNodejsEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsEnvValueFrom(obj: InstrumentationSpecNodejsEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecNodejsEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecNodejsEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecNodejsEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsResourceRequirementsClaims - */ -export interface InstrumentationSpecNodejsResourceRequirementsClaims { - /** - * @schema InstrumentationSpecNodejsResourceRequirementsClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsResourceRequirementsClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsResourceRequirementsClaims(obj: InstrumentationSpecNodejsResourceRequirementsClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsResourceRequirementsLimits - */ -export class InstrumentationSpecNodejsResourceRequirementsLimits { - public static fromNumber(value: number): InstrumentationSpecNodejsResourceRequirementsLimits { - return new InstrumentationSpecNodejsResourceRequirementsLimits(value); - } - public static fromString(value: string): InstrumentationSpecNodejsResourceRequirementsLimits { - return new InstrumentationSpecNodejsResourceRequirementsLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNodejsResourceRequirementsRequests - */ -export class InstrumentationSpecNodejsResourceRequirementsRequests { - public static fromNumber(value: number): InstrumentationSpecNodejsResourceRequirementsRequests { - return new InstrumentationSpecNodejsResourceRequirementsRequests(value); - } - public static fromString(value: string): InstrumentationSpecNodejsResourceRequirementsRequests { - return new InstrumentationSpecNodejsResourceRequirementsRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecPythonEnvValueFrom - */ -export interface InstrumentationSpecPythonEnvValueFrom { - /** - * @schema InstrumentationSpecPythonEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: InstrumentationSpecPythonEnvValueFromConfigMapKeyRef; - - /** - * @schema InstrumentationSpecPythonEnvValueFrom#fieldRef - */ - readonly fieldRef?: InstrumentationSpecPythonEnvValueFromFieldRef; - - /** - * @schema InstrumentationSpecPythonEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: InstrumentationSpecPythonEnvValueFromResourceFieldRef; - - /** - * @schema InstrumentationSpecPythonEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: InstrumentationSpecPythonEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonEnvValueFrom(obj: InstrumentationSpecPythonEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_InstrumentationSpecPythonEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_InstrumentationSpecPythonEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_InstrumentationSpecPythonEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_InstrumentationSpecPythonEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonResourceRequirementsClaims - */ -export interface InstrumentationSpecPythonResourceRequirementsClaims { - /** - * @schema InstrumentationSpecPythonResourceRequirementsClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonResourceRequirementsClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonResourceRequirementsClaims(obj: InstrumentationSpecPythonResourceRequirementsClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonResourceRequirementsLimits - */ -export class InstrumentationSpecPythonResourceRequirementsLimits { - public static fromNumber(value: number): InstrumentationSpecPythonResourceRequirementsLimits { - return new InstrumentationSpecPythonResourceRequirementsLimits(value); - } - public static fromString(value: string): InstrumentationSpecPythonResourceRequirementsLimits { - return new InstrumentationSpecPythonResourceRequirementsLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecPythonResourceRequirementsRequests - */ -export class InstrumentationSpecPythonResourceRequirementsRequests { - public static fromNumber(value: number): InstrumentationSpecPythonResourceRequirementsRequests { - return new InstrumentationSpecPythonResourceRequirementsRequests(value); - } - public static fromString(value: string): InstrumentationSpecPythonResourceRequirementsRequests { - return new InstrumentationSpecPythonResourceRequirementsRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef(obj: InstrumentationSpecApacheHttpdAttrsValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromFieldRef - */ -export interface InstrumentationSpecApacheHttpdAttrsValueFromFieldRef { - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdAttrsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdAttrsValueFromFieldRef(obj: InstrumentationSpecApacheHttpdAttrsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef - */ -export interface InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef(obj: InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef - */ -export interface InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef(obj: InstrumentationSpecApacheHttpdAttrsValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecApacheHttpdEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdEnvValueFromFieldRef - */ -export interface InstrumentationSpecApacheHttpdEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdEnvValueFromFieldRef(obj: InstrumentationSpecApacheHttpdEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef(obj: InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef(obj: InstrumentationSpecApacheHttpdEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecDotnetEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetEnvValueFromFieldRef - */ -export interface InstrumentationSpecDotnetEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecDotnetEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetEnvValueFromFieldRef(obj: InstrumentationSpecDotnetEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecDotnetEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecDotnetEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetEnvValueFromResourceFieldRef(obj: InstrumentationSpecDotnetEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecDotnetEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecDotnetEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecDotnetEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecDotnetEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecDotnetEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecDotnetEnvValueFromSecretKeyRef(obj: InstrumentationSpecDotnetEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecGoEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecGoEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecGoEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecGoEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecGoEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecGoEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoEnvValueFromFieldRef - */ -export interface InstrumentationSpecGoEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecGoEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecGoEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoEnvValueFromFieldRef(obj: InstrumentationSpecGoEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecGoEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecGoEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecGoEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecGoEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoEnvValueFromResourceFieldRef(obj: InstrumentationSpecGoEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecGoEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecGoEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecGoEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecGoEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecGoEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecGoEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecGoEnvValueFromSecretKeyRef(obj: InstrumentationSpecGoEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecJavaEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecJavaEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecJavaEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecJavaEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecJavaEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaEnvValueFromFieldRef - */ -export interface InstrumentationSpecJavaEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecJavaEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecJavaEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaEnvValueFromFieldRef(obj: InstrumentationSpecJavaEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecJavaEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecJavaEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecJavaEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecJavaEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaEnvValueFromResourceFieldRef(obj: InstrumentationSpecJavaEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecJavaEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecJavaEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecJavaEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecJavaEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecJavaEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecJavaEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecJavaEnvValueFromSecretKeyRef(obj: InstrumentationSpecJavaEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef(obj: InstrumentationSpecNginxAttrsValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxAttrsValueFromFieldRef - */ -export interface InstrumentationSpecNginxAttrsValueFromFieldRef { - /** - * @schema InstrumentationSpecNginxAttrsValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxAttrsValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxAttrsValueFromFieldRef(obj: InstrumentationSpecNginxAttrsValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxAttrsValueFromResourceFieldRef - */ -export interface InstrumentationSpecNginxAttrsValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecNginxAttrsValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxAttrsValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxAttrsValueFromResourceFieldRef(obj: InstrumentationSpecNginxAttrsValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxAttrsValueFromSecretKeyRef - */ -export interface InstrumentationSpecNginxAttrsValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecNginxAttrsValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecNginxAttrsValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxAttrsValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxAttrsValueFromSecretKeyRef(obj: InstrumentationSpecNginxAttrsValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecNginxEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecNginxEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecNginxEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecNginxEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecNginxEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxEnvValueFromFieldRef - */ -export interface InstrumentationSpecNginxEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecNginxEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecNginxEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxEnvValueFromFieldRef(obj: InstrumentationSpecNginxEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecNginxEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecNginxEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecNginxEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecNginxEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxEnvValueFromResourceFieldRef(obj: InstrumentationSpecNginxEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNginxEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecNginxEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecNginxEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecNginxEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecNginxEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecNginxEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNginxEnvValueFromSecretKeyRef(obj: InstrumentationSpecNginxEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecNodejsEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsEnvValueFromFieldRef - */ -export interface InstrumentationSpecNodejsEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecNodejsEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsEnvValueFromFieldRef(obj: InstrumentationSpecNodejsEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecNodejsEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecNodejsEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsEnvValueFromResourceFieldRef(obj: InstrumentationSpecNodejsEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecNodejsEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecNodejsEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecNodejsEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecNodejsEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecNodejsEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecNodejsEnvValueFromSecretKeyRef(obj: InstrumentationSpecNodejsEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonEnvValueFromConfigMapKeyRef - */ -export interface InstrumentationSpecPythonEnvValueFromConfigMapKeyRef { - /** - * @schema InstrumentationSpecPythonEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecPythonEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecPythonEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonEnvValueFromConfigMapKeyRef(obj: InstrumentationSpecPythonEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonEnvValueFromFieldRef - */ -export interface InstrumentationSpecPythonEnvValueFromFieldRef { - /** - * @schema InstrumentationSpecPythonEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema InstrumentationSpecPythonEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonEnvValueFromFieldRef(obj: InstrumentationSpecPythonEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonEnvValueFromResourceFieldRef - */ -export interface InstrumentationSpecPythonEnvValueFromResourceFieldRef { - /** - * @schema InstrumentationSpecPythonEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema InstrumentationSpecPythonEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor; - - /** - * @schema InstrumentationSpecPythonEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonEnvValueFromResourceFieldRef(obj: InstrumentationSpecPythonEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecPythonEnvValueFromSecretKeyRef - */ -export interface InstrumentationSpecPythonEnvValueFromSecretKeyRef { - /** - * @schema InstrumentationSpecPythonEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema InstrumentationSpecPythonEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema InstrumentationSpecPythonEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'InstrumentationSpecPythonEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_InstrumentationSpecPythonEnvValueFromSecretKeyRef(obj: InstrumentationSpecPythonEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor { - return new InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor { - return new InstrumentationSpecApacheHttpdAttrsValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecApacheHttpdEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecDotnetEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecGoEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecJavaEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor { - return new InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor { - return new InstrumentationSpecNginxAttrsValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecNginxEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecNodejsEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor - */ -export class InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor { - return new InstrumentationSpecPythonEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - - -/** - * - * - * @schema OpenTelemetryCollector - */ -export class OpenTelemetryCollector extends ApiObject { - /** - * Returns the apiVersion and kind for "OpenTelemetryCollector" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'opentelemetry.io/v1alpha1', - kind: 'OpenTelemetryCollector', - } - - /** - * Renders a Kubernetes manifest for "OpenTelemetryCollector". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: OpenTelemetryCollectorProps = {}): any { - return { - ...OpenTelemetryCollector.GVK, - ...toJson_OpenTelemetryCollectorProps(props), - }; - } - - /** - * Defines a "OpenTelemetryCollector" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: OpenTelemetryCollectorProps = {}) { - super(scope, id, { - ...OpenTelemetryCollector.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...OpenTelemetryCollector.GVK, - ...toJson_OpenTelemetryCollectorProps(resolved), - }; - } -} - -/** - * @schema OpenTelemetryCollector - */ -export interface OpenTelemetryCollectorProps { - /** - * @schema OpenTelemetryCollector#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * @schema OpenTelemetryCollector#spec - */ - readonly spec?: OpenTelemetryCollectorSpec; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorProps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorProps(obj: OpenTelemetryCollectorProps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_OpenTelemetryCollectorSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpec - */ -export interface OpenTelemetryCollectorSpec { - /** - * @schema OpenTelemetryCollectorSpec#additionalContainers - */ - readonly additionalContainers?: OpenTelemetryCollectorSpecAdditionalContainers[]; - - /** - * @schema OpenTelemetryCollectorSpec#affinity - */ - readonly affinity?: OpenTelemetryCollectorSpecAffinity; - - /** - * @schema OpenTelemetryCollectorSpec#args - */ - readonly args?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpec#autoscaler - */ - readonly autoscaler?: OpenTelemetryCollectorSpecAutoscaler; - - /** - * @schema OpenTelemetryCollectorSpec#config - */ - readonly config?: string; - - /** - * @schema OpenTelemetryCollectorSpec#configmaps - */ - readonly configmaps?: OpenTelemetryCollectorSpecConfigmaps[]; - - /** - * @schema OpenTelemetryCollectorSpec#deploymentUpdateStrategy - */ - readonly deploymentUpdateStrategy?: OpenTelemetryCollectorSpecDeploymentUpdateStrategy; - - /** - * @schema OpenTelemetryCollectorSpec#env - */ - readonly env?: OpenTelemetryCollectorSpecEnv[]; - - /** - * @schema OpenTelemetryCollectorSpec#envFrom - */ - readonly envFrom?: OpenTelemetryCollectorSpecEnvFrom[]; - - /** - * @schema OpenTelemetryCollectorSpec#hostNetwork - */ - readonly hostNetwork?: boolean; - - /** - * @schema OpenTelemetryCollectorSpec#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorSpec#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpec#ingress - */ - readonly ingress?: OpenTelemetryCollectorSpecIngress; - - /** - * @schema OpenTelemetryCollectorSpec#initContainers - */ - readonly initContainers?: OpenTelemetryCollectorSpecInitContainers[]; - - /** - * @schema OpenTelemetryCollectorSpec#lifecycle - */ - readonly lifecycle?: OpenTelemetryCollectorSpecLifecycle; - - /** - * @schema OpenTelemetryCollectorSpec#livenessProbe - */ - readonly livenessProbe?: OpenTelemetryCollectorSpecLivenessProbe; - - /** - * @schema OpenTelemetryCollectorSpec#managementState - */ - readonly managementState?: OpenTelemetryCollectorSpecManagementState; - - /** - * @schema OpenTelemetryCollectorSpec#maxReplicas - */ - readonly maxReplicas?: number; - - /** - * @schema OpenTelemetryCollectorSpec#minReplicas - */ - readonly minReplicas?: number; - - /** - * @schema OpenTelemetryCollectorSpec#mode - */ - readonly mode?: OpenTelemetryCollectorSpecMode; - - /** - * @schema OpenTelemetryCollectorSpec#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpec#observability - */ - readonly observability?: OpenTelemetryCollectorSpecObservability; - - /** - * @schema OpenTelemetryCollectorSpec#podAnnotations - */ - readonly podAnnotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpec#podDisruptionBudget - */ - readonly podDisruptionBudget?: OpenTelemetryCollectorSpecPodDisruptionBudget; - - /** - * @schema OpenTelemetryCollectorSpec#podSecurityContext - */ - readonly podSecurityContext?: OpenTelemetryCollectorSpecPodSecurityContext; - - /** - * @schema OpenTelemetryCollectorSpec#ports - */ - readonly ports?: OpenTelemetryCollectorSpecPorts[]; - - /** - * @schema OpenTelemetryCollectorSpec#priorityClassName - */ - readonly priorityClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpec#replicas - */ - readonly replicas?: number; - - /** - * @schema OpenTelemetryCollectorSpec#resources - */ - readonly resources?: OpenTelemetryCollectorSpecResources; - - /** - * @schema OpenTelemetryCollectorSpec#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorSpecSecurityContext; - - /** - * @schema OpenTelemetryCollectorSpec#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * @schema OpenTelemetryCollectorSpec#shareProcessNamespace - */ - readonly shareProcessNamespace?: boolean; - - /** - * @schema OpenTelemetryCollectorSpec#targetAllocator - */ - readonly targetAllocator?: OpenTelemetryCollectorSpecTargetAllocator; - - /** - * @schema OpenTelemetryCollectorSpec#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpec#tolerations - */ - readonly tolerations?: OpenTelemetryCollectorSpecTolerations[]; - - /** - * @schema OpenTelemetryCollectorSpec#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: OpenTelemetryCollectorSpecTopologySpreadConstraints[]; - - /** - * @schema OpenTelemetryCollectorSpec#updateStrategy - */ - readonly updateStrategy?: OpenTelemetryCollectorSpecUpdateStrategy; - - /** - * @schema OpenTelemetryCollectorSpec#upgradeStrategy - */ - readonly upgradeStrategy?: OpenTelemetryCollectorSpecUpgradeStrategy; - - /** - * @schema OpenTelemetryCollectorSpec#volumeClaimTemplates - */ - readonly volumeClaimTemplates?: OpenTelemetryCollectorSpecVolumeClaimTemplates[]; - - /** - * @schema OpenTelemetryCollectorSpec#volumeMounts - */ - readonly volumeMounts?: OpenTelemetryCollectorSpecVolumeMounts[]; - - /** - * @schema OpenTelemetryCollectorSpec#volumes - */ - readonly volumes?: OpenTelemetryCollectorSpecVolumes[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpec(obj: OpenTelemetryCollectorSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'additionalContainers': obj.additionalContainers?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainers(y)), - 'affinity': toJson_OpenTelemetryCollectorSpecAffinity(obj.affinity), - 'args': ((obj.args) === undefined) ? undefined : (Object.entries(obj.args).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'autoscaler': toJson_OpenTelemetryCollectorSpecAutoscaler(obj.autoscaler), - 'config': obj.config, - 'configmaps': obj.configmaps?.map(y => toJson_OpenTelemetryCollectorSpecConfigmaps(y)), - 'deploymentUpdateStrategy': toJson_OpenTelemetryCollectorSpecDeploymentUpdateStrategy(obj.deploymentUpdateStrategy), - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorSpecEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_OpenTelemetryCollectorSpecEnvFrom(y)), - 'hostNetwork': obj.hostNetwork, - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'ingress': toJson_OpenTelemetryCollectorSpecIngress(obj.ingress), - 'initContainers': obj.initContainers?.map(y => toJson_OpenTelemetryCollectorSpecInitContainers(y)), - 'lifecycle': toJson_OpenTelemetryCollectorSpecLifecycle(obj.lifecycle), - 'livenessProbe': toJson_OpenTelemetryCollectorSpecLivenessProbe(obj.livenessProbe), - 'managementState': obj.managementState, - 'maxReplicas': obj.maxReplicas, - 'minReplicas': obj.minReplicas, - 'mode': obj.mode, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'observability': toJson_OpenTelemetryCollectorSpecObservability(obj.observability), - 'podAnnotations': ((obj.podAnnotations) === undefined) ? undefined : (Object.entries(obj.podAnnotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'podDisruptionBudget': toJson_OpenTelemetryCollectorSpecPodDisruptionBudget(obj.podDisruptionBudget), - 'podSecurityContext': toJson_OpenTelemetryCollectorSpecPodSecurityContext(obj.podSecurityContext), - 'ports': obj.ports?.map(y => toJson_OpenTelemetryCollectorSpecPorts(y)), - 'priorityClassName': obj.priorityClassName, - 'replicas': obj.replicas, - 'resources': toJson_OpenTelemetryCollectorSpecResources(obj.resources), - 'securityContext': toJson_OpenTelemetryCollectorSpecSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'shareProcessNamespace': obj.shareProcessNamespace, - 'targetAllocator': toJson_OpenTelemetryCollectorSpecTargetAllocator(obj.targetAllocator), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'tolerations': obj.tolerations?.map(y => toJson_OpenTelemetryCollectorSpecTolerations(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_OpenTelemetryCollectorSpecTopologySpreadConstraints(y)), - 'updateStrategy': toJson_OpenTelemetryCollectorSpecUpdateStrategy(obj.updateStrategy), - 'upgradeStrategy': obj.upgradeStrategy, - 'volumeClaimTemplates': obj.volumeClaimTemplates?.map(y => toJson_OpenTelemetryCollectorSpecVolumeClaimTemplates(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_OpenTelemetryCollectorSpecVolumeMounts(y)), - 'volumes': obj.volumes?.map(y => toJson_OpenTelemetryCollectorSpecVolumes(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainers - */ -export interface OpenTelemetryCollectorSpecAdditionalContainers { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#args - */ - readonly args?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#command - */ - readonly command?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#env - */ - readonly env?: OpenTelemetryCollectorSpecAdditionalContainersEnv[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#envFrom - */ - readonly envFrom?: OpenTelemetryCollectorSpecAdditionalContainersEnvFrom[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#lifecycle - */ - readonly lifecycle?: OpenTelemetryCollectorSpecAdditionalContainersLifecycle; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#livenessProbe - */ - readonly livenessProbe?: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#ports - */ - readonly ports?: OpenTelemetryCollectorSpecAdditionalContainersPorts[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#readinessProbe - */ - readonly readinessProbe?: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#resizePolicy - */ - readonly resizePolicy?: OpenTelemetryCollectorSpecAdditionalContainersResizePolicy[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#resources - */ - readonly resources?: OpenTelemetryCollectorSpecAdditionalContainersResources; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorSpecAdditionalContainersSecurityContext; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#startupProbe - */ - readonly startupProbe?: OpenTelemetryCollectorSpecAdditionalContainersStartupProbe; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#volumeDevices - */ - readonly volumeDevices?: OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#volumeMounts - */ - readonly volumeMounts?: OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainers(obj: OpenTelemetryCollectorSpecAdditionalContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersPorts(y)), - 'readinessProbe': toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe(obj.readinessProbe), - 'resizePolicy': obj.resizePolicy?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersResizePolicy(y)), - 'resources': toJson_OpenTelemetryCollectorSpecAdditionalContainersResources(obj.resources), - 'restartPolicy': obj.restartPolicy, - 'securityContext': toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinity - */ -export interface OpenTelemetryCollectorSpecAffinity { - /** - * @schema OpenTelemetryCollectorSpecAffinity#nodeAffinity - */ - readonly nodeAffinity?: OpenTelemetryCollectorSpecAffinityNodeAffinity; - - /** - * @schema OpenTelemetryCollectorSpecAffinity#podAffinity - */ - readonly podAffinity?: OpenTelemetryCollectorSpecAffinityPodAffinity; - - /** - * @schema OpenTelemetryCollectorSpecAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: OpenTelemetryCollectorSpecAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinity(obj: OpenTelemetryCollectorSpecAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_OpenTelemetryCollectorSpecAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_OpenTelemetryCollectorSpecAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscaler - */ -export interface OpenTelemetryCollectorSpecAutoscaler { - /** - * @schema OpenTelemetryCollectorSpecAutoscaler#behavior - */ - readonly behavior?: OpenTelemetryCollectorSpecAutoscalerBehavior; - - /** - * @schema OpenTelemetryCollectorSpecAutoscaler#maxReplicas - */ - readonly maxReplicas?: number; - - /** - * @schema OpenTelemetryCollectorSpecAutoscaler#metrics - */ - readonly metrics?: OpenTelemetryCollectorSpecAutoscalerMetrics[]; - - /** - * @schema OpenTelemetryCollectorSpecAutoscaler#minReplicas - */ - readonly minReplicas?: number; - - /** - * @schema OpenTelemetryCollectorSpecAutoscaler#targetCPUUtilization - */ - readonly targetCpuUtilization?: number; - - /** - * @schema OpenTelemetryCollectorSpecAutoscaler#targetMemoryUtilization - */ - readonly targetMemoryUtilization?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscaler' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscaler(obj: OpenTelemetryCollectorSpecAutoscaler | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'behavior': toJson_OpenTelemetryCollectorSpecAutoscalerBehavior(obj.behavior), - 'maxReplicas': obj.maxReplicas, - 'metrics': obj.metrics?.map(y => toJson_OpenTelemetryCollectorSpecAutoscalerMetrics(y)), - 'minReplicas': obj.minReplicas, - 'targetCPUUtilization': obj.targetCpuUtilization, - 'targetMemoryUtilization': obj.targetMemoryUtilization, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecConfigmaps - */ -export interface OpenTelemetryCollectorSpecConfigmaps { - /** - * @schema OpenTelemetryCollectorSpecConfigmaps#mountpath - */ - readonly mountpath: string; - - /** - * @schema OpenTelemetryCollectorSpecConfigmaps#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecConfigmaps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecConfigmaps(obj: OpenTelemetryCollectorSpecConfigmaps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountpath': obj.mountpath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategy - */ -export interface OpenTelemetryCollectorSpecDeploymentUpdateStrategy { - /** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate; - - /** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecDeploymentUpdateStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecDeploymentUpdateStrategy(obj: OpenTelemetryCollectorSpecDeploymentUpdateStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnv - */ -export interface OpenTelemetryCollectorSpecEnv { - /** - * @schema OpenTelemetryCollectorSpecEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorSpecEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnv(obj: OpenTelemetryCollectorSpecEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorSpecEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvFrom - */ -export interface OpenTelemetryCollectorSpecEnvFrom { - /** - * @schema OpenTelemetryCollectorSpecEnvFrom#configMapRef - */ - readonly configMapRef?: OpenTelemetryCollectorSpecEnvFromConfigMapRef; - - /** - * @schema OpenTelemetryCollectorSpecEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvFrom#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecEnvFromSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvFrom(obj: OpenTelemetryCollectorSpecEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_OpenTelemetryCollectorSpecEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_OpenTelemetryCollectorSpecEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecIngress - */ -export interface OpenTelemetryCollectorSpecIngress { - /** - * @schema OpenTelemetryCollectorSpecIngress#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecIngress#hostname - */ - readonly hostname?: string; - - /** - * @schema OpenTelemetryCollectorSpecIngress#ingressClassName - */ - readonly ingressClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpecIngress#route - */ - readonly route?: OpenTelemetryCollectorSpecIngressRoute; - - /** - * @schema OpenTelemetryCollectorSpecIngress#ruleType - */ - readonly ruleType?: OpenTelemetryCollectorSpecIngressRuleType; - - /** - * @schema OpenTelemetryCollectorSpecIngress#tls - */ - readonly tls?: OpenTelemetryCollectorSpecIngressTls[]; - - /** - * @schema OpenTelemetryCollectorSpecIngress#type - */ - readonly type?: OpenTelemetryCollectorSpecIngressType; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecIngress' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecIngress(obj: OpenTelemetryCollectorSpecIngress | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'hostname': obj.hostname, - 'ingressClassName': obj.ingressClassName, - 'route': toJson_OpenTelemetryCollectorSpecIngressRoute(obj.route), - 'ruleType': obj.ruleType, - 'tls': obj.tls?.map(y => toJson_OpenTelemetryCollectorSpecIngressTls(y)), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainers - */ -export interface OpenTelemetryCollectorSpecInitContainers { - /** - * @schema OpenTelemetryCollectorSpecInitContainers#args - */ - readonly args?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#command - */ - readonly command?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#env - */ - readonly env?: OpenTelemetryCollectorSpecInitContainersEnv[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#envFrom - */ - readonly envFrom?: OpenTelemetryCollectorSpecInitContainersEnvFrom[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#lifecycle - */ - readonly lifecycle?: OpenTelemetryCollectorSpecInitContainersLifecycle; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#livenessProbe - */ - readonly livenessProbe?: OpenTelemetryCollectorSpecInitContainersLivenessProbe; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#ports - */ - readonly ports?: OpenTelemetryCollectorSpecInitContainersPorts[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#readinessProbe - */ - readonly readinessProbe?: OpenTelemetryCollectorSpecInitContainersReadinessProbe; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#resizePolicy - */ - readonly resizePolicy?: OpenTelemetryCollectorSpecInitContainersResizePolicy[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#resources - */ - readonly resources?: OpenTelemetryCollectorSpecInitContainersResources; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorSpecInitContainersSecurityContext; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#startupProbe - */ - readonly startupProbe?: OpenTelemetryCollectorSpecInitContainersStartupProbe; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#volumeDevices - */ - readonly volumeDevices?: OpenTelemetryCollectorSpecInitContainersVolumeDevices[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#volumeMounts - */ - readonly volumeMounts?: OpenTelemetryCollectorSpecInitContainersVolumeMounts[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainers(obj: OpenTelemetryCollectorSpecInitContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_OpenTelemetryCollectorSpecInitContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersPorts(y)), - 'readinessProbe': toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbe(obj.readinessProbe), - 'resizePolicy': obj.resizePolicy?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersResizePolicy(y)), - 'resources': toJson_OpenTelemetryCollectorSpecInitContainersResources(obj.resources), - 'restartPolicy': obj.restartPolicy, - 'securityContext': toJson_OpenTelemetryCollectorSpecInitContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_OpenTelemetryCollectorSpecInitContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecycle - */ -export interface OpenTelemetryCollectorSpecLifecycle { - /** - * @schema OpenTelemetryCollectorSpecLifecycle#postStart - */ - readonly postStart?: OpenTelemetryCollectorSpecLifecyclePostStart; - - /** - * @schema OpenTelemetryCollectorSpecLifecycle#preStop - */ - readonly preStop?: OpenTelemetryCollectorSpecLifecyclePreStop; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecycle(obj: OpenTelemetryCollectorSpecLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_OpenTelemetryCollectorSpecLifecyclePostStart(obj.postStart), - 'preStop': toJson_OpenTelemetryCollectorSpecLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLivenessProbe - */ -export interface OpenTelemetryCollectorSpecLivenessProbe { - /** - * @schema OpenTelemetryCollectorSpecLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLivenessProbe(obj: OpenTelemetryCollectorSpecLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'failureThreshold': obj.failureThreshold, - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecManagementState - */ -export enum OpenTelemetryCollectorSpecManagementState { - /** managed */ - MANAGED = "managed", - /** unmanaged */ - UNMANAGED = "unmanaged", -} - -/** - * @schema OpenTelemetryCollectorSpecMode - */ -export enum OpenTelemetryCollectorSpecMode { - /** daemonset */ - DAEMONSET = "daemonset", - /** deployment */ - DEPLOYMENT = "deployment", - /** sidecar */ - SIDECAR = "sidecar", - /** statefulset */ - STATEFULSET = "statefulset", -} - -/** - * @schema OpenTelemetryCollectorSpecObservability - */ -export interface OpenTelemetryCollectorSpecObservability { - /** - * @schema OpenTelemetryCollectorSpecObservability#metrics - */ - readonly metrics?: OpenTelemetryCollectorSpecObservabilityMetrics; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecObservability' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecObservability(obj: OpenTelemetryCollectorSpecObservability | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metrics': toJson_OpenTelemetryCollectorSpecObservabilityMetrics(obj.metrics), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodDisruptionBudget - */ -export interface OpenTelemetryCollectorSpecPodDisruptionBudget { - /** - * @schema OpenTelemetryCollectorSpecPodDisruptionBudget#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable; - - /** - * @schema OpenTelemetryCollectorSpecPodDisruptionBudget#minAvailable - */ - readonly minAvailable?: OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodDisruptionBudget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodDisruptionBudget(obj: OpenTelemetryCollectorSpecPodDisruptionBudget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxUnavailable': obj.maxUnavailable?.value, - 'minAvailable': obj.minAvailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodSecurityContext - */ -export interface OpenTelemetryCollectorSpecPodSecurityContext { - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#sysctls - */ - readonly sysctls?: OpenTelemetryCollectorSpecPodSecurityContextSysctls[]; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodSecurityContext(obj: OpenTelemetryCollectorSpecPodSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appArmorProfile': toJson_OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile(obj.appArmorProfile), - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_OpenTelemetryCollectorSpecPodSecurityContextSysctls(y)), - 'windowsOptions': toJson_OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPorts - */ -export interface OpenTelemetryCollectorSpecPorts { - /** - * @schema OpenTelemetryCollectorSpecPorts#appProtocol - */ - readonly appProtocol?: string; - - /** - * @schema OpenTelemetryCollectorSpecPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema OpenTelemetryCollectorSpecPorts#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecPorts#nodePort - */ - readonly nodePort?: number; - - /** - * @schema OpenTelemetryCollectorSpecPorts#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecPorts#protocol - */ - readonly protocol?: string; - - /** - * @schema OpenTelemetryCollectorSpecPorts#targetPort - */ - readonly targetPort?: OpenTelemetryCollectorSpecPortsTargetPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPorts(obj: OpenTelemetryCollectorSpecPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appProtocol': obj.appProtocol, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'nodePort': obj.nodePort, - 'port': obj.port, - 'protocol': obj.protocol, - 'targetPort': obj.targetPort?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecResources - */ -export interface OpenTelemetryCollectorSpecResources { - /** - * @schema OpenTelemetryCollectorSpecResources#claims - */ - readonly claims?: OpenTelemetryCollectorSpecResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorSpecResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorSpecResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorSpecResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorSpecResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecResources(obj: OpenTelemetryCollectorSpecResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorSpecResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecSecurityContext - */ -export interface OpenTelemetryCollectorSpecSecurityContext { - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorSpecSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorSpecSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorSpecSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorSpecSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecSecurityContext(obj: OpenTelemetryCollectorSpecSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorSpecSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorSpecSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorSpecSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorSpecSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocator - */ -export interface OpenTelemetryCollectorSpecTargetAllocator { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#affinity - */ - readonly affinity?: OpenTelemetryCollectorSpecTargetAllocatorAffinity; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#allocationStrategy - */ - readonly allocationStrategy?: OpenTelemetryCollectorSpecTargetAllocatorAllocationStrategy; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#enabled - */ - readonly enabled?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#env - */ - readonly env?: OpenTelemetryCollectorSpecTargetAllocatorEnv[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#filterStrategy - */ - readonly filterStrategy?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#observability - */ - readonly observability?: OpenTelemetryCollectorSpecTargetAllocatorObservability; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#podDisruptionBudget - */ - readonly podDisruptionBudget?: OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#podSecurityContext - */ - readonly podSecurityContext?: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#prometheusCR - */ - readonly prometheusCr?: OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#replicas - */ - readonly replicas?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#resources - */ - readonly resources?: OpenTelemetryCollectorSpecTargetAllocatorResources; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorSpecTargetAllocatorSecurityContext; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#tolerations - */ - readonly tolerations?: OpenTelemetryCollectorSpecTargetAllocatorTolerations[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocator#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocator' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocator(obj: OpenTelemetryCollectorSpecTargetAllocator | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'affinity': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinity(obj.affinity), - 'allocationStrategy': obj.allocationStrategy, - 'enabled': obj.enabled, - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorEnv(y)), - 'filterStrategy': obj.filterStrategy, - 'image': obj.image, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'observability': toJson_OpenTelemetryCollectorSpecTargetAllocatorObservability(obj.observability), - 'podDisruptionBudget': toJson_OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget(obj.podDisruptionBudget), - 'podSecurityContext': toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext(obj.podSecurityContext), - 'prometheusCR': toJson_OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr(obj.prometheusCr), - 'replicas': obj.replicas, - 'resources': toJson_OpenTelemetryCollectorSpecTargetAllocatorResources(obj.resources), - 'securityContext': toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'tolerations': obj.tolerations?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorTolerations(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTolerations - */ -export interface OpenTelemetryCollectorSpecTolerations { - /** - * @schema OpenTelemetryCollectorSpecTolerations#effect - */ - readonly effect?: string; - - /** - * @schema OpenTelemetryCollectorSpecTolerations#key - */ - readonly key?: string; - - /** - * @schema OpenTelemetryCollectorSpecTolerations#operator - */ - readonly operator?: string; - - /** - * @schema OpenTelemetryCollectorSpecTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTolerations(obj: OpenTelemetryCollectorSpecTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints - */ -export interface OpenTelemetryCollectorSpecTopologySpreadConstraints { - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#maxSkew - */ - readonly maxSkew: number; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#minDomains - */ - readonly minDomains?: number; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#topologyKey - */ - readonly topologyKey: string; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraints#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTopologySpreadConstraints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTopologySpreadConstraints(obj: OpenTelemetryCollectorSpecTopologySpreadConstraints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecUpdateStrategy - */ -export interface OpenTelemetryCollectorSpecUpdateStrategy { - /** - * @schema OpenTelemetryCollectorSpecUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate; - - /** - * @schema OpenTelemetryCollectorSpecUpdateStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecUpdateStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecUpdateStrategy(obj: OpenTelemetryCollectorSpecUpdateStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecUpgradeStrategy - */ -export enum OpenTelemetryCollectorSpecUpgradeStrategy { - /** automatic */ - AUTOMATIC = "automatic", - /** none */ - NONE = "none", -} - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplates - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplates { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplates#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplates#kind - */ - readonly kind?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplates#metadata - */ - readonly metadata?: OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplates#spec - */ - readonly spec?: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplates#status - */ - readonly status?: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplates(obj: OpenTelemetryCollectorSpecVolumeClaimTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - 'metadata': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata(obj.metadata), - 'spec': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec(obj.spec), - 'status': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus(obj.status), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeMounts - */ -export interface OpenTelemetryCollectorSpecVolumeMounts { - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#recursiveReadOnly - */ - readonly recursiveReadOnly?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeMounts(obj: OpenTelemetryCollectorSpecVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'recursiveReadOnly': obj.recursiveReadOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumes - */ -export interface OpenTelemetryCollectorSpecVolumes { - /** - * @schema OpenTelemetryCollectorSpecVolumes#awsElasticBlockStore - */ - readonly awsElasticBlockStore?: OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#azureDisk - */ - readonly azureDisk?: OpenTelemetryCollectorSpecVolumesAzureDisk; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#azureFile - */ - readonly azureFile?: OpenTelemetryCollectorSpecVolumesAzureFile; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#cephfs - */ - readonly cephfs?: OpenTelemetryCollectorSpecVolumesCephfs; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#cinder - */ - readonly cinder?: OpenTelemetryCollectorSpecVolumesCinder; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#configMap - */ - readonly configMap?: OpenTelemetryCollectorSpecVolumesConfigMap; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#csi - */ - readonly csi?: OpenTelemetryCollectorSpecVolumesCsi; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#downwardAPI - */ - readonly downwardApi?: OpenTelemetryCollectorSpecVolumesDownwardApi; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#emptyDir - */ - readonly emptyDir?: OpenTelemetryCollectorSpecVolumesEmptyDir; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#ephemeral - */ - readonly ephemeral?: OpenTelemetryCollectorSpecVolumesEphemeral; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#fc - */ - readonly fc?: OpenTelemetryCollectorSpecVolumesFc; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#flexVolume - */ - readonly flexVolume?: OpenTelemetryCollectorSpecVolumesFlexVolume; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#flocker - */ - readonly flocker?: OpenTelemetryCollectorSpecVolumesFlocker; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#gcePersistentDisk - */ - readonly gcePersistentDisk?: OpenTelemetryCollectorSpecVolumesGcePersistentDisk; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#gitRepo - */ - readonly gitRepo?: OpenTelemetryCollectorSpecVolumesGitRepo; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#glusterfs - */ - readonly glusterfs?: OpenTelemetryCollectorSpecVolumesGlusterfs; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#hostPath - */ - readonly hostPath?: OpenTelemetryCollectorSpecVolumesHostPath; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#iscsi - */ - readonly iscsi?: OpenTelemetryCollectorSpecVolumesIscsi; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#nfs - */ - readonly nfs?: OpenTelemetryCollectorSpecVolumesNfs; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#persistentVolumeClaim - */ - readonly persistentVolumeClaim?: OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#photonPersistentDisk - */ - readonly photonPersistentDisk?: OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#portworxVolume - */ - readonly portworxVolume?: OpenTelemetryCollectorSpecVolumesPortworxVolume; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#projected - */ - readonly projected?: OpenTelemetryCollectorSpecVolumesProjected; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#quobyte - */ - readonly quobyte?: OpenTelemetryCollectorSpecVolumesQuobyte; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#rbd - */ - readonly rbd?: OpenTelemetryCollectorSpecVolumesRbd; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#scaleIO - */ - readonly scaleIo?: OpenTelemetryCollectorSpecVolumesScaleIo; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#secret - */ - readonly secret?: OpenTelemetryCollectorSpecVolumesSecret; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#storageos - */ - readonly storageos?: OpenTelemetryCollectorSpecVolumesStorageos; - - /** - * @schema OpenTelemetryCollectorSpecVolumes#vsphereVolume - */ - readonly vsphereVolume?: OpenTelemetryCollectorSpecVolumesVsphereVolume; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumes(obj: OpenTelemetryCollectorSpecVolumes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'awsElasticBlockStore': toJson_OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore(obj.awsElasticBlockStore), - 'azureDisk': toJson_OpenTelemetryCollectorSpecVolumesAzureDisk(obj.azureDisk), - 'azureFile': toJson_OpenTelemetryCollectorSpecVolumesAzureFile(obj.azureFile), - 'cephfs': toJson_OpenTelemetryCollectorSpecVolumesCephfs(obj.cephfs), - 'cinder': toJson_OpenTelemetryCollectorSpecVolumesCinder(obj.cinder), - 'configMap': toJson_OpenTelemetryCollectorSpecVolumesConfigMap(obj.configMap), - 'csi': toJson_OpenTelemetryCollectorSpecVolumesCsi(obj.csi), - 'downwardAPI': toJson_OpenTelemetryCollectorSpecVolumesDownwardApi(obj.downwardApi), - 'emptyDir': toJson_OpenTelemetryCollectorSpecVolumesEmptyDir(obj.emptyDir), - 'ephemeral': toJson_OpenTelemetryCollectorSpecVolumesEphemeral(obj.ephemeral), - 'fc': toJson_OpenTelemetryCollectorSpecVolumesFc(obj.fc), - 'flexVolume': toJson_OpenTelemetryCollectorSpecVolumesFlexVolume(obj.flexVolume), - 'flocker': toJson_OpenTelemetryCollectorSpecVolumesFlocker(obj.flocker), - 'gcePersistentDisk': toJson_OpenTelemetryCollectorSpecVolumesGcePersistentDisk(obj.gcePersistentDisk), - 'gitRepo': toJson_OpenTelemetryCollectorSpecVolumesGitRepo(obj.gitRepo), - 'glusterfs': toJson_OpenTelemetryCollectorSpecVolumesGlusterfs(obj.glusterfs), - 'hostPath': toJson_OpenTelemetryCollectorSpecVolumesHostPath(obj.hostPath), - 'iscsi': toJson_OpenTelemetryCollectorSpecVolumesIscsi(obj.iscsi), - 'name': obj.name, - 'nfs': toJson_OpenTelemetryCollectorSpecVolumesNfs(obj.nfs), - 'persistentVolumeClaim': toJson_OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim(obj.persistentVolumeClaim), - 'photonPersistentDisk': toJson_OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk(obj.photonPersistentDisk), - 'portworxVolume': toJson_OpenTelemetryCollectorSpecVolumesPortworxVolume(obj.portworxVolume), - 'projected': toJson_OpenTelemetryCollectorSpecVolumesProjected(obj.projected), - 'quobyte': toJson_OpenTelemetryCollectorSpecVolumesQuobyte(obj.quobyte), - 'rbd': toJson_OpenTelemetryCollectorSpecVolumesRbd(obj.rbd), - 'scaleIO': toJson_OpenTelemetryCollectorSpecVolumesScaleIo(obj.scaleIo), - 'secret': toJson_OpenTelemetryCollectorSpecVolumesSecret(obj.secret), - 'storageos': toJson_OpenTelemetryCollectorSpecVolumesStorageos(obj.storageos), - 'vsphereVolume': toJson_OpenTelemetryCollectorSpecVolumesVsphereVolume(obj.vsphereVolume), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnv - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnv { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnv(obj: OpenTelemetryCollectorSpecAdditionalContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFrom - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvFrom { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFrom#configMapRef - */ - readonly configMapRef?: OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFrom#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvFrom(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecycle - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecycle { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecycle#postStart - */ - readonly postStart?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecycle#preStop - */ - readonly preStop?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecycle(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe(obj: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersPorts - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersPorts { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersPorts#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersPorts(obj: OpenTelemetryCollectorSpecAdditionalContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe(obj: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResizePolicy - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersResizePolicy { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResizePolicy#resourceName - */ - readonly resourceName: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResizePolicy#restartPolicy - */ - readonly restartPolicy: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersResizePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersResizePolicy(obj: OpenTelemetryCollectorSpecAdditionalContainersResizePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceName': obj.resourceName, - 'restartPolicy': obj.restartPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResources - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersResources { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResources#claims - */ - readonly claims?: OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersResources(obj: OpenTelemetryCollectorSpecAdditionalContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersSecurityContext { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContext(obj: OpenTelemetryCollectorSpecAdditionalContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersStartupProbe { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#exec - */ - readonly exec?: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbe(obj: OpenTelemetryCollectorSpecAdditionalContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices(obj: OpenTelemetryCollectorSpecAdditionalContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#recursiveReadOnly - */ - readonly recursiveReadOnly?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts(obj: OpenTelemetryCollectorSpecAdditionalContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'recursiveReadOnly': obj.recursiveReadOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinity - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinity { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinity(obj: OpenTelemetryCollectorSpecAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinity - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinity { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinity(obj: OpenTelemetryCollectorSpecAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinity - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinity { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinity(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerBehavior - */ -export interface OpenTelemetryCollectorSpecAutoscalerBehavior { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehavior#scaleDown - */ - readonly scaleDown?: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehavior#scaleUp - */ - readonly scaleUp?: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerBehavior' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerBehavior(obj: OpenTelemetryCollectorSpecAutoscalerBehavior | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'scaleDown': toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown(obj.scaleDown), - 'scaleUp': toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp(obj.scaleUp), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetrics - */ -export interface OpenTelemetryCollectorSpecAutoscalerMetrics { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetrics#pods - */ - readonly pods?: OpenTelemetryCollectorSpecAutoscalerMetricsPods; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetrics#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerMetrics(obj: OpenTelemetryCollectorSpecAutoscalerMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'pods': toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPods(obj.pods), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate - */ -export interface OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate { - /** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate#maxSurge - */ - readonly maxSurge?: OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge; - - /** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate(obj: OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvValueFrom - */ -export interface OpenTelemetryCollectorSpecEnvValueFrom { - /** - * @schema OpenTelemetryCollectorSpecEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorSpecEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvValueFrom(obj: OpenTelemetryCollectorSpecEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorSpecEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvFromConfigMapRef - */ -export interface OpenTelemetryCollectorSpecEnvFromConfigMapRef { - /** - * @schema OpenTelemetryCollectorSpecEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvFromConfigMapRef(obj: OpenTelemetryCollectorSpecEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvFromSecretRef - */ -export interface OpenTelemetryCollectorSpecEnvFromSecretRef { - /** - * @schema OpenTelemetryCollectorSpecEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvFromSecretRef(obj: OpenTelemetryCollectorSpecEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecIngressRoute - */ -export interface OpenTelemetryCollectorSpecIngressRoute { - /** - * @schema OpenTelemetryCollectorSpecIngressRoute#termination - */ - readonly termination?: OpenTelemetryCollectorSpecIngressRouteTermination; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecIngressRoute' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecIngressRoute(obj: OpenTelemetryCollectorSpecIngressRoute | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'termination': obj.termination, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecIngressRuleType - */ -export enum OpenTelemetryCollectorSpecIngressRuleType { - /** path */ - PATH = "path", - /** subdomain */ - SUBDOMAIN = "subdomain", -} - -/** - * @schema OpenTelemetryCollectorSpecIngressTls - */ -export interface OpenTelemetryCollectorSpecIngressTls { - /** - * @schema OpenTelemetryCollectorSpecIngressTls#hosts - */ - readonly hosts?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecIngressTls#secretName - */ - readonly secretName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecIngressTls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecIngressTls(obj: OpenTelemetryCollectorSpecIngressTls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hosts': obj.hosts?.map(y => y), - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecIngressType - */ -export enum OpenTelemetryCollectorSpecIngressType { - /** ingress */ - INGRESS = "ingress", - /** route */ - ROUTE = "route", -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnv - */ -export interface OpenTelemetryCollectorSpecInitContainersEnv { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorSpecInitContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnv(obj: OpenTelemetryCollectorSpecInitContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFrom - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvFrom { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFrom#configMapRef - */ - readonly configMapRef?: OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFrom#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvFrom(obj: OpenTelemetryCollectorSpecInitContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecycle - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecycle { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecycle#postStart - */ - readonly postStart?: OpenTelemetryCollectorSpecInitContainersLifecyclePostStart; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecycle#preStop - */ - readonly preStop?: OpenTelemetryCollectorSpecInitContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecycle(obj: OpenTelemetryCollectorSpecInitContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe - */ -export interface OpenTelemetryCollectorSpecInitContainersLivenessProbe { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorSpecInitContainersLivenessProbeExec; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbe(obj: OpenTelemetryCollectorSpecInitContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersPorts - */ -export interface OpenTelemetryCollectorSpecInitContainersPorts { - /** - * @schema OpenTelemetryCollectorSpecInitContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersPorts#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersPorts(obj: OpenTelemetryCollectorSpecInitContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe - */ -export interface OpenTelemetryCollectorSpecInitContainersReadinessProbe { - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorSpecInitContainersReadinessProbeExec; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbe(obj: OpenTelemetryCollectorSpecInitContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersResizePolicy - */ -export interface OpenTelemetryCollectorSpecInitContainersResizePolicy { - /** - * @schema OpenTelemetryCollectorSpecInitContainersResizePolicy#resourceName - */ - readonly resourceName: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersResizePolicy#restartPolicy - */ - readonly restartPolicy: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersResizePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersResizePolicy(obj: OpenTelemetryCollectorSpecInitContainersResizePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceName': obj.resourceName, - 'restartPolicy': obj.restartPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersResources - */ -export interface OpenTelemetryCollectorSpecInitContainersResources { - /** - * @schema OpenTelemetryCollectorSpecInitContainersResources#claims - */ - readonly claims?: OpenTelemetryCollectorSpecInitContainersResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorSpecInitContainersResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorSpecInitContainersResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersResources(obj: OpenTelemetryCollectorSpecInitContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext - */ -export interface OpenTelemetryCollectorSpecInitContainersSecurityContext { - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersSecurityContext(obj: OpenTelemetryCollectorSpecInitContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe - */ -export interface OpenTelemetryCollectorSpecInitContainersStartupProbe { - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#exec - */ - readonly exec?: OpenTelemetryCollectorSpecInitContainersStartupProbeExec; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersStartupProbe(obj: OpenTelemetryCollectorSpecInitContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeDevices - */ -export interface OpenTelemetryCollectorSpecInitContainersVolumeDevices { - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersVolumeDevices(obj: OpenTelemetryCollectorSpecInitContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts - */ -export interface OpenTelemetryCollectorSpecInitContainersVolumeMounts { - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#recursiveReadOnly - */ - readonly recursiveReadOnly?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersVolumeMounts(obj: OpenTelemetryCollectorSpecInitContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'recursiveReadOnly': obj.recursiveReadOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStart - */ -export interface OpenTelemetryCollectorSpecLifecyclePostStart { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStart#exec - */ - readonly exec?: OpenTelemetryCollectorSpecLifecyclePostStartExec; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStart#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecLifecyclePostStartHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStart#sleep - */ - readonly sleep?: OpenTelemetryCollectorSpecLifecyclePostStartSleep; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePostStart(obj: OpenTelemetryCollectorSpecLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorSpecLifecyclePostStartHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorSpecLifecyclePostStartSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStop - */ -export interface OpenTelemetryCollectorSpecLifecyclePreStop { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStop#exec - */ - readonly exec?: OpenTelemetryCollectorSpecLifecyclePreStopExec; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStop#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecLifecyclePreStopHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStop#sleep - */ - readonly sleep?: OpenTelemetryCollectorSpecLifecyclePreStopSleep; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePreStop(obj: OpenTelemetryCollectorSpecLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorSpecLifecyclePreStopHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorSpecLifecyclePreStopSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecObservabilityMetrics - */ -export interface OpenTelemetryCollectorSpecObservabilityMetrics { - /** - * @schema OpenTelemetryCollectorSpecObservabilityMetrics#DisablePrometheusAnnotations - */ - readonly disablePrometheusAnnotations?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecObservabilityMetrics#enableMetrics - */ - readonly enableMetrics?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecObservabilityMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecObservabilityMetrics(obj: OpenTelemetryCollectorSpecObservabilityMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'DisablePrometheusAnnotations': obj.disablePrometheusAnnotations, - 'enableMetrics': obj.enableMetrics, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable - */ -export class OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorSpecPodDisruptionBudgetMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable - */ -export class OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable { - public static fromNumber(value: number): OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorSpecPodDisruptionBudgetMinAvailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorSpecPodSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorSpecPodSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile(obj: OpenTelemetryCollectorSpecPodSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSysctls - */ -export interface OpenTelemetryCollectorSpecPodSecurityContextSysctls { - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSysctls#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextSysctls#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodSecurityContextSysctls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodSecurityContextSysctls(obj: OpenTelemetryCollectorSpecPodSecurityContextSysctls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions(obj: OpenTelemetryCollectorSpecPodSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecPortsTargetPort - */ -export class OpenTelemetryCollectorSpecPortsTargetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecPortsTargetPort { - return new OpenTelemetryCollectorSpecPortsTargetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecPortsTargetPort { - return new OpenTelemetryCollectorSpecPortsTargetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecResourcesClaims - */ -export interface OpenTelemetryCollectorSpecResourcesClaims { - /** - * @schema OpenTelemetryCollectorSpecResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecResourcesClaims(obj: OpenTelemetryCollectorSpecResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecResourcesLimits - */ -export class OpenTelemetryCollectorSpecResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorSpecResourcesLimits { - return new OpenTelemetryCollectorSpecResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecResourcesLimits { - return new OpenTelemetryCollectorSpecResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecResourcesRequests - */ -export class OpenTelemetryCollectorSpecResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorSpecResourcesRequests { - return new OpenTelemetryCollectorSpecResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecResourcesRequests { - return new OpenTelemetryCollectorSpecResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorSpecSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorSpecSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorSpecSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorSpecSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorSpecSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecSecurityContextCapabilities(obj: OpenTelemetryCollectorSpecSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorSpecSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorSpecSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorSpecSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecSecurityContextSeccompProfile(obj: OpenTelemetryCollectorSpecSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorSpecSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorSpecSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecSecurityContextWindowsOptions(obj: OpenTelemetryCollectorSpecSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinity - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinity { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinity#nodeAffinity - */ - readonly nodeAffinity?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinity#podAffinity - */ - readonly podAffinity?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinity(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAllocationStrategy - */ -export enum OpenTelemetryCollectorSpecTargetAllocatorAllocationStrategy { - /** least-weighted */ - LEAST_HYPHEN_WEIGHTED = "least-weighted", - /** consistent-hashing */ - CONSISTENT_HYPHEN_HASHING = "consistent-hashing", - /** per-node */ - PER_HYPHEN_NODE = "per-node", -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnv - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorEnv { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorEnv(obj: OpenTelemetryCollectorSpecTargetAllocatorEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorObservability - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorObservability { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorObservability#metrics - */ - readonly metrics?: OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorObservability' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorObservability(obj: OpenTelemetryCollectorSpecTargetAllocatorObservability | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metrics': toJson_OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics(obj.metrics), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget#minAvailable - */ - readonly minAvailable?: OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget(obj: OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxUnavailable': obj.maxUnavailable?.value, - 'minAvailable': obj.minAvailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#sysctls - */ - readonly sysctls?: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext(obj: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appArmorProfile': toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile(obj.appArmorProfile), - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls(y)), - 'windowsOptions': toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr#enabled - */ - readonly enabled?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr#podMonitorSelector - */ - readonly podMonitorSelector?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr#scrapeInterval - */ - readonly scrapeInterval?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr#serviceMonitorSelector - */ - readonly serviceMonitorSelector?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr(obj: OpenTelemetryCollectorSpecTargetAllocatorPrometheusCr | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'enabled': obj.enabled, - 'podMonitorSelector': ((obj.podMonitorSelector) === undefined) ? undefined : (Object.entries(obj.podMonitorSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'scrapeInterval': obj.scrapeInterval, - 'serviceMonitorSelector': ((obj.serviceMonitorSelector) === undefined) ? undefined : (Object.entries(obj.serviceMonitorSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResources - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorResources { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResources#claims - */ - readonly claims?: OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorResources(obj: OpenTelemetryCollectorSpecTargetAllocatorResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorSecurityContext { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContext(obj: OpenTelemetryCollectorSpecTargetAllocatorSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTolerations - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorTolerations { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTolerations#effect - */ - readonly effect?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTolerations#key - */ - readonly key?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTolerations#operator - */ - readonly operator?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorTolerations(obj: OpenTelemetryCollectorSpecTargetAllocatorTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#maxSkew - */ - readonly maxSkew: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#minDomains - */ - readonly minDomains?: number; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#topologyKey - */ - readonly topologyKey: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints(obj: OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector - */ -export interface OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector(obj: OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate - */ -export interface OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate { - /** - * @schema OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate#maxSurge - */ - readonly maxSurge?: OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge; - - /** - * @schema OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate(obj: OpenTelemetryCollectorSpecUpdateStrategyRollingUpdate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata#finalizers - */ - readonly finalizers?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata#labels - */ - readonly labels?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'finalizers': obj.finalizers?.map(y => y), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#accessModes - */ - readonly accessModes?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#dataSource - */ - readonly dataSource?: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#dataSourceRef - */ - readonly dataSourceRef?: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#resources - */ - readonly resources?: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#selector - */ - readonly selector?: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#storageClassName - */ - readonly storageClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#volumeAttributesClassName - */ - readonly volumeAttributesClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#volumeMode - */ - readonly volumeMode?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'dataSource': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource(obj.dataSource), - 'dataSourceRef': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef(obj.dataSourceRef), - 'resources': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources(obj.resources), - 'selector': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector(obj.selector), - 'storageClassName': obj.storageClassName, - 'volumeAttributesClassName': obj.volumeAttributesClassName, - 'volumeMode': obj.volumeMode, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#accessModes - */ - readonly accessModes?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#allocatedResourceStatuses - */ - readonly allocatedResourceStatuses?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#allocatedResources - */ - readonly allocatedResources?: { [key: string]: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources }; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#capacity - */ - readonly capacity?: { [key: string]: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity }; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#conditions - */ - readonly conditions?: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#currentVolumeAttributesClassName - */ - readonly currentVolumeAttributesClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#modifyVolumeStatus - */ - readonly modifyVolumeStatus?: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus#phase - */ - readonly phase?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'allocatedResourceStatuses': ((obj.allocatedResourceStatuses) === undefined) ? undefined : (Object.entries(obj.allocatedResourceStatuses).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'allocatedResources': ((obj.allocatedResources) === undefined) ? undefined : (Object.entries(obj.allocatedResources).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'capacity': ((obj.capacity) === undefined) ? undefined : (Object.entries(obj.capacity).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'conditions': obj.conditions?.map(y => toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions(y)), - 'currentVolumeAttributesClassName': obj.currentVolumeAttributesClassName, - 'modifyVolumeStatus': toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus(obj.modifyVolumeStatus), - 'phase': obj.phase, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore - */ -export interface OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore { - /** - * @schema OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore#partition - */ - readonly partition?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore(obj: OpenTelemetryCollectorSpecVolumesAwsElasticBlockStore | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'partition': obj.partition, - 'readOnly': obj.readOnly, - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk - */ -export interface OpenTelemetryCollectorSpecVolumesAzureDisk { - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk#cachingMode - */ - readonly cachingMode?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk#diskName - */ - readonly diskName: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk#diskURI - */ - readonly diskUri: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk#kind - */ - readonly kind?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureDisk#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesAzureDisk' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesAzureDisk(obj: OpenTelemetryCollectorSpecVolumesAzureDisk | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cachingMode': obj.cachingMode, - 'diskName': obj.diskName, - 'diskURI': obj.diskUri, - 'fsType': obj.fsType, - 'kind': obj.kind, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesAzureFile - */ -export interface OpenTelemetryCollectorSpecVolumesAzureFile { - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureFile#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureFile#secretName - */ - readonly secretName: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesAzureFile#shareName - */ - readonly shareName: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesAzureFile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesAzureFile(obj: OpenTelemetryCollectorSpecVolumesAzureFile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'readOnly': obj.readOnly, - 'secretName': obj.secretName, - 'shareName': obj.shareName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesCephfs - */ -export interface OpenTelemetryCollectorSpecVolumesCephfs { - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfs#monitors - */ - readonly monitors: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfs#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfs#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfs#secretFile - */ - readonly secretFile?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfs#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecVolumesCephfsSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfs#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesCephfs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesCephfs(obj: OpenTelemetryCollectorSpecVolumesCephfs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'monitors': obj.monitors?.map(y => y), - 'path': obj.path, - 'readOnly': obj.readOnly, - 'secretFile': obj.secretFile, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesCephfsSecretRef(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesCinder - */ -export interface OpenTelemetryCollectorSpecVolumesCinder { - /** - * @schema OpenTelemetryCollectorSpecVolumesCinder#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCinder#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCinder#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecVolumesCinderSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCinder#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesCinder' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesCinder(obj: OpenTelemetryCollectorSpecVolumesCinder | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesCinderSecretRef(obj.secretRef), - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesConfigMap - */ -export interface OpenTelemetryCollectorSpecVolumesConfigMap { - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMap#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMap#items - */ - readonly items?: OpenTelemetryCollectorSpecVolumesConfigMapItems[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMap#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesConfigMap(obj: OpenTelemetryCollectorSpecVolumesConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorSpecVolumesConfigMapItems(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesCsi - */ -export interface OpenTelemetryCollectorSpecVolumesCsi { - /** - * @schema OpenTelemetryCollectorSpecVolumesCsi#driver - */ - readonly driver: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCsi#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCsi#nodePublishSecretRef - */ - readonly nodePublishSecretRef?: OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCsi#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesCsi#volumeAttributes - */ - readonly volumeAttributes?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesCsi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesCsi(obj: OpenTelemetryCollectorSpecVolumesCsi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'nodePublishSecretRef': toJson_OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef(obj.nodePublishSecretRef), - 'readOnly': obj.readOnly, - 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApi - */ -export interface OpenTelemetryCollectorSpecVolumesDownwardApi { - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApi#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApi#items - */ - readonly items?: OpenTelemetryCollectorSpecVolumesDownwardApiItems[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesDownwardApi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesDownwardApi(obj: OpenTelemetryCollectorSpecVolumesDownwardApi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorSpecVolumesDownwardApiItems(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEmptyDir - */ -export interface OpenTelemetryCollectorSpecVolumesEmptyDir { - /** - * @schema OpenTelemetryCollectorSpecVolumesEmptyDir#medium - */ - readonly medium?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEmptyDir#sizeLimit - */ - readonly sizeLimit?: OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEmptyDir' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEmptyDir(obj: OpenTelemetryCollectorSpecVolumesEmptyDir | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'medium': obj.medium, - 'sizeLimit': obj.sizeLimit?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeral - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeral { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeral#volumeClaimTemplate - */ - readonly volumeClaimTemplate?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeral' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeral(obj: OpenTelemetryCollectorSpecVolumesEphemeral | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'volumeClaimTemplate': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate(obj.volumeClaimTemplate), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesFc - */ -export interface OpenTelemetryCollectorSpecVolumesFc { - /** - * @schema OpenTelemetryCollectorSpecVolumesFc#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFc#lun - */ - readonly lun?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFc#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFc#targetWWNs - */ - readonly targetWwNs?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFc#wwids - */ - readonly wwids?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesFc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesFc(obj: OpenTelemetryCollectorSpecVolumesFc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'lun': obj.lun, - 'readOnly': obj.readOnly, - 'targetWWNs': obj.targetWwNs?.map(y => y), - 'wwids': obj.wwids?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolume - */ -export interface OpenTelemetryCollectorSpecVolumesFlexVolume { - /** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolume#driver - */ - readonly driver: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolume#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolume#options - */ - readonly options?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolume#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolume#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesFlexVolume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesFlexVolume(obj: OpenTelemetryCollectorSpecVolumesFlexVolume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesFlocker - */ -export interface OpenTelemetryCollectorSpecVolumesFlocker { - /** - * @schema OpenTelemetryCollectorSpecVolumesFlocker#datasetName - */ - readonly datasetName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesFlocker#datasetUUID - */ - readonly datasetUuid?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesFlocker' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesFlocker(obj: OpenTelemetryCollectorSpecVolumesFlocker | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'datasetName': obj.datasetName, - 'datasetUUID': obj.datasetUuid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesGcePersistentDisk - */ -export interface OpenTelemetryCollectorSpecVolumesGcePersistentDisk { - /** - * @schema OpenTelemetryCollectorSpecVolumesGcePersistentDisk#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGcePersistentDisk#partition - */ - readonly partition?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGcePersistentDisk#pdName - */ - readonly pdName: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGcePersistentDisk#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesGcePersistentDisk' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesGcePersistentDisk(obj: OpenTelemetryCollectorSpecVolumesGcePersistentDisk | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'partition': obj.partition, - 'pdName': obj.pdName, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesGitRepo - */ -export interface OpenTelemetryCollectorSpecVolumesGitRepo { - /** - * @schema OpenTelemetryCollectorSpecVolumesGitRepo#directory - */ - readonly directory?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGitRepo#repository - */ - readonly repository: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGitRepo#revision - */ - readonly revision?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesGitRepo' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesGitRepo(obj: OpenTelemetryCollectorSpecVolumesGitRepo | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'directory': obj.directory, - 'repository': obj.repository, - 'revision': obj.revision, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesGlusterfs - */ -export interface OpenTelemetryCollectorSpecVolumesGlusterfs { - /** - * @schema OpenTelemetryCollectorSpecVolumesGlusterfs#endpoints - */ - readonly endpoints: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGlusterfs#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesGlusterfs#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesGlusterfs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesGlusterfs(obj: OpenTelemetryCollectorSpecVolumesGlusterfs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'endpoints': obj.endpoints, - 'path': obj.path, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesHostPath - */ -export interface OpenTelemetryCollectorSpecVolumesHostPath { - /** - * @schema OpenTelemetryCollectorSpecVolumesHostPath#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesHostPath#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesHostPath' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesHostPath(obj: OpenTelemetryCollectorSpecVolumesHostPath | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesIscsi - */ -export interface OpenTelemetryCollectorSpecVolumesIscsi { - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#chapAuthDiscovery - */ - readonly chapAuthDiscovery?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#chapAuthSession - */ - readonly chapAuthSession?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#initiatorName - */ - readonly initiatorName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#iqn - */ - readonly iqn: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#iscsiInterface - */ - readonly iscsiInterface?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#lun - */ - readonly lun: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#portals - */ - readonly portals?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecVolumesIscsiSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsi#targetPortal - */ - readonly targetPortal: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesIscsi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesIscsi(obj: OpenTelemetryCollectorSpecVolumesIscsi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'chapAuthDiscovery': obj.chapAuthDiscovery, - 'chapAuthSession': obj.chapAuthSession, - 'fsType': obj.fsType, - 'initiatorName': obj.initiatorName, - 'iqn': obj.iqn, - 'iscsiInterface': obj.iscsiInterface, - 'lun': obj.lun, - 'portals': obj.portals?.map(y => y), - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesIscsiSecretRef(obj.secretRef), - 'targetPortal': obj.targetPortal, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesNfs - */ -export interface OpenTelemetryCollectorSpecVolumesNfs { - /** - * @schema OpenTelemetryCollectorSpecVolumesNfs#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesNfs#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesNfs#server - */ - readonly server: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesNfs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesNfs(obj: OpenTelemetryCollectorSpecVolumesNfs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'readOnly': obj.readOnly, - 'server': obj.server, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim - */ -export interface OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim { - /** - * @schema OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim#claimName - */ - readonly claimName: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim(obj: OpenTelemetryCollectorSpecVolumesPersistentVolumeClaim | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claimName': obj.claimName, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk - */ -export interface OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk { - /** - * @schema OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk#pdID - */ - readonly pdId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk(obj: OpenTelemetryCollectorSpecVolumesPhotonPersistentDisk | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'pdID': obj.pdId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesPortworxVolume - */ -export interface OpenTelemetryCollectorSpecVolumesPortworxVolume { - /** - * @schema OpenTelemetryCollectorSpecVolumesPortworxVolume#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesPortworxVolume#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesPortworxVolume#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesPortworxVolume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesPortworxVolume(obj: OpenTelemetryCollectorSpecVolumesPortworxVolume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjected - */ -export interface OpenTelemetryCollectorSpecVolumesProjected { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjected#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjected#sources - */ - readonly sources?: OpenTelemetryCollectorSpecVolumesProjectedSources[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjected' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjected(obj: OpenTelemetryCollectorSpecVolumesProjected | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'sources': obj.sources?.map(y => toJson_OpenTelemetryCollectorSpecVolumesProjectedSources(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte - */ -export interface OpenTelemetryCollectorSpecVolumesQuobyte { - /** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte#group - */ - readonly group?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte#registry - */ - readonly registry: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte#tenant - */ - readonly tenant?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte#user - */ - readonly user?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesQuobyte#volume - */ - readonly volume: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesQuobyte' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesQuobyte(obj: OpenTelemetryCollectorSpecVolumesQuobyte | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'readOnly': obj.readOnly, - 'registry': obj.registry, - 'tenant': obj.tenant, - 'user': obj.user, - 'volume': obj.volume, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesRbd - */ -export interface OpenTelemetryCollectorSpecVolumesRbd { - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#image - */ - readonly image: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#keyring - */ - readonly keyring?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#monitors - */ - readonly monitors: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#pool - */ - readonly pool?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecVolumesRbdSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesRbd#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesRbd' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesRbd(obj: OpenTelemetryCollectorSpecVolumesRbd | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'image': obj.image, - 'keyring': obj.keyring, - 'monitors': obj.monitors?.map(y => y), - 'pool': obj.pool, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesRbdSecretRef(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo - */ -export interface OpenTelemetryCollectorSpecVolumesScaleIo { - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#gateway - */ - readonly gateway: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#protectionDomain - */ - readonly protectionDomain?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#secretRef - */ - readonly secretRef: OpenTelemetryCollectorSpecVolumesScaleIoSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#sslEnabled - */ - readonly sslEnabled?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#storageMode - */ - readonly storageMode?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#storagePool - */ - readonly storagePool?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#system - */ - readonly system: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIo#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesScaleIo' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesScaleIo(obj: OpenTelemetryCollectorSpecVolumesScaleIo | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'gateway': obj.gateway, - 'protectionDomain': obj.protectionDomain, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesScaleIoSecretRef(obj.secretRef), - 'sslEnabled': obj.sslEnabled, - 'storageMode': obj.storageMode, - 'storagePool': obj.storagePool, - 'system': obj.system, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesSecret - */ -export interface OpenTelemetryCollectorSpecVolumesSecret { - /** - * @schema OpenTelemetryCollectorSpecVolumesSecret#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesSecret#items - */ - readonly items?: OpenTelemetryCollectorSpecVolumesSecretItems[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesSecret#optional - */ - readonly optional?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesSecret#secretName - */ - readonly secretName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesSecret(obj: OpenTelemetryCollectorSpecVolumesSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorSpecVolumesSecretItems(y)), - 'optional': obj.optional, - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesStorageos - */ -export interface OpenTelemetryCollectorSpecVolumesStorageos { - /** - * @schema OpenTelemetryCollectorSpecVolumesStorageos#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesStorageos#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesStorageos#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorSpecVolumesStorageosSecretRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesStorageos#volumeName - */ - readonly volumeName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesStorageos#volumeNamespace - */ - readonly volumeNamespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesStorageos' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesStorageos(obj: OpenTelemetryCollectorSpecVolumesStorageos | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorSpecVolumesStorageosSecretRef(obj.secretRef), - 'volumeName': obj.volumeName, - 'volumeNamespace': obj.volumeNamespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesVsphereVolume - */ -export interface OpenTelemetryCollectorSpecVolumesVsphereVolume { - /** - * @schema OpenTelemetryCollectorSpecVolumesVsphereVolume#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesVsphereVolume#storagePolicyID - */ - readonly storagePolicyId?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesVsphereVolume#storagePolicyName - */ - readonly storagePolicyName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesVsphereVolume#volumePath - */ - readonly volumePath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesVsphereVolume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesVsphereVolume(obj: OpenTelemetryCollectorSpecVolumesVsphereVolume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'storagePolicyID': obj.storagePolicyId, - 'storagePolicyName': obj.storagePolicyName, - 'volumePath': obj.volumePath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart#exec - */ - readonly exec?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart#sleep - */ - readonly sleep?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop#exec - */ - readonly exec?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop#sleep - */ - readonly sleep?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec(obj: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc(obj: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet(obj: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket(obj: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec(obj: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc(obj: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet(obj: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket(obj: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims(obj: OpenTelemetryCollectorSpecAdditionalContainersResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits - */ -export class OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits { - return new OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits { - return new OpenTelemetryCollectorSpecAdditionalContainersResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests - */ -export class OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests { - return new OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests { - return new OpenTelemetryCollectorSpecAdditionalContainersResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities(obj: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile(obj: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions(obj: OpenTelemetryCollectorSpecAdditionalContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec(obj: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc(obj: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet(obj: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket(obj: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown - */ -export interface OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown#policies - */ - readonly policies?: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies[]; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown#selectPolicy - */ - readonly selectPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown#stabilizationWindowSeconds - */ - readonly stabilizationWindowSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown(obj: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDown | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'policies': obj.policies?.map(y => toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies(y)), - 'selectPolicy': obj.selectPolicy, - 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp - */ -export interface OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp#policies - */ - readonly policies?: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies[]; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp#selectPolicy - */ - readonly selectPolicy?: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp#stabilizationWindowSeconds - */ - readonly stabilizationWindowSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp(obj: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUp | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'policies': obj.policies?.map(y => toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies(y)), - 'selectPolicy': obj.selectPolicy, - 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPods - */ -export interface OpenTelemetryCollectorSpecAutoscalerMetricsPods { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPods#metric - */ - readonly metric: OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPods#target - */ - readonly target: OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerMetricsPods' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPods(obj: OpenTelemetryCollectorSpecAutoscalerMetricsPods | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metric': toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric(obj.metric), - 'target': toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge - */ -export class OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge { - public static fromNumber(value: number): OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxSurge(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable - */ -export class OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorSpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorSpecEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorSpecEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvValueFromFieldRef(obj: OpenTelemetryCollectorSpecEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorSpecEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorSpecEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecIngressRouteTermination - */ -export enum OpenTelemetryCollectorSpecIngressRouteTermination { - /** insecure */ - INSECURE = "insecure", - /** edge */ - EDGE = "edge", - /** passthrough */ - PASSTHROUGH = "passthrough", - /** reencrypt */ - REENCRYPT = "reencrypt", -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFrom - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvValueFrom { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFrom(obj: OpenTelemetryCollectorSpecInitContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef(obj: OpenTelemetryCollectorSpecInitContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef(obj: OpenTelemetryCollectorSpecInitContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStart - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePostStart { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStart#exec - */ - readonly exec?: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStart#sleep - */ - readonly sleep?: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStart(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStop - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePreStop { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStop#exec - */ - readonly exec?: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStop#sleep - */ - readonly sleep?: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStop(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeExec - */ -export interface OpenTelemetryCollectorSpecInitContainersLivenessProbeExec { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeExec(obj: OpenTelemetryCollectorSpecInitContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc - */ -export interface OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc(obj: OpenTelemetryCollectorSpecInitContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet - */ -export interface OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet(obj: OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket - */ -export interface OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket(obj: OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeExec - */ -export interface OpenTelemetryCollectorSpecInitContainersReadinessProbeExec { - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeExec(obj: OpenTelemetryCollectorSpecInitContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc - */ -export interface OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc { - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc(obj: OpenTelemetryCollectorSpecInitContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet - */ -export interface OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet(obj: OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket - */ -export interface OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket(obj: OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersResourcesClaims - */ -export interface OpenTelemetryCollectorSpecInitContainersResourcesClaims { - /** - * @schema OpenTelemetryCollectorSpecInitContainersResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersResourcesClaims(obj: OpenTelemetryCollectorSpecInitContainersResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersResourcesLimits - */ -export class OpenTelemetryCollectorSpecInitContainersResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersResourcesLimits { - return new OpenTelemetryCollectorSpecInitContainersResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersResourcesLimits { - return new OpenTelemetryCollectorSpecInitContainersResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersResourcesRequests - */ -export class OpenTelemetryCollectorSpecInitContainersResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersResourcesRequests { - return new OpenTelemetryCollectorSpecInitContainersResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersResourcesRequests { - return new OpenTelemetryCollectorSpecInitContainersResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorSpecInitContainersSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities(obj: OpenTelemetryCollectorSpecInitContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorSpecInitContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile(obj: OpenTelemetryCollectorSpecInitContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions(obj: OpenTelemetryCollectorSpecInitContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeExec - */ -export interface OpenTelemetryCollectorSpecInitContainersStartupProbeExec { - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeExec(obj: OpenTelemetryCollectorSpecInitContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc - */ -export interface OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc { - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc(obj: OpenTelemetryCollectorSpecInitContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet - */ -export interface OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet { - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet(obj: OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket - */ -export interface OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket(obj: OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartExec - */ -export interface OpenTelemetryCollectorSpecLifecyclePostStartExec { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePostStartExec(obj: OpenTelemetryCollectorSpecLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGet - */ -export interface OpenTelemetryCollectorSpecLifecyclePostStartHttpGet { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePostStartHttpGet(obj: OpenTelemetryCollectorSpecLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartSleep - */ -export interface OpenTelemetryCollectorSpecLifecyclePostStartSleep { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePostStartSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePostStartSleep(obj: OpenTelemetryCollectorSpecLifecyclePostStartSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket - */ -export interface OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket(obj: OpenTelemetryCollectorSpecLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopExec - */ -export interface OpenTelemetryCollectorSpecLifecyclePreStopExec { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePreStopExec(obj: OpenTelemetryCollectorSpecLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGet - */ -export interface OpenTelemetryCollectorSpecLifecyclePreStopHttpGet { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePreStopHttpGet(obj: OpenTelemetryCollectorSpecLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopSleep - */ -export interface OpenTelemetryCollectorSpecLifecyclePreStopSleep { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePreStopSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePreStopSleep(obj: OpenTelemetryCollectorSpecLifecyclePreStopSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket - */ -export interface OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket(obj: OpenTelemetryCollectorSpecLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom(obj: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics#DisablePrometheusAnnotations - */ - readonly disablePrometheusAnnotations?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics#enableMetrics - */ - readonly enableMetrics?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics(obj: OpenTelemetryCollectorSpecTargetAllocatorObservabilityMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'DisablePrometheusAnnotations': obj.disablePrometheusAnnotations, - 'enableMetrics': obj.enableMetrics, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable - */ -export class OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable - */ -export class OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable { - public static fromNumber(value: number): OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorSpecTargetAllocatorPodDisruptionBudgetMinAvailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile(obj: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls(obj: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextSysctls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions(obj: OpenTelemetryCollectorSpecTargetAllocatorPodSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims(obj: OpenTelemetryCollectorSpecTargetAllocatorResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits - */ -export class OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits { - return new OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits { - return new OpenTelemetryCollectorSpecTargetAllocatorResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests - */ -export class OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests { - return new OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests { - return new OpenTelemetryCollectorSpecTargetAllocatorResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities(obj: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile(obj: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions(obj: OpenTelemetryCollectorSpecTargetAllocatorSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTopologySpreadConstraintsLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge - */ -export class OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge { - public static fromNumber(value: number): OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxSurge(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable - */ -export class OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorSpecUpdateStrategyRollingUpdateMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecDataSourceRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources - */ -export class OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusAllocatedResources(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity - */ -export class OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusCapacity(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions#lastProbeTime - */ - readonly lastProbeTime?: Date; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions#lastTransitionTime - */ - readonly lastTransitionTime?: Date; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions#message - */ - readonly message?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions#reason - */ - readonly reason?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions#status - */ - readonly status: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusConditions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'lastProbeTime': obj.lastProbeTime?.toISOString(), - 'lastTransitionTime': obj.lastTransitionTime?.toISOString(), - 'message': obj.message, - 'reason': obj.reason, - 'status': obj.status, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus#status - */ - readonly status: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus#targetVolumeAttributesClassName - */ - readonly targetVolumeAttributesClassName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesStatusModifyVolumeStatus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'status': obj.status, - 'targetVolumeAttributesClassName': obj.targetVolumeAttributesClassName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesCephfsSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesCephfsSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesCephfsSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesCephfsSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesCephfsSecretRef(obj: OpenTelemetryCollectorSpecVolumesCephfsSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesCinderSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesCinderSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesCinderSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesCinderSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesCinderSecretRef(obj: OpenTelemetryCollectorSpecVolumesCinderSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesConfigMapItems - */ -export interface OpenTelemetryCollectorSpecVolumesConfigMapItems { - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMapItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMapItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesConfigMapItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesConfigMapItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesConfigMapItems(obj: OpenTelemetryCollectorSpecVolumesConfigMapItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef(obj: OpenTelemetryCollectorSpecVolumesCsiNodePublishSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItems - */ -export interface OpenTelemetryCollectorSpecVolumesDownwardApiItems { - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItems#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItems#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItems#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesDownwardApiItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesDownwardApiItems(obj: OpenTelemetryCollectorSpecVolumesDownwardApiItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef(obj.fieldRef), - 'mode': obj.mode, - 'path': obj.path, - 'resourceFieldRef': toJson_OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef(obj.resourceFieldRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit - */ -export class OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit { - return new OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit { - return new OpenTelemetryCollectorSpecVolumesEmptyDirSizeLimit(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate#metadata - */ - readonly metadata?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate#spec - */ - readonly spec: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata(obj.metadata), - 'spec': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef(obj: OpenTelemetryCollectorSpecVolumesFlexVolumeSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesIscsiSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesIscsiSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesIscsiSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesIscsiSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesIscsiSecretRef(obj: OpenTelemetryCollectorSpecVolumesIscsiSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSources - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSources { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSources#clusterTrustBundle - */ - readonly clusterTrustBundle?: OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSources#configMap - */ - readonly configMap?: OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSources#downwardAPI - */ - readonly downwardApi?: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSources#secret - */ - readonly secret?: OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSources#serviceAccountToken - */ - readonly serviceAccountToken?: OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSources(obj: OpenTelemetryCollectorSpecVolumesProjectedSources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterTrustBundle': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle(obj.clusterTrustBundle), - 'configMap': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap(obj.configMap), - 'downwardAPI': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi(obj.downwardApi), - 'secret': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret(obj.secret), - 'serviceAccountToken': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken(obj.serviceAccountToken), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesRbdSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesRbdSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesRbdSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesRbdSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesRbdSecretRef(obj: OpenTelemetryCollectorSpecVolumesRbdSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesScaleIoSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesScaleIoSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesScaleIoSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesScaleIoSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesScaleIoSecretRef(obj: OpenTelemetryCollectorSpecVolumesScaleIoSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesSecretItems - */ -export interface OpenTelemetryCollectorSpecVolumesSecretItems { - /** - * @schema OpenTelemetryCollectorSpecVolumesSecretItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesSecretItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesSecretItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesSecretItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesSecretItems(obj: OpenTelemetryCollectorSpecVolumesSecretItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesStorageosSecretRef - */ -export interface OpenTelemetryCollectorSpecVolumesStorageosSecretRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesStorageosSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesStorageosSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesStorageosSecretRef(obj: OpenTelemetryCollectorSpecVolumesStorageosSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies - */ -export interface OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies#periodSeconds - */ - readonly periodSeconds: number; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies#type - */ - readonly type: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies#value - */ - readonly value: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies(obj: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleDownPolicies | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'periodSeconds': obj.periodSeconds, - 'type': obj.type, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies - */ -export interface OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies#periodSeconds - */ - readonly periodSeconds: number; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies#type - */ - readonly type: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies#value - */ - readonly value: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies(obj: OpenTelemetryCollectorSpecAutoscalerBehaviorScaleUpPolicies | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'periodSeconds': obj.periodSeconds, - 'type': obj.type, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric - */ -export interface OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric#selector - */ - readonly selector?: OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric(obj: OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetric | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'selector': toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector(obj.selector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget - */ -export interface OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget#averageUtilization - */ - readonly averageUtilization?: number; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget#averageValue - */ - readonly averageValue?: OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget#type - */ - readonly type: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget#value - */ - readonly value?: OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget(obj: OpenTelemetryCollectorSpecAutoscalerMetricsPodsTarget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'averageUtilization': obj.averageUtilization, - 'averageValue': obj.averageValue?.value, - 'type': obj.type, - 'value': obj.value?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorSpecInitContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef(obj: OpenTelemetryCollectorSpecInitContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorSpecInitContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket#port - */ - readonly port: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort - */ -export class OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort - */ -export class OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort - */ -export class OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort - */ -export class OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort - */ -export class OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorSpecLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort - */ -export class OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorSpecLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort - */ -export class OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorSpecLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort - */ -export class OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorSpecLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef(obj: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits - */ -export class OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests - */ -export class OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests { - return new OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecVolumeClaimTemplatesSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef - */ -export interface OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef(obj: OpenTelemetryCollectorSpecVolumesDownwardApiItemsFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef - */ -export interface OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef(obj: OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata#finalizers - */ - readonly finalizers?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata#labels - */ - readonly labels?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'finalizers': obj.finalizers?.map(y => y), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#accessModes - */ - readonly accessModes?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#dataSource - */ - readonly dataSource?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#dataSourceRef - */ - readonly dataSourceRef?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#resources - */ - readonly resources?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#selector - */ - readonly selector?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#storageClassName - */ - readonly storageClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#volumeAttributesClassName - */ - readonly volumeAttributesClassName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#volumeMode - */ - readonly volumeMode?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'dataSource': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource(obj.dataSource), - 'dataSourceRef': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef(obj.dataSourceRef), - 'resources': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources(obj.resources), - 'selector': toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector(obj.selector), - 'storageClassName': obj.storageClassName, - 'volumeAttributesClassName': obj.volumeAttributesClassName, - 'volumeMode': obj.volumeMode, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle#optional - */ - readonly optional?: boolean; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle#signerName - */ - readonly signerName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector(obj.labelSelector), - 'name': obj.name, - 'optional': obj.optional, - 'path': obj.path, - 'signerName': obj.signerName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap#items - */ - readonly items?: OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi#items - */ - readonly items?: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret#items - */ - readonly items?: OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken#audience - */ - readonly audience?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken#expirationSeconds - */ - readonly expirationSeconds?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesServiceAccountToken | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'audience': obj.audience, - 'expirationSeconds': obj.expirationSeconds, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecAdditionalContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort - */ -export class OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorSpecAdditionalContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: OpenTelemetryCollectorSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector - */ -export interface OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector(obj: OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue - */ -export class OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue { - return new OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue { - return new OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetAverageValue(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue - */ -export class OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue { - public static fromNumber(value: number): OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue { - return new OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue { - return new OpenTelemetryCollectorSpecAutoscalerMetricsPodsTargetValue(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort - */ -export class OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort - */ -export class OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders(obj: OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort - */ -export class OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort - */ -export class OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorSpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecTargetAllocatorEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecVolumesDownwardApiItemsResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesConfigMapItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef(obj.fieldRef), - 'mode': obj.mode, - 'path': obj.path, - 'resourceFieldRef': toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef(obj.resourceFieldRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesSecretItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecAutoscalerMetricsPodsMetricSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits - */ -export class OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits { - return new OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits { - return new OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests - */ -export class OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests { - return new OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests { - return new OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef - */ -export interface OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef { - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef(obj: OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorSpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorSpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - - -/** - * - * - * @schema OpenTelemetryCollectorV1Beta1 - */ -export class OpenTelemetryCollectorV1Beta1 extends ApiObject { - /** - * Returns the apiVersion and kind for "OpenTelemetryCollectorV1Beta1" - */ - public static readonly GVK: GroupVersionKind = { - apiVersion: 'opentelemetry.io/v1beta1', - kind: 'OpenTelemetryCollector', - } - - /** - * Renders a Kubernetes manifest for "OpenTelemetryCollectorV1Beta1". - * - * This can be used to inline resource manifests inside other objects (e.g. as templates). - * - * @param props initialization props - */ - public static manifest(props: OpenTelemetryCollectorV1Beta1Props = {}): any { - return { - ...OpenTelemetryCollectorV1Beta1.GVK, - ...toJson_OpenTelemetryCollectorV1Beta1Props(props), - }; - } - - /** - * Defines a "OpenTelemetryCollectorV1Beta1" API object - * @param scope the scope in which to define this object - * @param id a scope-local name for the object - * @param props initialization props - */ - public constructor(scope: Construct, id: string, props: OpenTelemetryCollectorV1Beta1Props = {}) { - super(scope, id, { - ...OpenTelemetryCollectorV1Beta1.GVK, - ...props, - }); - } - - /** - * Renders the object to Kubernetes JSON. - */ - public toJson(): any { - const resolved = super.toJson(); - - return { - ...OpenTelemetryCollectorV1Beta1.GVK, - ...toJson_OpenTelemetryCollectorV1Beta1Props(resolved), - }; - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1 - */ -export interface OpenTelemetryCollectorV1Beta1Props { - /** - * @schema OpenTelemetryCollectorV1Beta1#metadata - */ - readonly metadata?: ApiObjectMetadata; - - /** - * @schema OpenTelemetryCollectorV1Beta1#spec - */ - readonly spec?: OpenTelemetryCollectorV1Beta1Spec; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1Props' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1Props(obj: OpenTelemetryCollectorV1Beta1Props | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': obj.metadata, - 'spec': toJson_OpenTelemetryCollectorV1Beta1Spec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1Spec - */ -export interface OpenTelemetryCollectorV1Beta1Spec { - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#additionalContainers - */ - readonly additionalContainers?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainers[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#affinity - */ - readonly affinity?: OpenTelemetryCollectorV1Beta1SpecAffinity; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#args - */ - readonly args?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#autoscaler - */ - readonly autoscaler?: OpenTelemetryCollectorV1Beta1SpecAutoscaler; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#config - */ - readonly config: OpenTelemetryCollectorV1Beta1SpecConfig; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#configVersions - */ - readonly configVersions?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#configmaps - */ - readonly configmaps?: OpenTelemetryCollectorV1Beta1SpecConfigmaps[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#daemonSetUpdateStrategy - */ - readonly daemonSetUpdateStrategy?: OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#deploymentUpdateStrategy - */ - readonly deploymentUpdateStrategy?: OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#env - */ - readonly env?: OpenTelemetryCollectorV1Beta1SpecEnv[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#envFrom - */ - readonly envFrom?: OpenTelemetryCollectorV1Beta1SpecEnvFrom[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#hostNetwork - */ - readonly hostNetwork?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#ingress - */ - readonly ingress?: OpenTelemetryCollectorV1Beta1SpecIngress; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#initContainers - */ - readonly initContainers?: OpenTelemetryCollectorV1Beta1SpecInitContainers[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#ipFamilies - */ - readonly ipFamilies?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#ipFamilyPolicy - */ - readonly ipFamilyPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#lifecycle - */ - readonly lifecycle?: OpenTelemetryCollectorV1Beta1SpecLifecycle; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#livenessProbe - */ - readonly livenessProbe?: OpenTelemetryCollectorV1Beta1SpecLivenessProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#managementState - */ - readonly managementState?: OpenTelemetryCollectorV1Beta1SpecManagementState; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#mode - */ - readonly mode?: OpenTelemetryCollectorV1Beta1SpecMode; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#observability - */ - readonly observability?: OpenTelemetryCollectorV1Beta1SpecObservability; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#podAnnotations - */ - readonly podAnnotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#podDisruptionBudget - */ - readonly podDisruptionBudget?: OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#podDnsConfig - */ - readonly podDnsConfig?: OpenTelemetryCollectorV1Beta1SpecPodDnsConfig; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#podSecurityContext - */ - readonly podSecurityContext?: OpenTelemetryCollectorV1Beta1SpecPodSecurityContext; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#ports - */ - readonly ports?: OpenTelemetryCollectorV1Beta1SpecPorts[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#priorityClassName - */ - readonly priorityClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#readinessProbe - */ - readonly readinessProbe?: OpenTelemetryCollectorV1Beta1SpecReadinessProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#replicas - */ - readonly replicas?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#resources - */ - readonly resources?: OpenTelemetryCollectorV1Beta1SpecResources; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorV1Beta1SpecSecurityContext; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#shareProcessNamespace - */ - readonly shareProcessNamespace?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#targetAllocator - */ - readonly targetAllocator?: OpenTelemetryCollectorV1Beta1SpecTargetAllocator; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#tolerations - */ - readonly tolerations?: OpenTelemetryCollectorV1Beta1SpecTolerations[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#upgradeStrategy - */ - readonly upgradeStrategy?: OpenTelemetryCollectorV1Beta1SpecUpgradeStrategy; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#volumeClaimTemplates - */ - readonly volumeClaimTemplates?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#volumeMounts - */ - readonly volumeMounts?: OpenTelemetryCollectorV1Beta1SpecVolumeMounts[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1Spec#volumes - */ - readonly volumes?: OpenTelemetryCollectorV1Beta1SpecVolumes[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1Spec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1Spec(obj: OpenTelemetryCollectorV1Beta1Spec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'additionalContainers': obj.additionalContainers?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainers(y)), - 'affinity': toJson_OpenTelemetryCollectorV1Beta1SpecAffinity(obj.affinity), - 'args': ((obj.args) === undefined) ? undefined : (Object.entries(obj.args).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'autoscaler': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscaler(obj.autoscaler), - 'config': toJson_OpenTelemetryCollectorV1Beta1SpecConfig(obj.config), - 'configVersions': obj.configVersions, - 'configmaps': obj.configmaps?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecConfigmaps(y)), - 'daemonSetUpdateStrategy': toJson_OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy(obj.daemonSetUpdateStrategy), - 'deploymentUpdateStrategy': toJson_OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy(obj.deploymentUpdateStrategy), - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecEnvFrom(y)), - 'hostNetwork': obj.hostNetwork, - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'ingress': toJson_OpenTelemetryCollectorV1Beta1SpecIngress(obj.ingress), - 'initContainers': obj.initContainers?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainers(y)), - 'ipFamilies': obj.ipFamilies?.map(y => y), - 'ipFamilyPolicy': obj.ipFamilyPolicy, - 'lifecycle': toJson_OpenTelemetryCollectorV1Beta1SpecLifecycle(obj.lifecycle), - 'livenessProbe': toJson_OpenTelemetryCollectorV1Beta1SpecLivenessProbe(obj.livenessProbe), - 'managementState': obj.managementState, - 'mode': obj.mode, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'observability': toJson_OpenTelemetryCollectorV1Beta1SpecObservability(obj.observability), - 'podAnnotations': ((obj.podAnnotations) === undefined) ? undefined : (Object.entries(obj.podAnnotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'podDisruptionBudget': toJson_OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget(obj.podDisruptionBudget), - 'podDnsConfig': toJson_OpenTelemetryCollectorV1Beta1SpecPodDnsConfig(obj.podDnsConfig), - 'podSecurityContext': toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContext(obj.podSecurityContext), - 'ports': obj.ports?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecPorts(y)), - 'priorityClassName': obj.priorityClassName, - 'readinessProbe': toJson_OpenTelemetryCollectorV1Beta1SpecReadinessProbe(obj.readinessProbe), - 'replicas': obj.replicas, - 'resources': toJson_OpenTelemetryCollectorV1Beta1SpecResources(obj.resources), - 'securityContext': toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'shareProcessNamespace': obj.shareProcessNamespace, - 'targetAllocator': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocator(obj.targetAllocator), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'tolerations': obj.tolerations?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTolerations(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints(y)), - 'upgradeStrategy': obj.upgradeStrategy, - 'volumeClaimTemplates': obj.volumeClaimTemplates?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumeMounts(y)), - 'volumes': obj.volumes?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumes(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainers { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#args - */ - readonly args?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#command - */ - readonly command?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#env - */ - readonly env?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#envFrom - */ - readonly envFrom?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#lifecycle - */ - readonly lifecycle?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#livenessProbe - */ - readonly livenessProbe?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#ports - */ - readonly ports?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#readinessProbe - */ - readonly readinessProbe?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#resizePolicy - */ - readonly resizePolicy?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#resources - */ - readonly resources?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#startupProbe - */ - readonly startupProbe?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#volumeDevices - */ - readonly volumeDevices?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#volumeMounts - */ - readonly volumeMounts?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainers(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts(y)), - 'readinessProbe': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe(obj.readinessProbe), - 'resizePolicy': obj.resizePolicy?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy(y)), - 'resources': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources(obj.resources), - 'restartPolicy': obj.restartPolicy, - 'securityContext': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinity#nodeAffinity - */ - readonly nodeAffinity?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinity#podAffinity - */ - readonly podAffinity?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinity(obj: OpenTelemetryCollectorV1Beta1SpecAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscaler { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler#behavior - */ - readonly behavior?: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler#maxReplicas - */ - readonly maxReplicas?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler#metrics - */ - readonly metrics?: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler#minReplicas - */ - readonly minReplicas?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler#targetCPUUtilization - */ - readonly targetCpuUtilization?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscaler#targetMemoryUtilization - */ - readonly targetMemoryUtilization?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscaler' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscaler(obj: OpenTelemetryCollectorV1Beta1SpecAutoscaler | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'behavior': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior(obj.behavior), - 'maxReplicas': obj.maxReplicas, - 'metrics': obj.metrics?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics(y)), - 'minReplicas': obj.minReplicas, - 'targetCPUUtilization': obj.targetCpuUtilization, - 'targetMemoryUtilization': obj.targetMemoryUtilization, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig - */ -export interface OpenTelemetryCollectorV1Beta1SpecConfig { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig#connectors - */ - readonly connectors?: any; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig#exporters - */ - readonly exporters: any; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig#extensions - */ - readonly extensions?: any; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig#processors - */ - readonly processors?: any; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig#receivers - */ - readonly receivers: any; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfig#service - */ - readonly service: OpenTelemetryCollectorV1Beta1SpecConfigService; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecConfig(obj: OpenTelemetryCollectorV1Beta1SpecConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'connectors': obj.connectors, - 'exporters': obj.exporters, - 'extensions': obj.extensions, - 'processors': obj.processors, - 'receivers': obj.receivers, - 'service': toJson_OpenTelemetryCollectorV1Beta1SpecConfigService(obj.service), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigmaps - */ -export interface OpenTelemetryCollectorV1Beta1SpecConfigmaps { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigmaps#mountpath - */ - readonly mountpath: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigmaps#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecConfigmaps' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecConfigmaps(obj: OpenTelemetryCollectorV1Beta1SpecConfigmaps | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountpath': obj.mountpath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy - */ -export interface OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy(obj: OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy - */ -export interface OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy#rollingUpdate - */ - readonly rollingUpdate?: OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy(obj: OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'rollingUpdate': toJson_OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate(obj.rollingUpdate), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnv - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnv { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorV1Beta1SpecEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnv(obj: OpenTelemetryCollectorV1Beta1SpecEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFrom#configMapRef - */ - readonly configMapRef?: OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFrom#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvFrom(obj: OpenTelemetryCollectorV1Beta1SpecEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress - */ -export interface OpenTelemetryCollectorV1Beta1SpecIngress { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#hostname - */ - readonly hostname?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#ingressClassName - */ - readonly ingressClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#route - */ - readonly route?: OpenTelemetryCollectorV1Beta1SpecIngressRoute; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#ruleType - */ - readonly ruleType?: OpenTelemetryCollectorV1Beta1SpecIngressRuleType; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#tls - */ - readonly tls?: OpenTelemetryCollectorV1Beta1SpecIngressTls[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngress#type - */ - readonly type?: OpenTelemetryCollectorV1Beta1SpecIngressType; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecIngress' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecIngress(obj: OpenTelemetryCollectorV1Beta1SpecIngress | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'hostname': obj.hostname, - 'ingressClassName': obj.ingressClassName, - 'route': toJson_OpenTelemetryCollectorV1Beta1SpecIngressRoute(obj.route), - 'ruleType': obj.ruleType, - 'tls': obj.tls?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecIngressTls(y)), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainers { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#args - */ - readonly args?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#command - */ - readonly command?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#env - */ - readonly env?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnv[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#envFrom - */ - readonly envFrom?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#imagePullPolicy - */ - readonly imagePullPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#lifecycle - */ - readonly lifecycle?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#livenessProbe - */ - readonly livenessProbe?: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#ports - */ - readonly ports?: OpenTelemetryCollectorV1Beta1SpecInitContainersPorts[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#readinessProbe - */ - readonly readinessProbe?: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#resizePolicy - */ - readonly resizePolicy?: OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#resources - */ - readonly resources?: OpenTelemetryCollectorV1Beta1SpecInitContainersResources; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#restartPolicy - */ - readonly restartPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#startupProbe - */ - readonly startupProbe?: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#stdin - */ - readonly stdin?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#stdinOnce - */ - readonly stdinOnce?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#terminationMessagePath - */ - readonly terminationMessagePath?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#terminationMessagePolicy - */ - readonly terminationMessagePolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#tty - */ - readonly tty?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#volumeDevices - */ - readonly volumeDevices?: OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#volumeMounts - */ - readonly volumeMounts?: OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainers#workingDir - */ - readonly workingDir?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainers' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainers(obj: OpenTelemetryCollectorV1Beta1SpecInitContainers | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'args': obj.args?.map(y => y), - 'command': obj.command?.map(y => y), - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnv(y)), - 'envFrom': obj.envFrom?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom(y)), - 'image': obj.image, - 'imagePullPolicy': obj.imagePullPolicy, - 'lifecycle': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle(obj.lifecycle), - 'livenessProbe': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe(obj.livenessProbe), - 'name': obj.name, - 'ports': obj.ports?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersPorts(y)), - 'readinessProbe': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe(obj.readinessProbe), - 'resizePolicy': obj.resizePolicy?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy(y)), - 'resources': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersResources(obj.resources), - 'restartPolicy': obj.restartPolicy, - 'securityContext': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext(obj.securityContext), - 'startupProbe': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe(obj.startupProbe), - 'stdin': obj.stdin, - 'stdinOnce': obj.stdinOnce, - 'terminationMessagePath': obj.terminationMessagePath, - 'terminationMessagePolicy': obj.terminationMessagePolicy, - 'tty': obj.tty, - 'volumeDevices': obj.volumeDevices?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices(y)), - 'volumeMounts': obj.volumeMounts?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts(y)), - 'workingDir': obj.workingDir, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecycle - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecycle { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecycle#postStart - */ - readonly postStart?: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecycle#preStop - */ - readonly preStop?: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecycle(obj: OpenTelemetryCollectorV1Beta1SpecLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart(obj.postStart), - 'preStop': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecLivenessProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLivenessProbe(obj: OpenTelemetryCollectorV1Beta1SpecLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'failureThreshold': obj.failureThreshold, - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecManagementState - */ -export enum OpenTelemetryCollectorV1Beta1SpecManagementState { - /** managed */ - MANAGED = "managed", - /** unmanaged */ - UNMANAGED = "unmanaged", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecMode - */ -export enum OpenTelemetryCollectorV1Beta1SpecMode { - /** daemonset */ - DAEMONSET = "daemonset", - /** deployment */ - DEPLOYMENT = "deployment", - /** sidecar */ - SIDECAR = "sidecar", - /** statefulset */ - STATEFULSET = "statefulset", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecObservability - */ -export interface OpenTelemetryCollectorV1Beta1SpecObservability { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecObservability#metrics - */ - readonly metrics?: OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecObservability' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecObservability(obj: OpenTelemetryCollectorV1Beta1SpecObservability | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metrics': toJson_OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics(obj.metrics), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget#minAvailable - */ - readonly minAvailable?: OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget(obj: OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxUnavailable': obj.maxUnavailable?.value, - 'minAvailable': obj.minAvailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfig - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodDnsConfig { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfig#nameservers - */ - readonly nameservers?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfig#options - */ - readonly options?: OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfig#searches - */ - readonly searches?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodDnsConfig' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodDnsConfig(obj: OpenTelemetryCollectorV1Beta1SpecPodDnsConfig | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nameservers': obj.nameservers?.map(y => y), - 'options': obj.options?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions(y)), - 'searches': obj.searches?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodSecurityContext { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#sysctls - */ - readonly sysctls?: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContext(obj: OpenTelemetryCollectorV1Beta1SpecPodSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appArmorProfile': toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile(obj.appArmorProfile), - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls(y)), - 'windowsOptions': toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts - */ -export interface OpenTelemetryCollectorV1Beta1SpecPorts { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#appProtocol - */ - readonly appProtocol?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#nodePort - */ - readonly nodePort?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#protocol - */ - readonly protocol?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPorts#targetPort - */ - readonly targetPort?: OpenTelemetryCollectorV1Beta1SpecPortsTargetPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPorts(obj: OpenTelemetryCollectorV1Beta1SpecPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appProtocol': obj.appProtocol, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'nodePort': obj.nodePort, - 'port': obj.port, - 'protocol': obj.protocol, - 'targetPort': obj.targetPort?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecReadinessProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecReadinessProbe(obj: OpenTelemetryCollectorV1Beta1SpecReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'failureThreshold': obj.failureThreshold, - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecResources - */ -export interface OpenTelemetryCollectorV1Beta1SpecResources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecResources#claims - */ - readonly claims?: OpenTelemetryCollectorV1Beta1SpecResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecResources(obj: OpenTelemetryCollectorV1Beta1SpecResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext - */ -export interface OpenTelemetryCollectorV1Beta1SpecSecurityContext { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContext(obj: OpenTelemetryCollectorV1Beta1SpecSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocator { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#affinity - */ - readonly affinity?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#allocationStrategy - */ - readonly allocationStrategy?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAllocationStrategy; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#enabled - */ - readonly enabled?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#env - */ - readonly env?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#filterStrategy - */ - readonly filterStrategy?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorFilterStrategy; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#image - */ - readonly image?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#nodeSelector - */ - readonly nodeSelector?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#observability - */ - readonly observability?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#podDisruptionBudget - */ - readonly podDisruptionBudget?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#podSecurityContext - */ - readonly podSecurityContext?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#prometheusCR - */ - readonly prometheusCr?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#replicas - */ - readonly replicas?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#resources - */ - readonly resources?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#securityContext - */ - readonly securityContext?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#serviceAccount - */ - readonly serviceAccount?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#tolerations - */ - readonly tolerations?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocator#topologySpreadConstraints - */ - readonly topologySpreadConstraints?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocator' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocator(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocator | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'affinity': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity(obj.affinity), - 'allocationStrategy': obj.allocationStrategy, - 'enabled': obj.enabled, - 'env': obj.env?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv(y)), - 'filterStrategy': obj.filterStrategy, - 'image': obj.image, - 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'observability': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability(obj.observability), - 'podDisruptionBudget': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget(obj.podDisruptionBudget), - 'podSecurityContext': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext(obj.podSecurityContext), - 'prometheusCR': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr(obj.prometheusCr), - 'replicas': obj.replicas, - 'resources': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources(obj.resources), - 'securityContext': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext(obj.securityContext), - 'serviceAccount': obj.serviceAccount, - 'tolerations': obj.tolerations?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations(y)), - 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTolerations - */ -export interface OpenTelemetryCollectorV1Beta1SpecTolerations { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTolerations#effect - */ - readonly effect?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTolerations#key - */ - readonly key?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTolerations#operator - */ - readonly operator?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTolerations(obj: OpenTelemetryCollectorV1Beta1SpecTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints - */ -export interface OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#maxSkew - */ - readonly maxSkew: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#minDomains - */ - readonly minDomains?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#topologyKey - */ - readonly topologyKey: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints(obj: OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecUpgradeStrategy - */ -export enum OpenTelemetryCollectorV1Beta1SpecUpgradeStrategy { - /** automatic */ - AUTOMATIC = "automatic", - /** none */ - NONE = "none", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates#kind - */ - readonly kind?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates#metadata - */ - readonly metadata?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates#spec - */ - readonly spec?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates#status - */ - readonly status?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplates | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'kind': obj.kind, - 'metadata': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata(obj.metadata), - 'spec': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec(obj.spec), - 'status': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus(obj.status), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeMounts { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#recursiveReadOnly - */ - readonly recursiveReadOnly?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeMounts(obj: OpenTelemetryCollectorV1Beta1SpecVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'recursiveReadOnly': obj.recursiveReadOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumes { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#awsElasticBlockStore - */ - readonly awsElasticBlockStore?: OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#azureDisk - */ - readonly azureDisk?: OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#azureFile - */ - readonly azureFile?: OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#cephfs - */ - readonly cephfs?: OpenTelemetryCollectorV1Beta1SpecVolumesCephfs; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#cinder - */ - readonly cinder?: OpenTelemetryCollectorV1Beta1SpecVolumesCinder; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#configMap - */ - readonly configMap?: OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#csi - */ - readonly csi?: OpenTelemetryCollectorV1Beta1SpecVolumesCsi; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#downwardAPI - */ - readonly downwardApi?: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#emptyDir - */ - readonly emptyDir?: OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#ephemeral - */ - readonly ephemeral?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#fc - */ - readonly fc?: OpenTelemetryCollectorV1Beta1SpecVolumesFc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#flexVolume - */ - readonly flexVolume?: OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#flocker - */ - readonly flocker?: OpenTelemetryCollectorV1Beta1SpecVolumesFlocker; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#gcePersistentDisk - */ - readonly gcePersistentDisk?: OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#gitRepo - */ - readonly gitRepo?: OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#glusterfs - */ - readonly glusterfs?: OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#hostPath - */ - readonly hostPath?: OpenTelemetryCollectorV1Beta1SpecVolumesHostPath; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#iscsi - */ - readonly iscsi?: OpenTelemetryCollectorV1Beta1SpecVolumesIscsi; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#nfs - */ - readonly nfs?: OpenTelemetryCollectorV1Beta1SpecVolumesNfs; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#persistentVolumeClaim - */ - readonly persistentVolumeClaim?: OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#photonPersistentDisk - */ - readonly photonPersistentDisk?: OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#portworxVolume - */ - readonly portworxVolume?: OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#projected - */ - readonly projected?: OpenTelemetryCollectorV1Beta1SpecVolumesProjected; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#quobyte - */ - readonly quobyte?: OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#rbd - */ - readonly rbd?: OpenTelemetryCollectorV1Beta1SpecVolumesRbd; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#scaleIO - */ - readonly scaleIo?: OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#secret - */ - readonly secret?: OpenTelemetryCollectorV1Beta1SpecVolumesSecret; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#storageos - */ - readonly storageos?: OpenTelemetryCollectorV1Beta1SpecVolumesStorageos; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumes#vsphereVolume - */ - readonly vsphereVolume?: OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumes' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumes(obj: OpenTelemetryCollectorV1Beta1SpecVolumes | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'awsElasticBlockStore': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore(obj.awsElasticBlockStore), - 'azureDisk': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk(obj.azureDisk), - 'azureFile': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile(obj.azureFile), - 'cephfs': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCephfs(obj.cephfs), - 'cinder': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCinder(obj.cinder), - 'configMap': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap(obj.configMap), - 'csi': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCsi(obj.csi), - 'downwardAPI': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi(obj.downwardApi), - 'emptyDir': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir(obj.emptyDir), - 'ephemeral': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral(obj.ephemeral), - 'fc': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFc(obj.fc), - 'flexVolume': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume(obj.flexVolume), - 'flocker': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFlocker(obj.flocker), - 'gcePersistentDisk': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk(obj.gcePersistentDisk), - 'gitRepo': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo(obj.gitRepo), - 'glusterfs': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs(obj.glusterfs), - 'hostPath': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesHostPath(obj.hostPath), - 'iscsi': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesIscsi(obj.iscsi), - 'name': obj.name, - 'nfs': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesNfs(obj.nfs), - 'persistentVolumeClaim': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim(obj.persistentVolumeClaim), - 'photonPersistentDisk': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk(obj.photonPersistentDisk), - 'portworxVolume': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume(obj.portworxVolume), - 'projected': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjected(obj.projected), - 'quobyte': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte(obj.quobyte), - 'rbd': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesRbd(obj.rbd), - 'scaleIO': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo(obj.scaleIo), - 'secret': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesSecret(obj.secret), - 'storageos': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesStorageos(obj.storageos), - 'vsphereVolume': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume(obj.vsphereVolume), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom#configMapRef - */ - readonly configMapRef?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle#postStart - */ - readonly postStart?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle#preStop - */ - readonly preStop?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy#resourceName - */ - readonly resourceName: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy#restartPolicy - */ - readonly restartPolicy: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResizePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceName': obj.resourceName, - 'restartPolicy': obj.restartPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources#claims - */ - readonly claims?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#recursiveReadOnly - */ - readonly recursiveReadOnly?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'recursiveReadOnly': obj.recursiveReadOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior#scaleDown - */ - readonly scaleDown?: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior#scaleUp - */ - readonly scaleUp?: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehavior | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'scaleDown': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown(obj.scaleDown), - 'scaleUp': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp(obj.scaleUp), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics#pods - */ - readonly pods?: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'pods': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods(obj.pods), - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigService - */ -export interface OpenTelemetryCollectorV1Beta1SpecConfigService { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigService#extensions - */ - readonly extensions?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigService#pipelines - */ - readonly pipelines: { [key: string]: OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigService#telemetry - */ - readonly telemetry?: any; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecConfigService' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecConfigService(obj: OpenTelemetryCollectorV1Beta1SpecConfigService | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'extensions': obj.extensions?.map(y => y), - 'pipelines': ((obj.pipelines) === undefined) ? undefined : (Object.entries(obj.pipelines).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines(i[1]) }), {})), - 'telemetry': obj.telemetry, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate - */ -export interface OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate#maxSurge - */ - readonly maxSurge?: OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate(obj: OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate - */ -export interface OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate#maxSurge - */ - readonly maxSurge?: OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate(obj: OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxSurge': obj.maxSurge?.value, - 'maxUnavailable': obj.maxUnavailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvValueFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFrom(obj: OpenTelemetryCollectorV1Beta1SpecEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef(obj: OpenTelemetryCollectorV1Beta1SpecEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressRoute - */ -export interface OpenTelemetryCollectorV1Beta1SpecIngressRoute { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressRoute#termination - */ - readonly termination?: OpenTelemetryCollectorV1Beta1SpecIngressRouteTermination; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecIngressRoute' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecIngressRoute(obj: OpenTelemetryCollectorV1Beta1SpecIngressRoute | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'termination': obj.termination, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressRuleType - */ -export enum OpenTelemetryCollectorV1Beta1SpecIngressRuleType { - /** path */ - PATH = "path", - /** subdomain */ - SUBDOMAIN = "subdomain", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressTls - */ -export interface OpenTelemetryCollectorV1Beta1SpecIngressTls { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressTls#hosts - */ - readonly hosts?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressTls#secretName - */ - readonly secretName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecIngressTls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecIngressTls(obj: OpenTelemetryCollectorV1Beta1SpecIngressTls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'hosts': obj.hosts?.map(y => y), - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressType - */ -export enum OpenTelemetryCollectorV1Beta1SpecIngressType { - /** ingress */ - INGRESS = "ingress", - /** route */ - ROUTE = "route", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnv - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnv { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnv(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom#configMapRef - */ - readonly configMapRef?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom#prefix - */ - readonly prefix?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapRef': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef(obj.configMapRef), - 'prefix': obj.prefix, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle#postStart - */ - readonly postStart?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle#preStop - */ - readonly preStop?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecycle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'postStart': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart(obj.postStart), - 'preStop': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop(obj.preStop), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersPorts - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersPorts { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersPorts#containerPort - */ - readonly containerPort: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersPorts#hostIP - */ - readonly hostIp?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersPorts#hostPort - */ - readonly hostPort?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersPorts#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersPorts#protocol - */ - readonly protocol?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersPorts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersPorts(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersPorts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerPort': obj.containerPort, - 'hostIP': obj.hostIp, - 'hostPort': obj.hostPort, - 'name': obj.name, - 'protocol': obj.protocol, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy#resourceName - */ - readonly resourceName: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy#restartPolicy - */ - readonly restartPolicy: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersResizePolicy | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'resourceName': obj.resourceName, - 'restartPolicy': obj.restartPolicy, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResources - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersResources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResources#claims - */ - readonly claims?: OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersResources(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#failureThreshold - */ - readonly failureThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#grpc - */ - readonly grpc?: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#initialDelaySeconds - */ - readonly initialDelaySeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#periodSeconds - */ - readonly periodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#successThreshold - */ - readonly successThreshold?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#terminationGracePeriodSeconds - */ - readonly terminationGracePeriodSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe#timeoutSeconds - */ - readonly timeoutSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbe | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec(obj.exec), - 'failureThreshold': obj.failureThreshold, - 'grpc': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc(obj.grpc), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet(obj.httpGet), - 'initialDelaySeconds': obj.initialDelaySeconds, - 'periodSeconds': obj.periodSeconds, - 'successThreshold': obj.successThreshold, - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket(obj.tcpSocket), - 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, - 'timeoutSeconds': obj.timeoutSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices#devicePath - */ - readonly devicePath: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeDevices | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'devicePath': obj.devicePath, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#mountPath - */ - readonly mountPath: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#mountPropagation - */ - readonly mountPropagation?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#recursiveReadOnly - */ - readonly recursiveReadOnly?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#subPath - */ - readonly subPath?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts#subPathExpr - */ - readonly subPathExpr?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersVolumeMounts | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'mountPath': obj.mountPath, - 'mountPropagation': obj.mountPropagation, - 'name': obj.name, - 'readOnly': obj.readOnly, - 'recursiveReadOnly': obj.recursiveReadOnly, - 'subPath': obj.subPath, - 'subPathExpr': obj.subPathExpr, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart#sleep - */ - readonly sleep?: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop#sleep - */ - readonly sleep?: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics - */ -export interface OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics#disablePrometheusAnnotations - */ - readonly disablePrometheusAnnotations?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics#enableMetrics - */ - readonly enableMetrics?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics(obj: OpenTelemetryCollectorV1Beta1SpecObservabilityMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'disablePrometheusAnnotations': obj.disablePrometheusAnnotations, - 'enableMetrics': obj.enableMetrics, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable - */ -export class OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable - */ -export class OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorV1Beta1SpecPodDisruptionBudgetMinAvailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions(obj: OpenTelemetryCollectorV1Beta1SpecPodDnsConfigOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile(obj: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls(obj: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextSysctls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions(obj: OpenTelemetryCollectorV1Beta1SpecPodSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecPortsTargetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecPortsTargetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecPortsTargetPort { - return new OpenTelemetryCollectorV1Beta1SpecPortsTargetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecPortsTargetPort { - return new OpenTelemetryCollectorV1Beta1SpecPortsTargetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecResourcesClaims - */ -export interface OpenTelemetryCollectorV1Beta1SpecResourcesClaims { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecResourcesClaims(obj: OpenTelemetryCollectorV1Beta1SpecResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecResourcesLimits - */ -export class OpenTelemetryCollectorV1Beta1SpecResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecResourcesRequests - */ -export class OpenTelemetryCollectorV1Beta1SpecResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorV1Beta1SpecSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities(obj: OpenTelemetryCollectorV1Beta1SpecSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorV1Beta1SpecSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile(obj: OpenTelemetryCollectorV1Beta1SpecSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions(obj: OpenTelemetryCollectorV1Beta1SpecSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity#nodeAffinity - */ - readonly nodeAffinity?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity#podAffinity - */ - readonly podAffinity?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity#podAntiAffinity - */ - readonly podAntiAffinity?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeAffinity': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity(obj.nodeAffinity), - 'podAffinity': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity(obj.podAffinity), - 'podAntiAffinity': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity(obj.podAntiAffinity), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAllocationStrategy - */ -export enum OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAllocationStrategy { - /** least-weighted */ - LEAST_HYPHEN_WEIGHTED = "least-weighted", - /** consistent-hashing */ - CONSISTENT_HYPHEN_HASHING = "consistent-hashing", - /** per-node */ - PER_HYPHEN_NODE = "per-node", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv#value - */ - readonly value?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv#valueFrom - */ - readonly valueFrom?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnv | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - 'valueFrom': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom(obj.valueFrom), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorFilterStrategy - */ -export enum OpenTelemetryCollectorV1Beta1SpecTargetAllocatorFilterStrategy { - /** relabel-config */ - RELABEL_HYPHEN_CONFIG = "relabel-config", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability#metrics - */ - readonly metrics?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservability | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metrics': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics(obj.metrics), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget#maxUnavailable - */ - readonly maxUnavailable?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget#minAvailable - */ - readonly minAvailable?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'maxUnavailable': obj.maxUnavailable?.value, - 'minAvailable': obj.minAvailable?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#fsGroup - */ - readonly fsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#fsGroupChangePolicy - */ - readonly fsGroupChangePolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#supplementalGroups - */ - readonly supplementalGroups?: number[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#sysctls - */ - readonly sysctls?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'appArmorProfile': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile(obj.appArmorProfile), - 'fsGroup': obj.fsGroup, - 'fsGroupChangePolicy': obj.fsGroupChangePolicy, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile(obj.seccompProfile), - 'supplementalGroups': obj.supplementalGroups?.map(y => y), - 'sysctls': obj.sysctls?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls(y)), - 'windowsOptions': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr#enabled - */ - readonly enabled?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr#podMonitorSelector - */ - readonly podMonitorSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr#scrapeInterval - */ - readonly scrapeInterval?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr#serviceMonitorSelector - */ - readonly serviceMonitorSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCr | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'enabled': obj.enabled, - 'podMonitorSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector(obj.podMonitorSelector), - 'scrapeInterval': obj.scrapeInterval, - 'serviceMonitorSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector(obj.serviceMonitorSelector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources#claims - */ - readonly claims?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claims': obj.claims?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims(y)), - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#allowPrivilegeEscalation - */ - readonly allowPrivilegeEscalation?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#appArmorProfile - */ - readonly appArmorProfile?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#capabilities - */ - readonly capabilities?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#privileged - */ - readonly privileged?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#procMount - */ - readonly procMount?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#readOnlyRootFilesystem - */ - readonly readOnlyRootFilesystem?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#runAsGroup - */ - readonly runAsGroup?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#runAsNonRoot - */ - readonly runAsNonRoot?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#runAsUser - */ - readonly runAsUser?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#seLinuxOptions - */ - readonly seLinuxOptions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#seccompProfile - */ - readonly seccompProfile?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext#windowsOptions - */ - readonly windowsOptions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContext | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, - 'appArmorProfile': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile(obj.appArmorProfile), - 'capabilities': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities(obj.capabilities), - 'privileged': obj.privileged, - 'procMount': obj.procMount, - 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, - 'runAsGroup': obj.runAsGroup, - 'runAsNonRoot': obj.runAsNonRoot, - 'runAsUser': obj.runAsUser, - 'seLinuxOptions': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions(obj.seLinuxOptions), - 'seccompProfile': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile(obj.seccompProfile), - 'windowsOptions': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions(obj.windowsOptions), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations#effect - */ - readonly effect?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations#key - */ - readonly key?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations#operator - */ - readonly operator?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations#tolerationSeconds - */ - readonly tolerationSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations#value - */ - readonly value?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTolerations | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'effect': obj.effect, - 'key': obj.key, - 'operator': obj.operator, - 'tolerationSeconds': obj.tolerationSeconds, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#maxSkew - */ - readonly maxSkew: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#minDomains - */ - readonly minDomains?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#nodeAffinityPolicy - */ - readonly nodeAffinityPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#nodeTaintsPolicy - */ - readonly nodeTaintsPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#topologyKey - */ - readonly topologyKey: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints#whenUnsatisfiable - */ - readonly whenUnsatisfiable: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraints | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'maxSkew': obj.maxSkew, - 'minDomains': obj.minDomains, - 'nodeAffinityPolicy': obj.nodeAffinityPolicy, - 'nodeTaintsPolicy': obj.nodeTaintsPolicy, - 'topologyKey': obj.topologyKey, - 'whenUnsatisfiable': obj.whenUnsatisfiable, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata#finalizers - */ - readonly finalizers?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata#labels - */ - readonly labels?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'finalizers': obj.finalizers?.map(y => y), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#accessModes - */ - readonly accessModes?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#dataSource - */ - readonly dataSource?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#dataSourceRef - */ - readonly dataSourceRef?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#resources - */ - readonly resources?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#selector - */ - readonly selector?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#storageClassName - */ - readonly storageClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#volumeAttributesClassName - */ - readonly volumeAttributesClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#volumeMode - */ - readonly volumeMode?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'dataSource': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource(obj.dataSource), - 'dataSourceRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef(obj.dataSourceRef), - 'resources': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources(obj.resources), - 'selector': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector(obj.selector), - 'storageClassName': obj.storageClassName, - 'volumeAttributesClassName': obj.volumeAttributesClassName, - 'volumeMode': obj.volumeMode, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#accessModes - */ - readonly accessModes?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#allocatedResourceStatuses - */ - readonly allocatedResourceStatuses?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#allocatedResources - */ - readonly allocatedResources?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#capacity - */ - readonly capacity?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#conditions - */ - readonly conditions?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#currentVolumeAttributesClassName - */ - readonly currentVolumeAttributesClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#modifyVolumeStatus - */ - readonly modifyVolumeStatus?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus#phase - */ - readonly phase?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'allocatedResourceStatuses': ((obj.allocatedResourceStatuses) === undefined) ? undefined : (Object.entries(obj.allocatedResourceStatuses).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'allocatedResources': ((obj.allocatedResources) === undefined) ? undefined : (Object.entries(obj.allocatedResources).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'capacity': ((obj.capacity) === undefined) ? undefined : (Object.entries(obj.capacity).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'conditions': obj.conditions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions(y)), - 'currentVolumeAttributesClassName': obj.currentVolumeAttributesClassName, - 'modifyVolumeStatus': toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus(obj.modifyVolumeStatus), - 'phase': obj.phase, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore#partition - */ - readonly partition?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore(obj: OpenTelemetryCollectorV1Beta1SpecVolumesAwsElasticBlockStore | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'partition': obj.partition, - 'readOnly': obj.readOnly, - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk#cachingMode - */ - readonly cachingMode?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk#diskName - */ - readonly diskName: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk#diskURI - */ - readonly diskUri: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk#kind - */ - readonly kind?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk(obj: OpenTelemetryCollectorV1Beta1SpecVolumesAzureDisk | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'cachingMode': obj.cachingMode, - 'diskName': obj.diskName, - 'diskURI': obj.diskUri, - 'fsType': obj.fsType, - 'kind': obj.kind, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile#secretName - */ - readonly secretName: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile#shareName - */ - readonly shareName: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile(obj: OpenTelemetryCollectorV1Beta1SpecVolumesAzureFile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'readOnly': obj.readOnly, - 'secretName': obj.secretName, - 'shareName': obj.shareName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesCephfs { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs#monitors - */ - readonly monitors: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs#secretFile - */ - readonly secretFile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfs#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesCephfs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCephfs(obj: OpenTelemetryCollectorV1Beta1SpecVolumesCephfs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'monitors': obj.monitors?.map(y => y), - 'path': obj.path, - 'readOnly': obj.readOnly, - 'secretFile': obj.secretFile, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinder - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesCinder { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinder#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinder#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinder#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinder#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesCinder' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCinder(obj: OpenTelemetryCollectorV1Beta1SpecVolumesCinder | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef(obj.secretRef), - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap#items - */ - readonly items?: OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap(obj: OpenTelemetryCollectorV1Beta1SpecVolumesConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsi - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesCsi { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsi#driver - */ - readonly driver: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsi#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsi#nodePublishSecretRef - */ - readonly nodePublishSecretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsi#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsi#volumeAttributes - */ - readonly volumeAttributes?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesCsi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCsi(obj: OpenTelemetryCollectorV1Beta1SpecVolumesCsi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'nodePublishSecretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef(obj.nodePublishSecretRef), - 'readOnly': obj.readOnly, - 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi#items - */ - readonly items?: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi(obj: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir#medium - */ - readonly medium?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir#sizeLimit - */ - readonly sizeLimit?: OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDir | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'medium': obj.medium, - 'sizeLimit': obj.sizeLimit?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral#volumeClaimTemplate - */ - readonly volumeClaimTemplate?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeral | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'volumeClaimTemplate': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate(obj.volumeClaimTemplate), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFc - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesFc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFc#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFc#lun - */ - readonly lun?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFc#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFc#targetWWNs - */ - readonly targetWwNs?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFc#wwids - */ - readonly wwids?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesFc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFc(obj: OpenTelemetryCollectorV1Beta1SpecVolumesFc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'lun': obj.lun, - 'readOnly': obj.readOnly, - 'targetWWNs': obj.targetWwNs?.map(y => y), - 'wwids': obj.wwids?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume#driver - */ - readonly driver: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume#options - */ - readonly options?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume(obj: OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'driver': obj.driver, - 'fsType': obj.fsType, - 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef(obj.secretRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlocker - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesFlocker { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlocker#datasetName - */ - readonly datasetName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlocker#datasetUUID - */ - readonly datasetUuid?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesFlocker' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFlocker(obj: OpenTelemetryCollectorV1Beta1SpecVolumesFlocker | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'datasetName': obj.datasetName, - 'datasetUUID': obj.datasetUuid, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk#partition - */ - readonly partition?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk#pdName - */ - readonly pdName: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk(obj: OpenTelemetryCollectorV1Beta1SpecVolumesGcePersistentDisk | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'partition': obj.partition, - 'pdName': obj.pdName, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo#directory - */ - readonly directory?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo#repository - */ - readonly repository: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo#revision - */ - readonly revision?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo(obj: OpenTelemetryCollectorV1Beta1SpecVolumesGitRepo | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'directory': obj.directory, - 'repository': obj.repository, - 'revision': obj.revision, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs#endpoints - */ - readonly endpoints: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs(obj: OpenTelemetryCollectorV1Beta1SpecVolumesGlusterfs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'endpoints': obj.endpoints, - 'path': obj.path, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesHostPath - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesHostPath { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesHostPath#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesHostPath#type - */ - readonly type?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesHostPath' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesHostPath(obj: OpenTelemetryCollectorV1Beta1SpecVolumesHostPath | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesIscsi { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#chapAuthDiscovery - */ - readonly chapAuthDiscovery?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#chapAuthSession - */ - readonly chapAuthSession?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#initiatorName - */ - readonly initiatorName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#iqn - */ - readonly iqn: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#iscsiInterface - */ - readonly iscsiInterface?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#lun - */ - readonly lun: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#portals - */ - readonly portals?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsi#targetPortal - */ - readonly targetPortal: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesIscsi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesIscsi(obj: OpenTelemetryCollectorV1Beta1SpecVolumesIscsi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'chapAuthDiscovery': obj.chapAuthDiscovery, - 'chapAuthSession': obj.chapAuthSession, - 'fsType': obj.fsType, - 'initiatorName': obj.initiatorName, - 'iqn': obj.iqn, - 'iscsiInterface': obj.iscsiInterface, - 'lun': obj.lun, - 'portals': obj.portals?.map(y => y), - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef(obj.secretRef), - 'targetPortal': obj.targetPortal, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesNfs - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesNfs { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesNfs#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesNfs#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesNfs#server - */ - readonly server: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesNfs' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesNfs(obj: OpenTelemetryCollectorV1Beta1SpecVolumesNfs | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'path': obj.path, - 'readOnly': obj.readOnly, - 'server': obj.server, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim#claimName - */ - readonly claimName: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim#readOnly - */ - readonly readOnly?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim(obj: OpenTelemetryCollectorV1Beta1SpecVolumesPersistentVolumeClaim | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'claimName': obj.claimName, - 'readOnly': obj.readOnly, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk#pdID - */ - readonly pdId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk(obj: OpenTelemetryCollectorV1Beta1SpecVolumesPhotonPersistentDisk | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'pdID': obj.pdId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume#volumeID - */ - readonly volumeId: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume(obj: OpenTelemetryCollectorV1Beta1SpecVolumesPortworxVolume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'volumeID': obj.volumeId, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjected - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjected { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjected#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjected#sources - */ - readonly sources?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjected' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjected(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjected | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'sources': obj.sources?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte#group - */ - readonly group?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte#registry - */ - readonly registry: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte#tenant - */ - readonly tenant?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte#user - */ - readonly user?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte#volume - */ - readonly volume: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte(obj: OpenTelemetryCollectorV1Beta1SpecVolumesQuobyte | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'group': obj.group, - 'readOnly': obj.readOnly, - 'registry': obj.registry, - 'tenant': obj.tenant, - 'user': obj.user, - 'volume': obj.volume, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesRbd { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#image - */ - readonly image: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#keyring - */ - readonly keyring?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#monitors - */ - readonly monitors: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#pool - */ - readonly pool?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbd#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesRbd' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesRbd(obj: OpenTelemetryCollectorV1Beta1SpecVolumesRbd | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'image': obj.image, - 'keyring': obj.keyring, - 'monitors': obj.monitors?.map(y => y), - 'pool': obj.pool, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef(obj.secretRef), - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#gateway - */ - readonly gateway: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#protectionDomain - */ - readonly protectionDomain?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#secretRef - */ - readonly secretRef: OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#sslEnabled - */ - readonly sslEnabled?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#storageMode - */ - readonly storageMode?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#storagePool - */ - readonly storagePool?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#system - */ - readonly system: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo(obj: OpenTelemetryCollectorV1Beta1SpecVolumesScaleIo | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'gateway': obj.gateway, - 'protectionDomain': obj.protectionDomain, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef(obj.secretRef), - 'sslEnabled': obj.sslEnabled, - 'storageMode': obj.storageMode, - 'storagePool': obj.storagePool, - 'system': obj.system, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecret - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesSecret { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecret#defaultMode - */ - readonly defaultMode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecret#items - */ - readonly items?: OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecret#optional - */ - readonly optional?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecret#secretName - */ - readonly secretName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesSecret(obj: OpenTelemetryCollectorV1Beta1SpecVolumesSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'defaultMode': obj.defaultMode, - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems(y)), - 'optional': obj.optional, - 'secretName': obj.secretName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageos - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesStorageos { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageos#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageos#readOnly - */ - readonly readOnly?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageos#secretRef - */ - readonly secretRef?: OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageos#volumeName - */ - readonly volumeName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageos#volumeNamespace - */ - readonly volumeNamespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesStorageos' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesStorageos(obj: OpenTelemetryCollectorV1Beta1SpecVolumesStorageos | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'readOnly': obj.readOnly, - 'secretRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef(obj.secretRef), - 'volumeName': obj.volumeName, - 'volumeNamespace': obj.volumeNamespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume#fsType - */ - readonly fsType?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume#storagePolicyID - */ - readonly storagePolicyId?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume#storagePolicyName - */ - readonly storagePolicyName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume#volumePath - */ - readonly volumePath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume(obj: OpenTelemetryCollectorV1Beta1SpecVolumesVsphereVolume | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fsType': obj.fsType, - 'storagePolicyID': obj.storagePolicyId, - 'storagePolicyName': obj.storagePolicyName, - 'volumePath': obj.volumePath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart#sleep - */ - readonly sleep?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop#sleep - */ - readonly sleep?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown#policies - */ - readonly policies?: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown#selectPolicy - */ - readonly selectPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown#stabilizationWindowSeconds - */ - readonly stabilizationWindowSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDown | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'policies': obj.policies?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies(y)), - 'selectPolicy': obj.selectPolicy, - 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp#policies - */ - readonly policies?: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp#selectPolicy - */ - readonly selectPolicy?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp#stabilizationWindowSeconds - */ - readonly stabilizationWindowSeconds?: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUp | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'policies': obj.policies?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies(y)), - 'selectPolicy': obj.selectPolicy, - 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods#metric - */ - readonly metric: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods#target - */ - readonly target: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPods | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metric': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric(obj.metric), - 'target': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget(obj.target), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines - */ -export interface OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines#exporters - */ - readonly exporters: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines#processors - */ - readonly processors?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines#receivers - */ - readonly receivers: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines(obj: OpenTelemetryCollectorV1Beta1SpecConfigServicePipelines | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exporters': obj.exporters?.map(y => y), - 'processors': obj.processors?.map(y => y), - 'receivers': obj.receivers?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge - */ -export class OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxSurge(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable - */ -export class OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecDaemonSetUpdateStrategyRollingUpdateMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge - */ -export class OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge { - return new OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxSurge(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable - */ -export class OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecDeploymentUpdateStrategyRollingUpdateMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecIngressRouteTermination - */ -export enum OpenTelemetryCollectorV1Beta1SpecIngressRouteTermination { - /** insecure */ - INSECURE = "insecure", - /** edge */ - EDGE = "edge", - /** passthrough */ - PASSTHROUGH = "passthrough", - /** reencrypt */ - REENCRYPT = "reencrypt", -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromConfigMapRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvFromSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart#sleep - */ - readonly sleep?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStart | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop#exec - */ - readonly exec?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop#httpGet - */ - readonly httpGet?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop#sleep - */ - readonly sleep?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop#tcpSocket - */ - readonly tcpSocket?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStop | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'exec': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec(obj.exec), - 'httpGet': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet(obj.httpGet), - 'sleep': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep(obj.sleep), - 'tcpSocket': toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket(obj.tcpSocket), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc#port - */ - readonly port: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc#service - */ - readonly service?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeGrpc | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'port': obj.port, - 'service': obj.service, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj.requiredDuringSchedulingIgnoredDuringExecution), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution - */ - readonly preferredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution - */ - readonly requiredDuringSchedulingIgnoredDuringExecution?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinity | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(y)), - 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom#configMapKeyRef - */ - readonly configMapKeyRef?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom#secretKeyRef - */ - readonly secretKeyRef?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFrom | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'configMapKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef(obj.configMapKeyRef), - 'fieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef(obj.fieldRef), - 'resourceFieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef(obj.resourceFieldRef), - 'secretKeyRef': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef(obj.secretKeyRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics#disablePrometheusAnnotations - */ - readonly disablePrometheusAnnotations?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics#enableMetrics - */ - readonly enableMetrics?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorObservabilityMetrics | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'disablePrometheusAnnotations': obj.disablePrometheusAnnotations, - 'enableMetrics': obj.enableMetrics, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable - */ -export class OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMaxUnavailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable - */ -export class OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodDisruptionBudgetMinAvailable(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextSysctls | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPodSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesClaims | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits - */ -export class OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests - */ -export class OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextAppArmorProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities#add - */ - readonly add?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities#drop - */ - readonly drop?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextCapabilities | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'add': obj.add?.map(y => y), - 'drop': obj.drop?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions#level - */ - readonly level?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions#role - */ - readonly role?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions#type - */ - readonly type?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions#user - */ - readonly user?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeLinuxOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'level': obj.level, - 'role': obj.role, - 'type': obj.type, - 'user': obj.user, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile#localhostProfile - */ - readonly localhostProfile?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextSeccompProfile | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'localhostProfile': obj.localhostProfile, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions#gmsaCredentialSpec - */ - readonly gmsaCredentialSpec?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions#gmsaCredentialSpecName - */ - readonly gmsaCredentialSpecName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions#hostProcess - */ - readonly hostProcess?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions#runAsUserName - */ - readonly runAsUserName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorSecurityContextWindowsOptions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'gmsaCredentialSpec': obj.gmsaCredentialSpec, - 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, - 'hostProcess': obj.hostProcess, - 'runAsUserName': obj.runAsUserName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTopologySpreadConstraintsLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecDataSourceRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusAllocatedResources(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusCapacity(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions#lastProbeTime - */ - readonly lastProbeTime?: Date; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions#lastTransitionTime - */ - readonly lastTransitionTime?: Date; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions#message - */ - readonly message?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions#reason - */ - readonly reason?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions#status - */ - readonly status: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions#type - */ - readonly type: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusConditions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'lastProbeTime': obj.lastProbeTime?.toISOString(), - 'lastTransitionTime': obj.lastTransitionTime?.toISOString(), - 'message': obj.message, - 'reason': obj.reason, - 'status': obj.status, - 'type': obj.type, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus#status - */ - readonly status: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus#targetVolumeAttributesClassName - */ - readonly targetVolumeAttributesClassName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesStatusModifyVolumeStatus | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'status': obj.status, - 'targetVolumeAttributesClassName': obj.targetVolumeAttributesClassName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesCephfsSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesCinderSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems(obj: OpenTelemetryCollectorV1Beta1SpecVolumesConfigMapItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesCsiNodePublishSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems(obj: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef(obj.fieldRef), - 'mode': obj.mode, - 'path': obj.path, - 'resourceFieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef(obj.resourceFieldRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit { - return new OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit { - return new OpenTelemetryCollectorV1Beta1SpecVolumesEmptyDirSizeLimit(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate#metadata - */ - readonly metadata?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate#spec - */ - readonly spec: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplate | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'metadata': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata(obj.metadata), - 'spec': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec(obj.spec), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesFlexVolumeSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesIscsiSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources#clusterTrustBundle - */ - readonly clusterTrustBundle?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources#configMap - */ - readonly configMap?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources#downwardAPI - */ - readonly downwardApi?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources#secret - */ - readonly secret?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources#serviceAccountToken - */ - readonly serviceAccountToken?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'clusterTrustBundle': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle(obj.clusterTrustBundle), - 'configMap': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap(obj.configMap), - 'downwardAPI': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi(obj.downwardApi), - 'secret': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret(obj.secret), - 'serviceAccountToken': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken(obj.serviceAccountToken), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesRbdSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesScaleIoSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems(obj: OpenTelemetryCollectorV1Beta1SpecVolumesSecretItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef#name - */ - readonly name?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesStorageosSecretRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies#periodSeconds - */ - readonly periodSeconds: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies#type - */ - readonly type: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies#value - */ - readonly value: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleDownPolicies | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'periodSeconds': obj.periodSeconds, - 'type': obj.type, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies#periodSeconds - */ - readonly periodSeconds: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies#type - */ - readonly type: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies#value - */ - readonly value: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerBehaviorScaleUpPolicies | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'periodSeconds': obj.periodSeconds, - 'type': obj.type, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric#selector - */ - readonly selector?: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetric | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'selector': toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector(obj.selector), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget#averageUtilization - */ - readonly averageUtilization?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget#averageValue - */ - readonly averageValue?: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget#type - */ - readonly type: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget#value - */ - readonly value?: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTarget | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'averageUtilization': obj.averageUtilization, - 'averageValue': obj.averageValue?.value, - 'type': obj.type, - 'value': obj.value?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec#command - */ - readonly command?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopExec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'command': obj.command?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet#httpHeaders - */ - readonly httpHeaders?: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet#path - */ - readonly path?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet#scheme - */ - readonly scheme?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGet | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'httpHeaders': obj.httpHeaders?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders(y)), - 'path': obj.path, - 'port': obj.port?.value, - 'scheme': obj.scheme, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep#seconds - */ - readonly seconds: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopSleep | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'seconds': obj.seconds, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket#host - */ - readonly host?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket#port - */ - readonly port: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocket | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'host': obj.host, - 'port': obj.port?.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLivenessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersReadinessProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersStartupProbeTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#preference - */ - readonly preference: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'preference': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj.preference), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution#nodeSelectorTerms - */ - readonly nodeSelectorTerms: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#podAffinityTerm - */ - readonly podAffinityTerm: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution#weight - */ - readonly weight: number; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'podAffinityTerm': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj.podAffinityTerm), - 'weight': obj.weight, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromConfigMapKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromSecretKeyRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrPodMonitorSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorPrometheusCrServiceMonitorSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorTopologySpreadConstraintsLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecVolumeClaimTemplatesSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata#annotations - */ - readonly annotations?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata#finalizers - */ - readonly finalizers?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata#labels - */ - readonly labels?: { [key: string]: string }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateMetadata | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'finalizers': obj.finalizers?.map(y => y), - 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#accessModes - */ - readonly accessModes?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#dataSource - */ - readonly dataSource?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#dataSourceRef - */ - readonly dataSourceRef?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#resources - */ - readonly resources?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#selector - */ - readonly selector?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#storageClassName - */ - readonly storageClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#volumeAttributesClassName - */ - readonly volumeAttributesClassName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#volumeMode - */ - readonly volumeMode?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec#volumeName - */ - readonly volumeName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpec | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'accessModes': obj.accessModes?.map(y => y), - 'dataSource': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource(obj.dataSource), - 'dataSourceRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef(obj.dataSourceRef), - 'resources': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources(obj.resources), - 'selector': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector(obj.selector), - 'storageClassName': obj.storageClassName, - 'volumeAttributesClassName': obj.volumeAttributesClassName, - 'volumeMode': obj.volumeMode, - 'volumeName': obj.volumeName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle#optional - */ - readonly optional?: boolean; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle#signerName - */ - readonly signerName?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundle | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector(obj.labelSelector), - 'name': obj.name, - 'optional': obj.optional, - 'path': obj.path, - 'signerName': obj.signerName, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap#items - */ - readonly items?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMap | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi#items - */ - readonly items?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApi | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret#items - */ - readonly items?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret#name - */ - readonly name?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret#optional - */ - readonly optional?: boolean; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecret | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'items': obj.items?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems(y)), - 'name': obj.name, - 'optional': obj.optional, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken#audience - */ - readonly audience?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken#expirationSeconds - */ - readonly expirationSeconds?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesServiceAccountToken | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'audience': obj.audience, - 'expirationSeconds': obj.expirationSeconds, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecAdditionalContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: OpenTelemetryCollectorV1Beta1SpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue - */ -export class OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue { - return new OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue { - return new OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetAverageValue(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue - */ -export class OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue { - return new OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue { - return new OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsTargetValue(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePostStartTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders - */ -export interface OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders#value - */ - readonly value: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders(obj: OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetHttpHeaders | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'name': obj.name, - 'value': obj.value, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopHttpGetPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort - */ -export class OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort { - return new OpenTelemetryCollectorV1Beta1SpecInitContainersLifecyclePreStopTcpSocketPort(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms#matchFields - */ - readonly matchFields?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(y)), - 'matchFields': obj.matchFields?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(y)), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#labelSelector - */ - readonly labelSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#matchLabelKeys - */ - readonly matchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#mismatchLabelKeys - */ - readonly mismatchLabelKeys?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaceSelector - */ - readonly namespaceSelector?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#namespaces - */ - readonly namespaces?: string[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm#topologyKey - */ - readonly topologyKey: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'labelSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj.labelSelector), - 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), - 'mismatchLabelKeys': obj.mismatchLabelKeys?.map(y => y), - 'namespaceSelector': toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj.namespaceSelector), - 'namespaces': obj.namespaces?.map(y => y), - 'topologyKey': obj.topologyKey, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecTargetAllocatorEnvValueFromResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecVolumesDownwardApiItemsResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource#name - */ - readonly name: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSource | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#apiGroup - */ - readonly apiGroup?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#kind - */ - readonly kind: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#name - */ - readonly name: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef#namespace - */ - readonly namespace?: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecDataSourceRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiGroup': obj.apiGroup, - 'kind': obj.kind, - 'name': obj.name, - 'namespace': obj.namespace, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources#limits - */ - readonly limits?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits }; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources#requests - */ - readonly requests?: { [key: string]: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResources | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesConfigMapItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems#fieldRef - */ - readonly fieldRef?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems#path - */ - readonly path: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems#resourceFieldRef - */ - readonly resourceFieldRef?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'fieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef(obj.fieldRef), - 'mode': obj.mode, - 'path': obj.path, - 'resourceFieldRef': toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef(obj.resourceFieldRef), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems#mode - */ - readonly mode?: number; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems#path - */ - readonly path: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesSecretItems | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'mode': obj.mode, - 'path': obj.path, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecAutoscalerMetricsPodsMetricSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchExpressions - */ - readonly matchExpressions?: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions[]; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector#matchLabels - */ - readonly matchLabels?: { [key: string]: string }; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelector | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'matchExpressions': obj.matchExpressions?.map(y => toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(y)), - 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits { - return new OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesLimits(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests { - return new OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecResourcesRequests(value); - } - private constructor(public readonly value: number | string) { - } -} - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecVolumesEphemeralVolumeClaimTemplateSpecSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesClusterTrustBundleLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef#apiVersion - */ - readonly apiVersion?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef#fieldPath - */ - readonly fieldPath: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'apiVersion': obj.apiVersion, - 'fieldPath': obj.fieldPath, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef - */ -export interface OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef#containerName - */ - readonly containerName?: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef#divisor - */ - readonly divisor?: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef#resource - */ - readonly resource: string; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef(obj: OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRef | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'containerName': obj.containerName, - 'divisor': obj.divisor?.value, - 'resource': obj.resource, - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions - */ -export interface OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions { - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#key - */ - readonly key: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#operator - */ - readonly operator: string; - - /** - * @schema OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions#values - */ - readonly values?: string[]; - -} - -/** - * Converts an object of type 'OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions' to JSON representation. - */ -/* eslint-disable max-len, quote-props */ -export function toJson_OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions(obj: OpenTelemetryCollectorV1Beta1SpecTargetAllocatorAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermNamespaceSelectorMatchExpressions | undefined): Record | undefined { - if (obj === undefined) { return undefined; } - const result = { - 'key': obj.key, - 'operator': obj.operator, - 'values': obj.values?.map(y => y), - }; - // filter undefined values - return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); -} -/* eslint-enable max-len, quote-props */ - -/** - * @schema OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor - */ -export class OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor { - public static fromNumber(value: number): OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor(value); - } - public static fromString(value: string): OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor { - return new OpenTelemetryCollectorV1Beta1SpecVolumesProjectedSourcesDownwardApiItemsResourceFieldRefDivisor(value); - } - private constructor(public readonly value: number | string) { - } -} - diff --git a/.devops/aws/src/migrator/lambdaIsComplete.ts b/.devops/aws/src/migrator/lambdaIsComplete.ts deleted file mode 100644 index 487ecb7..0000000 --- a/.devops/aws/src/migrator/lambdaIsComplete.ts +++ /dev/null @@ -1,79 +0,0 @@ -// The AWS SDK is provided by the runtime. Other node modules must be bundled via esbuild. -import * as k8s from '@kubernetes/client-node'; - -/** - * This lambda function is used to check if a Kubernetes job has completed. The - * primary use case is for Cloudformation to wait for database migrations to complete - * before continuing. - * @param event - * @returns - */ -export async function handler(event: { - RequestType: 'Create' | 'Update' | 'Delete'; - ResourceProperties: { - cert: string; - token: string; - clusterServer: string; - jobBody: string; - }; -}) { - if (event.RequestType === 'Delete') { - return { - IsComplete: true, - }; - } - const { - cert: caData, - token, - clusterServer: server, - jobBody: serializedJobBody, - } = event.ResourceProperties; - const decodedToken = Buffer.from(token, 'base64').toString('utf-8'); - const kubeconfig = new k8s.KubeConfig(); - kubeconfig.loadFromClusterAndUser( - { - name: 'cluster', - server, - // caData is a base64 encoded string. - caData, - }, - { - name: 'migrations', - token: decodedToken, - }, - ); - - const jobBody = JSON.parse(serializedJobBody) as k8s.V1Job; - - const k8sApi = kubeconfig.makeApiClient(k8s.BatchV1Api); - if ( - jobBody.metadata?.name === undefined || - jobBody.metadata?.namespace === undefined - ) { - throw new Error('Job creation failed: name and namespace are required'); - } - const response = await k8sApi.readNamespacedJobStatus( - jobBody.metadata.name, - jobBody.metadata.namespace, - ); - - const condition = response.body.status?.conditions?.[0]; - - if (condition?.type === 'Failed' && condition?.status === 'True') { - throw new Error('Job failed'); - } - - if (condition?.type === 'Complete' && condition?.status === 'True') { - console.log('Job is complete'); - return { - IsComplete: true, - Data: { - hello: 'world', - }, - }; - } - - return { - IsComplete: false, - }; -} diff --git a/.devops/aws/src/migrator/lambdaOnEvent.ts b/.devops/aws/src/migrator/lambdaOnEvent.ts deleted file mode 100644 index 7c7dda6..0000000 --- a/.devops/aws/src/migrator/lambdaOnEvent.ts +++ /dev/null @@ -1,60 +0,0 @@ -// The AWS SDK is provided by the runtime. Other node modules must be bundled via esbuild. -import * as k8s from '@kubernetes/client-node'; - -/** - * This lambda function is used to create a Kubernetes job. The primary use case - * is for Cloudformation to run database migrations. - * @param event - * @returns - */ -export async function handler(event: { - RequestType: 'Create' | 'Update' | 'Delete'; - ResourceProperties: { - cert: string; - token: string; - clusterServer: string; - jobBody: string; - }; -}) { - if (event.RequestType === 'Delete') { - return { - Data: { - msg: 'Nothing to do on delete.', - }, - }; - } - const { - cert: caData, - token, - clusterServer: server, - jobBody: serializedJobBody, - } = event.ResourceProperties; - const decodedToken = Buffer.from(token, 'base64').toString('utf-8'); - const kubeconfig = new k8s.KubeConfig(); - kubeconfig.loadFromClusterAndUser( - { - name: 'cluster', - server, - caData, - }, - { - name: 'migrations', - token: decodedToken, - }, - ); - - const jobBody = JSON.parse(serializedJobBody) as k8s.V1Job; - - const k8sApi = kubeconfig.makeApiClient(k8s.BatchV1Api); - if (jobBody.metadata?.namespace === undefined) { - throw new Error("Job creation failed: 'namespace' is required"); - } - - await k8sApi.createNamespacedJob(jobBody.metadata.namespace, jobBody); - - return { - Data: { - msg: 'hello world onEvent handler', - }, - }; -} diff --git a/.devops/aws/src/stacks/api-service/api.ts b/.devops/aws/src/stacks/api-service/api.ts deleted file mode 100644 index aded36c..0000000 --- a/.devops/aws/src/stacks/api-service/api.ts +++ /dev/null @@ -1,1603 +0,0 @@ -import path from 'path'; -import { fileURLToPath } from 'url'; -import { Duration, Stack, StackProps } from 'aws-cdk-lib'; -import * as cdk from 'aws-cdk-lib'; -import { - ComparisonOperator, - MathExpression, - Metric, - TreatMissingData, -} from 'aws-cdk-lib/aws-cloudwatch'; -import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets'; -import { - ICluster, - KubernetesManifest, - KubernetesObjectValue, -} from 'aws-cdk-lib/aws-eks'; -import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; -import * as targets from 'aws-cdk-lib/aws-elasticloadbalancingv2-targets'; -import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import * as lambda from 'aws-cdk-lib/aws-lambda'; -import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs'; -import * as s3 from 'aws-cdk-lib/aws-s3'; -import { Topic } from 'aws-cdk-lib/aws-sns'; -import { Provider } from 'aws-cdk-lib/custom-resources'; -import { App as Cdk8sApp, Chart } from 'cdk8s'; -import { Construct } from 'constructs'; -import { - makeKubectlVersionProps, - PgEnvVar, - RedisEnvVar, - repoRootDir, -} from '../../constants.js'; -import { - clusterFromAttributes, - VersionAgnosticClusterAttributes, -} from '../../constructs/clusterFromAttributes.js'; -import { - KubernetesSecretsIntegration, - SecretsMap, -} from '../../constructs/KubernetesSecretsIntegration.js'; -import { - CoopApiGateway, - type CoopApiGatewayProps, -} from '../../constructs/CoopApiGateway.js'; -import { withSnsNotifications } from '../../constructs/SnsAlarmStateChangeNotifications.js'; -import { - AnalysisTemplate, - AnalysisTemplateSpecMetricsCount, - AnalysisTemplateSpecMetricsFailureLimit, - AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod, - Rollout, - RolloutSpecStrategyCanaryStepsPauseDuration, - type AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions, - type RolloutSpecTemplateSpec, -} from '../../imports/argoproj.io.js'; -import { - IntOrString, - KubeHorizontalPodAutoscalerV2, - KubeIngress, - KubeService, - Quantity, - type HttpIngressPath, -} from '../../imports/k8s.js'; -import { NamespacedChartProps } from '../../types.js'; -import { - __throw, - computeNodeMemoryOptions, - getInstrumentationPodAnnotations, - getNodeAffinityForInstanceTypes, - getTracingEnvVars, - toKubernetesName, -} from '../../utils.js'; -import { type DeploymentEnvironmentName } from '../app_pipeline.js'; - - -type ApiStackProps = StackProps & { - namespaceName: string; // where to put all the k8s resources. - clusterAttributes: VersionAgnosticClusterAttributes; - apiGateway: Omit; - statefulResourceRemovalPolicy: cdk.RemovalPolicy; - // the arns of all secrets that should be exposed to the api pods. - secrets: SecretsMap< - | 'SESSION_SECRET' - | 'GROQ_SECRET_KEY' - | 'SENDGRID_API_KEY' - | 'GOOGLE_PLACES_API_KEY' - | 'READ_ME_JWT_SECRET' - | 'LAUNCHDARKLY_SECRET' - | 'GOOGLE_TRANSLATE_API_KEY' - | 'OPEN_AI_API_KEY' - | 'GRAPHQL_OPAQUE_SCALAR_SECRET' - | 'SLACK_APP_BEARER_TOKEN' - | PgEnvVar - | RedisEnvVar - >; - stage: DeploymentEnvironmentName; - rdsReadOnlyClusterHost: string; - monitoringAlertsTopicArn: string; - provisionProdLevelsOfCompute: boolean; - sendRolloutFailuresToOpsGenie: boolean; - rolloutNotificationsSlackChannel: string; - enableDatadog: boolean; - uiUrl: string; -}; - -type ApiDeploymentProps = NamespacedChartProps & { - uiUrl: string; - imageUrl: string; - gitCommitSha: string; - stage: DeploymentEnvironmentName; - cluster: ICluster; - stack: Stack; - enableDatadog: boolean; - secretsHandler: KubernetesSecretsIntegration; - sendRolloutFailuresToOpsGenie: boolean; - rolloutNotificationsSlackChannel: string; - servicePort: number; - apiGateway: { - // map from the coop id for each plan (in CDK) to the plan's aws id - usagePlans: { [coopPlanId: string]: string }; - routes: CoopApiGatewayProps['routes']; - }; - rdsReadOnlyClusterHost: string; - provisionProdLevelsOfCompute: boolean; -}; - -/** - * A stack representing the Kubernetes deployment for our API + all the - * infrastructure for exposing it to the internet (API Gateway, load balancer). - */ -export class ApiStack extends Stack { - public readonly coopApiGateway: CoopApiGateway; - constructor(scope: Construct, id: string, props: ApiStackProps) { - const { - clusterAttributes, - monitoringAlertsTopicArn, - namespaceName, - rdsReadOnlyClusterHost, - secrets, - stage, - statefulResourceRemovalPolicy, - ...stackProps - } = props; - - super(scope, id, stackProps); - - // Reference the existing backend cluster, which we've deployed separately. - // NB: do not rename this from 'BackendCluster', as it was deployed previously - // w/ that name, and changing it will lead CDK to attempt to recreate the service - // account below, which will fail because it already exists. - const cluster = clusterFromAttributes(this, 'BackendCluster', { - ...clusterAttributes, - ...makeKubectlVersionProps(this), - }); - - const servicePort = 80; - - const serverPodImage = new DockerImageAsset(this, 'app-server-image', { - directory: repoRootDir, - target: 'build_server', - // The build args will always change, since BUILD_ID is based on the - // commit id. But, if none of the other docker inputs changed (i.e., our - // actual code files), there's no need to rebuild the image. - invalidation: { buildArgs: false }, - buildArgs: { - BUILD_ID: process.env.CODEBUILD_RESOLVED_SOURCE_VERSION ?? '', - }, - platform: Platform.LINUX_AMD64, - }); - - // Will be used to inject credentials that allow our API pods to communicate - // with AWS resources, like the S3 bucket that will hold user uploads and - // be able to add new API keys when users sign up. - // TODO: create separate service accounts by deployment - const serviceAccount = cluster.addServiceAccount('ApiServiceAccount', { - namespace: namespaceName, - name: 'api-service-account', - }); - - // Our traffic routing looks like this: - // - // Internet -> Api Gateway -> NLB -> ALB -> Server pods. - // - // The Api Gateway and the NLB are created below with CDK constructs, while - // the ALB is created by an Ingress resource that's part of the API Server's - // deployment, using hte ALB Controller installed in our k8s cluster. - // - // The reason for this indirection is: - // - // 1. We need API Gateway to hit some load balancer (so that it sends - // traffic evenly to all the pods in our API service) and we need that - // load balancer to be inaccessible from the internet (so that people - // can't hit it directly and bypass API Gateway's rate limiting + auth). - // To make the load balancer inaccessible, it has to be in a private - // subnet of our VPC, and then we have to use a VPC PrivateLink to allow - // API Gateway to call it. However, AWS only allows API Gateway to talk - // to an NLB -- not an ALB -- through a VPC PrivateLink. So, this first - // load balancer is an NLB. - // - // 2. With an NLB, which load balances TCP connections rather than HTTP - // requests, we weren't getting an even enough traffic distribution to - // our pods, which was causing occasional crashes and preventing efficent - // resource utilization. So, we needed to put an ALB in front of the - // pods. Also, this ALB is needed for Argo Rollouts (which manages the - // ALB's traffic weighing config) in order to support canary deployments. - // - // Finally, the reason the ALB is created by an ingress (rather than using - // a CDK construct directly) is because Argo Rollouts requires the Ingress - // to manipulate the underlying ALB. Using an Ingress to create the ALB did - // cause some CDK interop issues, though; see below. - const nlb = new elbv2.NetworkLoadBalancer(this, 'ApiNlb', { - vpc: cluster.vpc, - internetFacing: false, - }); - - const nlbTargetPort = 1024; - - const gateway = new CoopApiGateway(this, 'ApiGateway', { - ...props.apiGateway, - targetNlb: { loadBalancer: nlb, targetPort: nlbTargetPort }, - }); - - this.coopApiGateway = gateway; - - // Set up the X-Ray exporter, which will poll AWS X-Ray for traces and ship - // them to the OTel collector. - const xrayExporterServiceAccount = cluster.addServiceAccount( - 'xray-exporter', - { - name: 'awsxray-exporter', - namespace: 'awsxray-exporter', - }, - ); - - xrayExporterServiceAccount.addToPrincipalPolicy( - new iam.PolicyStatement({ - effect: Effect.ALLOW, - actions: ['xray:GetTraceSummaries', 'xray:BatchGetTraces'], - resources: ['*'], - }), - ); - - cluster.addHelmChart('awsxray-exporter', { - release: 'awsxray-exporter', - repository: 'https://jholm117.github.io/awsxray-exporter', - chart: 'awsxray-exporter', - version: '0.1.3', - namespace: 'awsxray-exporter', - createNamespace: true, - values: { - otelCollector: { - hostname: 'default-collector.opentelemetry', - }, - filterExpression: `annotation[aws:api_id] = "${gateway.restApi.restApiId}"`, - serviceAccount: { - create: false, - name: xrayExporterServiceAccount.serviceAccountName, - }, - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/jholm117/awsxray-exporter', - tag: '0.1.3', - }, - awsRegion: this.region, - }, - }); - - // Set up some alarms. - const monitoringAlertsTopic = Topic.fromTopicArn( - this, - 'MonitoringAlertsTopic', - monitoringAlertsTopicArn, - ); - - // TODO: this if condition is very hacky, but we need to set different metrics - // per env before we can do this properly. - if (stage === 'Prod') { - gateway.restApi.methods.forEach((method) => { - // Similarly, alert if 500s are too high. - withSnsNotifications( - new MathExpression({ - expression: 'm1/m2', - usingMetrics: { - m1: new Metric({ - namespace: 'AWS/ApiGateway', - metricName: '5XXError', - dimensionsMap: { - ApiName: gateway.restApi.restApiName, - Resource: method.resource.path, - Method: method.httpMethod, - Stage: gateway.restApi.deploymentStage.stageName, - }, - statistic: 'sum', - period: Duration.minutes(2), - }), - m2: new Metric({ - namespace: 'AWS/ApiGateway', - metricName: 'Count', - dimensionsMap: { - ApiName: gateway.restApi.restApiName, - Resource: method.resource.path, - Method: method.httpMethod, - Stage: gateway.restApi.deploymentStage.stageName, - }, - statistic: 'sum', - period: Duration.minutes(2), - }), - }, - }).createAlarm( - this, - `${method.httpMethod}-${method.resource.path}-ApiHigh5xxErrors`, - { - comparisonOperator: - ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD, - threshold: 0.01, - evaluationPeriods: 3, - datapointsToAlarm: 2, - treatMissingData: TreatMissingData.NOT_BREACHING, - }, - ), - monitoringAlertsTopic, - ); - }); - } - // Allow our API pods to add new API keys (and associate them w/ the api's - // usage plans, whose AWS ids we'll expose to the pods through ENV vars). - // Available resources reference: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonapigatewaymanagement.html - // Some examples, with action names: https://docs.aws.amazon.com/apigateway/latest/developerguide/security_iam_id-based-policy-examples.html - serviceAccount.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: ['apigateway:POST', 'apigateway:GET'], - resources: [ - `arn:aws:apigateway:${this.region}::/apikeys`, - ...Object.values(gateway.apiUsagePlanIds).map( - (id) => `arn:aws:apigateway:${this.region}::/usageplans/${id}/keys`, - ), - ], - }), - ); - - // Allow our API server to create and read secrets to/from Secrets Manager - // so we can sign requests with customers' webhook signing secret - serviceAccount.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: [ - 'secretsmanager:GetSecretValue', - 'secretsmanager:DescribeSecret', - 'secretsmanager:CreateSecret', - 'secretsmanager:DeleteSecret', - ], - resources: ['arn:aws:secretsmanager:*:*:*'], - }), - ); - - // Allow our API server to call Rekognition APIs for some of our internal - // signals - serviceAccount.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: ['rekognition:*'], - resources: ['*'], - }), - ); - - // Grant our API service account full SageMaker access. We previously tried - // to grant the AmazonSageMakerFullAccess managed policy to the service account - // with the following: - // - // serviceAccount.role.addManagedPolicy( - // iam.ManagedPolicy.fromManagedPolicyArn( - // this, - // 'AmazonSageMakerFullAccessPermission', - // 'arn:aws:iam::aws:policy/service-role/AmazonRDSEnhancedMonitoringRole', - // ), - // ); - // - // But that didn't work, so now we're explicitly listing the permissions required, - // starting with the sagemaker:InvokeEndpoint permission. If/when we do additional - // SageMaker operations (like training models) from our API server, we'll have to - // add the relevant permissions here. - serviceAccount.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: ['sagemaker:InvokeEndpoint'], - // See https://docs.aws.amazon.com/sagemaker/latest/dg/api-permissions-reference.html - resources: ['arn:aws:sagemaker:*:*:endpoint/*'], - }), - ); - - // S3 Bucket used to store user data uploaded during manual onboarding - // for the models service - // TODO(maxdumas): Delete/reconsider this bucket once we have a production - // way of onboarding customers. - const modelsServiceManualOnboardingCustomerDataBucket = new s3.Bucket( - this, - 'ModelsServiceManualOnboardingCustomerDataBucket', - { - removalPolicy: statefulResourceRemovalPolicy, - publicReadAccess: false, - lifecycleRules: [ - { - enabled: true, - expiration: Duration.days(15), - }, - ], - }, - ); - modelsServiceManualOnboardingCustomerDataBucket.grantRead(serviceAccount); - const cdk8sApp = new Cdk8sApp(); - const apiDeployment = new ApiAutoscaledServiceDeployment(cdk8sApp, 'api', { - namespace: namespaceName, - imageUrl: serverPodImage.imageUri, - apiGateway: { - usagePlans: gateway.apiUsagePlanIds, - routes: props.apiGateway.routes, - }, - rdsReadOnlyClusterHost, - enableDatadog: props.enableDatadog, - stack: this, - stage, - cluster, - gitCommitSha: - process.env.CODEBUILD_RESOLVED_SOURCE_VERSION ?? 'undefined', - servicePort, - secretsHandler: new KubernetesSecretsIntegration(this, 'ApiSecrets', { - serviceAccount, - secrets, - }), - provisionProdLevelsOfCompute: props.provisionProdLevelsOfCompute, - rolloutNotificationsSlackChannel: props.rolloutNotificationsSlackChannel, - sendRolloutFailuresToOpsGenie: props.sendRolloutFailuresToOpsGenie, - uiUrl: props.uiUrl, - }); - - const apiManifest = cluster.addCdk8sChart('api', apiDeployment); - apiManifest.node.addDependency(serverPodImage); - apiManifest.node.addDependency(serviceAccount); - - const kubeIngressHostname = new KubernetesObjectValue( - this, - 'ingressObject', - { - cluster, - objectType: 'ingress', - objectNamespace: namespaceName, - objectName: apiDeployment.ingress.name, - jsonPath: '.status.loadBalancer.ingress[0].hostname', - }, - ); - kubeIngressHostname.node.addDependency(apiManifest); - - const elbv2DescribeLoadBalancers = new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['elasticloadbalancing:DescribeLoadBalancers'], - resources: ['*'], // Adjust this to specify specific load balancer ARNs if needed - }); - - // As mentioned above, we need to create an Ignress and have that create the - // ALB for Argo Rollouts to work. However, when we have the Ingress/ALB - // Controller create the ALB, we still have to get its ARN somehow, in order - // for the NLB to use it as a target. The issue is that, with an Ingress, - // the ALB won't exist at CDK synth time (at least on the first deploy), so - // we have to do these crazy custom resource contortions to fetch its ARN. - const applicationLoadBalancerCustomResource = new cdk.CustomResource( - this, - 'LoadBalancerLookup', - { - serviceToken: new Provider(this, 'LoadBalancerLookupProvider', { - onEventHandler: new NodejsFunction(this, 'LoadBalancerLookupLambda', { - runtime: lambda.Runtime.NODEJS_18_X, - handler: 'handler', - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - initialPolicy: [elbv2DescribeLoadBalancers], - entry: path.join( - path.dirname(fileURLToPath(import.meta.url)), - './lambda/loadBalancerLookupOnEvent.ts', - ), - }), - isCompleteHandler: new NodejsFunction( - this, - 'LoadBalancerIsComplete', - { - runtime: lambda.Runtime.NODEJS_18_X, - handler: 'handler', - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - initialPolicy: [elbv2DescribeLoadBalancers], - entry: path.join( - path.dirname(fileURLToPath(import.meta.url)), - './lambda/loadBalancerLookUpIsComplete.ts', - ), - }, - ), - totalTimeout: Duration.minutes(5), - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - }).serviceToken, - properties: { - hostname: kubeIngressHostname.value, - region: this.region, - // increment this every time we change the lambda code so that cdk - // knows it needs to dispatch an update event to the lambda - codeVersion: 1, - }, - }, - ); - - const applicationLoadBalancerArn = - applicationLoadBalancerCustomResource.getAttString('LoadBalancerArn'); - const applicationLoadBalancerName = - applicationLoadBalancerCustomResource.getAttString('LoadBalancerName'); - - nlb.addListener('AlbListener', { - defaultTargetGroups: [ - new elbv2.NetworkTargetGroup(this, 'ApiNlbToAlbTargetGroup', { - port: 80, - targets: [new targets.AlbArnTarget(applicationLoadBalancerArn, 80)], - vpc: cluster.vpc, - healthCheck: { - path: ApiAutoscaledServiceDeployment.albHealthCheckPath, - }, - }), - ], - port: nlbTargetPort, - }); - - // Initially I put this logic in the AdditionalApiResources chart, but that did - // not allow me to add an explicit dependency between the LoadBalancerLookup - // Lambda and these lambdas so I moved it up to this level. This is - // neceessary because we need to make sure the loadbalancer is created - // before we try to fetch the target groups otherwise we will timeout. - const servicesWithTargetGroupNames = apiDeployment.services.map( - (service) => { - const { serviceName, canaryServiceName } = service; - const tagGetResourcesPolicy = new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['tag:GetResources'], - resources: ['*'], - }); - - const targetGroupLookupResource = new cdk.CustomResource( - this, - `${serviceName}-TargetGroupLookup`, - { - serviceToken: new Provider( - this, - `${serviceName}-TargetGroupLookupProvider`, - { - onEventHandler: new NodejsFunction( - this, - `${serviceName}-TargetGroupLookupLambda`, - { - runtime: lambda.Runtime.NODEJS_18_X, - handler: 'handler', - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - initialPolicy: [tagGetResourcesPolicy], - timeout: cdk.Duration.minutes(2), - entry: path.join( - path.dirname(fileURLToPath(import.meta.url)), - './lambda/targetGroupLookupOnEvent.ts', - ), - }, - ), - logRetention: cdk.aws_logs.RetentionDays.ONE_DAY, - }, - ).serviceToken, - properties: { - ingressName: apiDeployment.ingress.name, - clusterName: cluster.clusterName, - namespaceName, - serviceName, - canaryServiceName, - servicePort, - region: this.region, - }, - }, - ); - targetGroupLookupResource.node.addDependency( - applicationLoadBalancerCustomResource, - ); - const baselineTargetGroupName = - targetGroupLookupResource.getAttString('TargetGroupName'); - const canaryTargetGroupName = targetGroupLookupResource.getAttString( - 'CanaryTargetGroupName', - ); - return { - ...service, - baselineTargetGroupName, - canaryTargetGroupName, - }; - }, - ); - - const apiAdditionalResources = new ApiAdditionalResources( - cdk8sApp, - 'api-additional-resources', - { - namespaceName, - cluster, - ingressName: apiDeployment.ingress.name, - stack: this, - servicesWithTargetGroupNames, - applicationLoadBalancerName, - }, - ); - const additionalResourcesManifest = cluster.addCdk8sChart( - 'api-additional-resources', - apiAdditionalResources, - ); - additionalResourcesManifest.node.addDependency(apiManifest); - - // There is a circular dependency between Rollout > AnalysisTemplate > - // TargetGroup > Rollout. So we initially create the Rollout without the - // analysis template to allow the target group to initialize before trying - // to create the analysis template, and then patch the Rollout to add the - // reference to the analysis template. - apiDeployment.services.forEach((service) => { - const json = service.rollout.toJson(); - json.spec.strategy.canary.steps.push({ - analysis: { - templates: [ - { - templateName: service.analysisTemplateName, - }, - ], - }, - }); - const manifest = new KubernetesManifest( - this, - `${service.rollout.name}-with-analysis`, - { - cluster, - manifest: [json], - overwrite: true, - }, - ); - manifest.node.addDependency(additionalResourcesManifest); - }); - } -} - -class ApiAutoscaledServiceDeployment extends Chart { - public readonly ingress: KubeIngress; - public static readonly albHealthCheckPath = '/api/v1/ready'; - public readonly services: Service[]; - - public constructor(scope: Construct, id: string, props: ApiDeploymentProps) { - const { - imageUrl, - secretsHandler, - stage, - servicePort, - ...chartProps - } = props; - - super(scope, id, chartProps); - - const routes = [...props.apiGateway.routes, { path: '/graphql' }]; - const resourcesByRoute = { - '/items/async/': { - minReplicas: 2, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '4Gi', - memoryLimit: '4Gi', - cpuRequest: '2', - cpuLimit: '3', - youngGenerationSemiSpaceSize: Quantity.fromString('256Mi'), - }, - // This endpoint's pods gets fewer resources than `/items/async`'s, even - // though the logic they're running is similar, because the load they're - // under is so much smaller. I.e., we have about 100x more items coming to - // `POST /items/async`, but it only has about 5x the number of replicas, - // because of the `minReplicas: 3` for all endpoints. So, the /content - // pods can be much smaller. - '/content/': { - minReplicas: 2, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '2Gi', - memoryLimit: '2Gi', - cpuRequest: '1', - cpuLimit: '1', - youngGenerationSemiSpaceSize: undefined, - }, - // We copy the /items/async/ resources because it accepts the same batch - // size of items but the processing is different enough that we may want - // to customize this in the future. - '/items/scores/': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '2Gi', - memoryLimit: '2Gi', - cpuRequest: '1', - cpuLimit: '1', - youngGenerationSemiSpaceSize: undefined, - }, - // This endpoint isn't in use, so it can have very small resource limits. - // We probably don't need this much memory but we can't make the memory - // request any smaller, because the `computeNodeMemoryOptions` function, - // which we use to divide up the memory request between different types of - // memory, reserves a large, fixed chunk of memory for non-JS-objects - // allocated by v8; see comment in that function. - '/policies/': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '768Mi', - memoryLimit: '768Mi', - cpuRequest: '.2', - cpuLimit: '.2', - youngGenerationSemiSpaceSize: undefined, - }, - '/gdpr/delete/': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '768Mi', - memoryLimit: '768Mi', - cpuRequest: '.2', - cpuLimit: '.2', - youngGenerationSemiSpaceSize: undefined, - }, - '/user_scores/': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '768Mi', - memoryLimit: '768Mi', - cpuRequest: '.2', - cpuLimit: '.2', - youngGenerationSemiSpaceSize: undefined, - }, - '/graphql': { - minReplicas: 2, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '1.5Gi', - memoryLimit: '1.5Gi', - cpuRequest: '.3', - cpuLimit: '.3', - youngGenerationSemiSpaceSize: undefined, - }, - '/report/': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '1.5Gi', - memoryLimit: '1.5Gi', - cpuRequest: '.3', - cpuLimit: '.3', - youngGenerationSemiSpaceSize: undefined, - }, - '/report/appeal': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '1.5Gi', - memoryLimit: '1.5Gi', - cpuRequest: '.3', - cpuLimit: '.3', - youngGenerationSemiSpaceSize: undefined, - }, - '/actions/': { - minReplicas: 1, - useEventLoopDelayForAutoscaling: false, - memoryRequest: '768Mi', - memoryLimit: '768Mi', - cpuRequest: '.2', - cpuLimit: '.2', - youngGenerationSemiSpaceSize: undefined, - }, - } satisfies Record< - string, - { - minReplicas: number; - useEventLoopDelayForAutoscaling: boolean; - memoryRequest: string; - memoryLimit: string; - cpuRequest: string; - // We want a limit to simplify load testing. - // See https://stackoverflow.com/a/74429536/1261879 - cpuLimit: string; - // undefined = use default computed by `computeNodeMemoryOptions`, - // which is generally a good value. - youngGenerationSemiSpaceSize: Quantity | undefined; - } - >; - - const ingressName = 'api-service-ingress'; - - const deployments = routes.map((route) => { - const serviceName = `${toKubernetesName(route.path)}-service`; - - const containerPort = 8080; - - const label = { app: serviceName }; - const resources = - resourcesByRoute[route.path as keyof typeof resourcesByRoute] ?? - __throw(new Error('Resources not defined for route: ' + route.path)); - - const { - memoryRequest, - memoryLimit, - cpuLimit, - cpuRequest, - youngGenerationSemiSpaceSize, - } = resources; - - new KubeService(this, `${serviceName}-service`, { - metadata: { - name: serviceName, - labels: label, - }, - spec: { - type: 'ClusterIP', - selector: label, - ports: [ - { - port: servicePort, - targetPort: IntOrString.fromNumber(containerPort), - protocol: 'TCP', - }, - ], - }, - }); - - const canaryServiceName = `${serviceName}-canary`; - // Canary for Argo Rollouts - new KubeService(this, canaryServiceName, { - metadata: { - name: canaryServiceName, - labels: label, - }, - spec: { - type: 'ClusterIP', - selector: label, - ports: [ - { - port: servicePort, - targetPort: IntOrString.fromNumber(containerPort), - protocol: 'TCP', - }, - ], - }, - }); - - // Below, we define a custom DatadogMetric resource for autoscaling our API - // server based on DD-captured event loop delay. See rationale below. - // - // (If we didn't already have DD in place, we'd probably scale on ELU using - // https://www.nearform.com/blog/event-loop-utilization-with-hpa/ or - // similar, but DD's event loop delay metric is similar enough.) - // - // "Event loop delay" is a measure of the time spent running JS callback - // code within a single tick of the event loop. These callbacks include - // promise/microtask callbacks, timer callbacks, event callbacks (e.g., on - // incoming request), etc. The name "event loop delay" refers to the fact - // that the the event loop can't restart from the top until these callbacks - // have finished, so their run time delays the handling of new timer, io, - // and other events, which won't be checked for again until the next tick. - // Note that garbage collection time should mostly be excluded from event - // loop delay, except, perhaps, for the brief periods when GC must pause the - // main thread (during which GC work uses multiple cores, at least). - // - // Event loop delay is not a totally standard term, and DD's docs are - // sparse, but the source code is here: - // https://github.com/DataDog/dd-native-metrics-js/blob/d4c060425f3f0a39fe728fc5b11cef373884a1d2/src/metrics/EventLoop.hpp#L84. - // For general background on the event loop, which explains how to read that - // code, see https://blog.logrocket.com/complete-guide-node-js-event-loop/. - // - // We assume that our JS code for processing each event doesn't block for a - // meaningful period of time so, when event loop delay is high, it's because - // there were _many event callbacks_ that were ready run on that tick of the - // event loop. This happens when callbacks are getting enqueued faster than - // the server can process them. If event loop delay remains high for more - // than a brief period of time, it's a very clear sign that we need to scale - // up: the server was, and likely still is, getting inundandated with work - // faster than it can handle it, and will soon be at risk of a crash. - // - // Concretely, when the server is not overloaded, a healthy event loop delay - // is measured in nanoseconds or, if the server has to do some big, blocking - // operation (e.g., parsing a large JSON blob), it might be a couple hundred - // microseconds. However, if a backlog of callbacks builds up, a single tick - // of the event loop could spend _miliseconds_ running them -- a - // 1,000-100,000x increase. - // - // So, we need to keep the event loop delay reasonable, and, to do that, we - // want to at least have the option to scale directly on a metric derived - // from event loop delay, rather than being able to scale _only_ on CPU - // usage, because event loop delay and CPU usage aren't always - // well-correlated: CPU usage can rise considerably if new code does - // CPU-intensive work off the main thread (like crypto, or adding a Worker) - // without event loop delay rising or the server being overloaded. - // - // However, actually building the metric to scale on is a bit tricky: - // - // 1. We want to distinguish between true overload and a very temporary - // spike in work that the server will be able to catch up with. To do - // that, we want to look at the _minimum event loop delay over the last - // 20 seconds_ on each replica, and average that across all replicas. - // This is a strategy we adopt from this paper: - // https://sigops.org/s/conferences/hotos/2021/papers/hotos21-s11-bronson.pdf - // - // "[For] accurately differentiating persistent overload from load - // spikes[, we] have found it effective to measure the minimum - // queueing latency over a sliding window... for the internal work - // queues of the server. A small value means that the queue was - // drained at some point during the window, indicating that even if - // the queue is large, it is probably a manageable spike." - // - // Note that this choice of 20s is service-dependent. It's based on how - // much latency (from the queueing delay in the event loop) is acceptable - // (when the load spike actually is temporary and the queue will clear - // itself), plus how reactive/pessimistic you want to be in assuming - // that, once even a short event loop delay starts to build, it's a sign - // that the queue _won't_ clear and the server should scale right away to - // avoid becoming overwhelmed. - // - // NB: when computing a sliding window with moving_rollup(30), Datadog - // emits a new metric value every 10s. However, the DD cluster agent only - // polls DD for new metric values every 30s. So, the HPA -- which, by - // default, tries to read the external metrics every 15 seconds (see the - // --horizontal-pod-autoscaler-sync-period option) will observe the same - // value multiple times. I think this can lead it to scale multiple times - // -- i.e., I think the HPA can think that it's scaling was insufficient - // and scale again, when really the new value just hasn't arrived. - // - // 2. We must deal with the fact that HPA normally multiplies the current - // replica count by (current metric value/target value), and this won't - // work for raw event loop delay: the event loop delay gets >1000x bigger - // than its target under times of stress, but we obviously don't want - // 1000x more replicas. Really, we don't know how many replicas to add... - // - // To deal with this, we use log10() on the value so that an - // exponentially higher event loop delay only results in linearly more - // replicas. Then, we do some other transformations that are just based - // on rough guesswork of how much scaling should be triggered by how much - // event loop delay. - // - // 3. Related to the above, when our event loop delay value is _not_ high, - // its not clear whether we can scale down safely, or by how much. - // Essentially, event loop delay has some roughly fixed minimum value - // (governed by the complexity of our callbacks) and it can be at/around - // that value _both_ when there is room to scale down and when there - // isn't. That's because the event loop varies how long it waits for new - // IO events during the polling phase based on what other work it has to - // do. Therefore, at times of more work (but before it gets overloaded) - // the event loop may simply wait less and do more iterations per second, - // handling the extra load _without the event loop delay going up_. - // - // To deal with this, we set up the metric to have a value of .83 when - // the event loop delay is within an acceptable, baseline range. The idea - // is that the HPA using this metric can/must use 1 as the target value; - // then, .83 means that we'll be constantly trying to scale down, in - // order to discover whether or not there is in fact some slack -- but, - // we'll only be doing this scale down only if the other metrics allow - // it, and only at a frequency specified by the scaling policies, and - // only when we have more than 5 replicas (b/c `ceil(5*(.83/1))`, which - // is what HPA uses to calculate the new replica count, is still 5). - // - // Putting it all together, we: - // - // 1. Round any event loop delay value between 0 and 30us up to 30us -- by - // first subtracting 30us from the base event loop delay value (i.e., the - // average of the 20s minimums across replicas) and taking the max of - // that result and 30us. We do this to raise the baseline value, which - // lowers the ratio of the value during a spike to this baseline value, - // which makes the autoscaling results more sensible. - // - // 2. Then, take the log10 of the result -- again as part of making sure we - // don't scale up too much during a spike. DD only has functions for log2 - // and log10, so we had to control most of the scaling ratio by choosing - // the baseline 30us value. - // - // 3. Finally, divide by 5.4 so that, when event loop delay is at or under - // 30us, the metric evaluates to .83, per the discussion above. - // - // Note that this metric still isn't perfectly accurate for our purposes, - // because it's not tightly integrated with k8s. For example, if a new - // deployment is rolled out, and the existing pods are shut down gradually, - // each pod (while it's shutting down but before it's killed completely) - // will continue to have its event loop delay reported to Datadog and - // counted in the average. Because the pod is shutting down, it's event loop - // delay will likely be artificially low, which could cause issues if the - // average value is being used to scale the incoming deployment. - // Alternatively, there might be relatively-synchronous cleanup jobs that - // happen on shutdown (likely flushing big blobs of pending metrics/logs), - // which would then artificially inflate the metric. So the underlying point - // is just that it's not totally accurate, and we might want a buffer - // (autoscaling at a bit lower threshold than we otherwise might, mainly). - const eventLoopDelayMetricName = `${serviceName}-event-loop-delay`; - const useEventLoopDelayMetric = - props.enableDatadog && resources.useEventLoopDelayForAutoscaling; - if (useEventLoopDelayMetric) { - new KubernetesManifest( - props.stack, - `${serviceName}-dd-event-loop-delay-metric`, - { - cluster: props.cluster, - manifest: [ - { - apiVersion: 'datadoghq.com/v1alpha1', - kind: 'DatadogMetric', - metadata: { - name: eventLoopDelayMetricName, - namespace: props.namespace, - }, - spec: { - query: `div(log10(max(sub(moving_rollup(avg:runtime.node.event_loop.delay.min{service:${serviceName}, env:${stage.toLowerCase()}}, 20, 'min'), 30000), 30000)), 5.4)`, - }, - }, - ], - }, - ); - } - - // Public name for the metric is its full name. - const autoscaleEventLoopMetricName = `datadogmetric@${props.namespace}:${eventLoopDelayMetricName}`; - - const autoscaler = new KubeHorizontalPodAutoscalerV2( - this, - `${serviceName}-hpa`, - { - metadata: { name: serviceName }, - spec: { - scaleTargetRef: { - apiVersion: 'argoproj.io/v1alpha1', - kind: 'Rollout', - name: serviceName, - }, - // We really only need two replicas, but we're setting the minimum - // to 3 in order to better tolerate situations in which one - // crashes so that we don't ever end up with only one node - // handling all traffic before a replacement can start up. - minReplicas: props.provisionProdLevelsOfCompute - ? resources.minReplicas - : 1, - maxReplicas: props.provisionProdLevelsOfCompute ? 100 : 2, - metrics: [ - { - type: 'Resource', - resource: { - name: 'cpu', - target: { - type: 'Utilization', - averageUtilization: 40, - }, - }, - }, - ...(useEventLoopDelayMetric - ? [ - { - type: 'External', - external: { - metric: { name: autoscaleEventLoopMetricName }, - target: { - type: 'Value', - value: Quantity.fromNumber(1), - }, - }, - }, - ] - : []), - { - type: 'Resource', - resource: { - name: 'memory', - target: { - type: 'Utilization', - averageUtilization: 75, - }, - }, - }, - ], - behavior: { - scaleDown: { - // If we remove a server pod and have to add it back later, that's - // potentially disruptive, because latency goes up a lot while the - // location bank cache is being warmed if we have a large location - // bank. So, be a bit more conservative (for now) about scaling - // down. This'd be less of an issue if the location bank cache - // didn't live in memory. - stabilizationWindowSeconds: 300, - policies: [ - { - type: 'Pods', - value: 1, - periodSeconds: 15, - }, - ], - }, - scaleUp: { - stabilizationWindowSeconds: 45, - policies: [ - { - type: 'Percent', - value: 100, - periodSeconds: 15, - }, - { - type: 'Pods', - value: 4, - periodSeconds: 15, - }, - ], - selectPolicy: 'Min', - }, - }, - }, - }, - ); - - const analysisTemplateName = `${serviceName}-error-rate`; - const rollout = new Rollout(this, `${serviceName}-rollout`, { - metadata: { - name: serviceName, - annotations: { - 'getcoop.com/git-commit-sha': `${props.gitCommitSha}`, - 'notifications.argoproj.io/subscribe.on-rollout-completed.slack': - props.rolloutNotificationsSlackChannel, - - ...(props.sendRolloutFailuresToOpsGenie - ? { - 'notifications.argoproj.io/subscribe.on-rollout-aborted.opsgenie': - 'Engineers', - } - : { - 'notifications.argoproj.io/subscribe.on-rollout-aborted.slack': - props.rolloutNotificationsSlackChannel, - }), - }, - }, - spec: { - selector: { matchLabels: label }, - template: { - metadata: { - labels: label, - annotations: { - ...getInstrumentationPodAnnotations(serviceName), - }, - }, - spec: secretsHandler.getPodSpec({ - affinity: { - nodeAffinity: getNodeAffinityForInstanceTypes([ - props.provisionProdLevelsOfCompute - ? 'm7i.2xlarge' - : 't3.2xlarge', - ]), - }, - containers: [ - { - name: serviceName, - image: imageUrl, - imagePullPolicy: 'IfNotPresent', - lifecycle: { - // When Kubernetes shuts down our api server, like during a - // rolling deploy, there's some lag before the load balancer - // controller picks up that the pod is no longer a valid - // target and deregisters it from the load balancer's target - // group. I.e., there's a window when the api-server has - // received a shutdown signal, but the load balancer is still - // sending it traffic (including possibly opening new - // connections). See - // https://blog.gruntwork.io/delaying-shutdown-to-wait-for-pod-deletion-propagation-445f779a8304 - // - // During that window, we have to make sure that the pod will - // still handle new, incoming requests (including on new - // connections), in addition to finishing up on existing ones. - // - // Previously, we tried to accomplish this inside the shutdown - // logic in the app itself, by having the server not block new - // connections until all old connections were idle + closed. - // However, that logic isn't foolproof, as there's a case - // where the app has no active connections at the time the - // shutdown signal is sent, but then the load balancer tries - // to open a connection in the window between shutdown being - // sent and the deregistration occurring. - // - // There may also be further weird race conditions that we - // don't fully understand. Potential causes could be things - // like the NLB not immediately detecting that a connection is - // idle (and therefore still trying to send traffic down it - // even when the target is draining), or maybe some TCP socket - // state that's in an OS-level queue but can't be seen by Node - // yet -- I honestly don't know, or know how plausible those - // causes are. - // - // Anyway, the fix for at least the first issue would seem to - // be to add a delay before we send the pod the shutdown - // signal, to allow the deregistration to propagate. See - // https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1719 - // However, we start w/ a shorter delay than the - // deregistration timeout, b/c -- if I'm understanding the NLB - // docs correctly (and if they're accurate) -- then, because - // we also still have some logic in our app to wait for - // pending requests to finish, the sleep here should only need - // to be controller process time (to send the deregistration - // request) + ELB API propagation time (to process it), which - // is <10s according to that github issue. - // - // NB: there is one comment on that issue that suggests that - // this sleep has to be longer than the deregistration - // timeout, but that may be a misunderstanding on the poster's - // part, or a difference between his shutdown logic and ours, - // so we try this first. - preStop: { exec: { command: ['sh', '-c', 'sleep 15'] } }, - }, - resources: { - requests: { - cpu: cpuRequest, - memory: memoryRequest, - // although we don't explicitly use the file system from - // our code, kubernetes warning events (that only started - // showing up when our nodes got low on disk space) - // indicate that our pods are indirectly trying to store - // some data in the filesystem -- if I had to guess, this - // data might be stdout content that the container runtime - // automatically writes to disk? or maybe its some - // trace/metrics data stored on disk by the dd-trace - // package? So, we can use this resource request to make - // sure the container has access to all the storage it - // needs. The limit here is 2x the max storage usage I saw - // in the warning events. - 'ephemeral-storage': '200Mi', - }, - limits: { - memory: memoryLimit, - cpu: cpuLimit, - }, - }, - env: [ - { name: 'NODE_ENV', value: 'production' }, - //{ name: 'DD_TRACE_SAMPLE_RATE', value: '0.1' }, - ...getTracingEnvVars(serviceName, stage), - { - name: 'LOG_REQUEST_BODY', - value: props.stage === 'Prod' ? 'false' : 'true', - }, - { - name: 'DATABASE_READ_ONLY_HOST', - value: props.rdsReadOnlyClusterHost, - }, - // For each usage plan, add an env var with its aws id, where - // the name of the var is derived from the coop id for the plan. - ...Object.entries(props.apiGateway.usagePlans).map( - ([coopId, awsId]) => ({ - name: `${coopId - .toUpperCase() - .replace(/[^A-Z]/g, '_')}_API_USAGE_PLAN_ID`, - value: awsId, - }), - ), - { - name: 'MODELS_SERVICE_API_URL', - value: - // This is only for the Twilio load test. We will need - // to update configs so the proper URL is used for - // inference+training workflows. - 'http://removed-models-service', - }, - { - name: 'ITEM_QUEUE_TRAFFIC_PERCENTAGE', - value: '0.50', - }, - { - name: 'UI_URL', - value: props.uiUrl, - }, - ], - ports: [{ containerPort: containerPort, name: 'http' }], - command: ['node'], - args: [ - ...computeNodeMemoryOptions({ - containerMemoryRequest: - Quantity.fromString(memoryRequest), - majorGcInterval: 800, - youngGenerationSemiSpaceSize, - }), - 'bin/www.js', - ], - }, - ], - terminationGracePeriodSeconds: 90, - } satisfies RolloutSpecTemplateSpec), - }, - strategy: { - canary: { - // canaryService and stableService are references to Services - // which the Rollout will modify to target the canary ReplicaSet - // and stable ReplicaSet respectively (required). - canaryService: canaryServiceName, - stableService: serviceName, - steps: [ - { setWeight: 20 }, - // the analysis run will lookback at the last 5 minutes of data - // so we wait 5 minutes before initiating the analysis. The - // analysis step is added to the rollout after the initial - // creation as to avoid the circular dependency between the - // Rollout and the AnalysisTemplate and Target Group. - { - pause: { - duration: - RolloutSpecStrategyCanaryStepsPauseDuration.fromString( - '300s', - ), - }, - }, - ], - trafficRouting: { - alb: { - // The referenced ingress will be injected with a custom - // action annotation, directing the AWS Load Balancer - // Controller to split traffic between the canary and stable - // Service, according to the desired traffic weight - // (required). - ingress: ingressName, - // Service port is the port which the Service listens on - // (required). - servicePort, - }, - }, - }, - }, - }, - }); - - autoscaler.addDependency(rollout); - - return { - ...route, - serviceName, - rollout, - canaryServiceName, - servicePort, - analysisTemplateName, - }; - }, this); - - secretsHandler.addToChart( - this, - deployments.map((d) => d.rollout), - ); - - this.services = deployments; - - // the aws-load-balancer-controller will add a finalizer to this resource - // which prevents deletion. cdk will be unable to delete the resource so you - // must manually remove the finalizer in order to delete it. the same is - // true for the corresponding TargetGroupBinding CR which is created by the - // load balancer controller. - this.ingress = new KubeIngress(this, 'ingress', { - metadata: { - name: ingressName, - annotations: { - 'alb.ingress.kubernetes.io/target-type': 'ip', - 'alb.ingress.kubernetes.io/healthcheck-path': - ApiAutoscaledServiceDeployment.albHealthCheckPath, - // Default is 5 and the min is 2. If we timeout after three seconds on - // a readiness check that has only a 1 second timeout then I think - // it's safe to assume we don't want to route more traffic to this - // instance. - 'alb.ingress.kubernetes.io/healthcheck-timeout-seconds': '3', - // default is 15 which seems too long. - 'alb.ingress.kubernetes.io/healthcheck-interval-seconds': '5', - }, - }, - spec: { - ingressClassName: 'alb', - rules: [ - { - http: { - paths: [ - ...deployments.map( - ({ serviceName, path }): HttpIngressPath => ({ - backend: { - service: { - name: serviceName, - // servicePort must be the value: use-annotation This - // instructs AWS Load Balancer Controller to look to - // annotations on how to direct traffic - port: { name: 'use-annotation' }, - }, - }, - // remove trailing slashes - path: `/api/v1${path.replace(/\/+$/, '')}`, - pathType: 'Exact', - }), - ), - // Serve static assets from the graphql-service. Eventually we - // will move this to S3 but for now this seems reasonable. - { - backend: { - service: { - name: 'graphql-service', - port: { name: 'use-annotation' }, - }, - }, - path: '/', - pathType: 'Prefix', - }, - ], - }, - }, - ], - }, - }); - } -} - -type Service = { - serviceName: string; - canaryServiceName: string; - servicePort: string | number; - analysisTemplateName: string; - rollout: Rollout; -}; - -type ServiceWithTargetGroupNames = { - serviceName: string; - analysisTemplateName: string; - baselineTargetGroupName: string; - canaryTargetGroupName: string; -}; - -type ApiAdditionalResourcesProps = { - servicesWithTargetGroupNames: ServiceWithTargetGroupNames[]; - stack: cdk.Stack; - ingressName: string; - namespaceName: string; - cluster: ICluster; - applicationLoadBalancerName: string; -}; - -class ApiAdditionalResources extends Chart { - constructor( - scope: Construct, - id: string, - props: ApiAdditionalResourcesProps, - ) { - super(scope, id); - const { - servicesWithTargetGroupNames, - namespaceName, - applicationLoadBalancerName, - } = props; - - servicesWithTargetGroupNames.forEach( - ({ - serviceName, - analysisTemplateName, - baselineTargetGroupName, - canaryTargetGroupName, - }) => { - const makeDimensions = ( - targetGroupName: string, - ): AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatMetricDimensions[] => { - return [ - { - name: 'TargetGroup', - value: targetGroupName, - }, - { - name: 'LoadBalancer', - value: applicationLoadBalancerName, - }, - ]; - }; - - const baselineDimensions = makeDimensions(baselineTargetGroupName); - const canaryDimensions = makeDimensions(canaryTargetGroupName); - - new AnalysisTemplate(this, `${serviceName}-analysis-template`, { - metadata: { - name: analysisTemplateName, - namespace: namespaceName, - }, - spec: { - metrics: [ - { - name: 'alb-5xx-error-rate', - // Overall Frequency (interval: 1m): The top-level interval - // indicates that the analysis will be performed every 1 minute. - // This means every minute, the system will run the metric queries - // defined under metricDataQueries. - interval: '1m', - count: AnalysisTemplateSpecMetricsCount.fromNumber(5), - // The error rate of the canary must be less than 5% greater - // than the baseline. - successCondition: 'all(result[0].Values, {# <= 0.05})', - // Not sure what the ideal here is. I think we will get a better - // idea once we run this in prod. - failureLimit: - AnalysisTemplateSpecMetricsFailureLimit.fromNumber(2), - provider: { - cloudWatch: { - // Data Collection Period (interval: 5m): The CloudWatch - // interval of 5 minutes means that for each analysis run, - // CloudWatch will provide metrics that span the last 5 - // minutes. - interval: '5m', - metricDataQueries: [ - // API reference: - // https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html - { - // If the baseline doesn't have any errors, we will - // treat any errors in the canary as an automatic - // failure. This probably isn't the optimal solution, - // but the likelihood of this scenario occuring with a - // false positive seems so low that it's better to be - // safe and default to rolling back as a starting point. - id: 'error_rate_delta', - expression: - 'IF(baseline_rate == 0, IF(canary_rate > 0, 1, 0), (canary_rate - baseline_rate)/baseline_rate)', - returnData: true, - }, - { - id: 'baseline_rate', - expression: 'baseline_errors / baseline_requests', - returnData: false, - }, - { - id: 'baseline_errors', - metricStat: { - metric: { - namespace: 'AWS/ApplicationELB', - metricName: 'HTTPCode_Target_5XX_Count', - dimensions: baselineDimensions, - }, - // Granularity (period: 300): The period of 300 seconds - // (5 minutes) for individual metric queries means that - // each metric data point represents a sum or average - // over a 5-minute period. This helps in reducing noise - // and provides more stable metric readings. - period: - AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod.fromNumber( - 300, - ), - stat: 'Sum', - unit: 'Count', - }, - returnData: false, - }, - { - id: 'baseline_requests', - metricStat: { - metric: { - namespace: 'AWS/ApplicationELB', - metricName: 'RequestCount', - dimensions: baselineDimensions, - }, - period: - AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod.fromNumber( - 300, - ), - stat: 'Sum', - unit: 'Count', - }, - returnData: false, - }, - { - id: 'canary_rate', - expression: 'canary_errors / canary_requests', - returnData: false, - }, - { - id: 'canary_errors', - metricStat: { - metric: { - namespace: 'AWS/ApplicationELB', - metricName: 'HTTPCode_Target_5XX_Count', - dimensions: canaryDimensions, - }, - period: - AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod.fromNumber( - 300, - ), - stat: 'Sum', - unit: 'Count', - }, - returnData: false, - }, - { - id: 'canary_requests', - metricStat: { - metric: { - namespace: 'AWS/ApplicationELB', - metricName: 'RequestCount', - dimensions: canaryDimensions, - }, - period: - AnalysisTemplateSpecMetricsProviderCloudWatchMetricDataQueriesMetricStatPeriod.fromNumber( - 300, - ), - stat: 'Sum', - unit: 'Count', - }, - returnData: false, - }, - ], - }, - }, - }, - ], - }, - }); - }, - ); - } -} diff --git a/.devops/aws/src/stacks/api-service/db.ts b/.devops/aws/src/stacks/api-service/db.ts deleted file mode 100644 index 6fc1158..0000000 --- a/.devops/aws/src/stacks/api-service/db.ts +++ /dev/null @@ -1,569 +0,0 @@ -import { - CfnOutput, - Duration, - RemovalPolicy, - Stack, - StackProps, -} from 'aws-cdk-lib'; -import { - ScalableTarget, - ServiceNamespace, -} from 'aws-cdk-lib/aws-applicationautoscaling'; -import { ComparisonOperator, Metric } from 'aws-cdk-lib/aws-cloudwatch'; -import { - ClientVpnEndpoint, - ClientVpnRouteTarget, - InstanceClass, - InstanceSize, - InstanceType, - Peer, - Port, - SecurityGroup, - SubnetType, - type ISecurityGroup, - type IVpc, -} from 'aws-cdk-lib/aws-ec2'; -import type { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import { RetentionDays } from 'aws-cdk-lib/aws-logs'; -import * as memorydb from 'aws-cdk-lib/aws-memorydb'; -import { - AuroraPostgresEngineVersion, - Credentials, - DatabaseCluster, - DatabaseClusterEngine, - ParameterGroup, -} from 'aws-cdk-lib/aws-rds'; -import { Topic } from 'aws-cdk-lib/aws-sns'; -import { Construct } from 'constructs'; - -import { makeKubectlVersionProps } from '../../constants.js'; -import { - clusterFromAttributes, - type VersionAgnosticClusterAttributes, -} from '../../constructs/clusterFromAttributes.js'; -import { MigrationRunner } from '../../constructs/MigrationRunner.js'; -import { withSnsNotifications } from '../../constructs/SnsAlarmStateChangeNotifications.js'; -import { type DeploymentEnvironmentName } from '../app_pipeline.js'; - -type DbStackProps = StackProps & { - vpc: IVpc; - numInstances: number; - vpnCertificateArn: string; - highUrgencyAlarmsTopicArn: string; - lowUrgencyAlertsTopicArn: string; - migrationsImage: DockerImageAsset; - stage: DeploymentEnvironmentName; - provisionProdLevelsOfCompute: boolean; - clusterSecurityGroup: ISecurityGroup; - kubernetesClusterAttributes: VersionAgnosticClusterAttributes; - scyllaSecretArn: string; -}; - -/** - * A stack holding the various db clusters powering our api. - */ -export class ApiDbClusterStack extends Stack { - public rdsConnectionSecretArn: string; - public rdsConnectionSecretArnOutput: CfnOutput; - public rdsReadOnlyClusterHost: string; - - constructor(scope: Construct, id: string, props: DbStackProps) { - const { - vpc, - highUrgencyAlarmsTopicArn, - numInstances, - provisionProdLevelsOfCompute, - scyllaSecretArn, - ...stackProps - } = props; - - super(scope, id, stackProps); - - // intentionally destructured separately, so it's included in stackProps above. - const { stage } = stackProps; - const highUrgencyAlarmsTopic = Topic.fromTopicArn( - this, - 'MonitoringAlertsTopic', - highUrgencyAlarmsTopicArn, - ); - - const lowUrgencyAlertsTopic = Topic.fromTopicArn( - this, - 'LowUrgencyAlertsTopic', - props.lowUrgencyAlertsTopicArn, - ); - - const rdsEngine = DatabaseClusterEngine.auroraPostgres({ - version: AuroraPostgresEngineVersion.VER_14_6, - }); - - const rdsParameterGroup = new ParameterGroup( - this, - 'SlowQueryLogParamGroup14', - { - engine: rdsEngine, - description: - 'Aurora PostgreSQL 14 Cluster Parameter Group with Slow Query Logging', - parameters: { - log_min_duration_statement: '500', - }, - }, - ); - - const instanceIdentifierBase = `${stage}-api-db-instance`.toLowerCase(); - - const monitoringRole = new iam.Role(this, 'RDSEnhancedMonitoringRole', { - assumedBy: new iam.ServicePrincipal('monitoring.rds.amazonaws.com'), - }); - monitoringRole.addManagedPolicy( - iam.ManagedPolicy.fromManagedPolicyArn( - this, - 'AmazonRDSEnhancedMonitoringPermission', - 'arn:aws:iam::aws:policy/service-role/AmazonRDSEnhancedMonitoringRole', - ), - ); - const defaultDatabaseName = 'coop'; - const rdsCluster = new DatabaseCluster(this, 'ApiServerDatabaseCluster', { - credentials: Credentials.fromGeneratedSecret('postgres', { - secretName: `${stage}/Api/Postgres`, - }), - storageEncrypted: true, - engine: rdsEngine, - instances: numInstances, - defaultDatabaseName, - parameterGroup: rdsParameterGroup, - instanceProps: { - vpc, - // NB: ideally we'd have this cluster deployed in an isolated subnet, - // not a public one, but our db used to be publicly accessible, and it'd - // require downtime (I think), or some careful coordination, to move it - // to another subnet now. However, our security groups should prevent - // public connection attempts to the db anyway, even in its current subnet. - vpcSubnets: { subnetType: SubnetType.PUBLIC, onePerAz: true }, - enablePerformanceInsights: true, - instanceType: provisionProdLevelsOfCompute - ? InstanceType.of(InstanceClass.R6G, InstanceSize.LARGE) - : InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM), - }, - clusterIdentifier: `${stage}-api-db-cluster`, - instanceIdentifierBase, - deletionProtection: stage === 'Prod', - removalPolicy: - stage === 'Prod' ? RemovalPolicy.RETAIN : RemovalPolicy.DESTROY, - backup: { - preferredWindow: '06:51-07:21', // i.e., 1:51am to 2:21am NYC time - retention: Duration.days(7), - }, - cloudwatchLogsExports: ['postgresql'], - cloudwatchLogsRetention: - stage === 'Prod' ? RetentionDays.ONE_MONTH : RetentionDays.THREE_DAYS, - monitoringRole, - monitoringInterval: Duration.seconds(30), - }); - - this.rdsReadOnlyClusterHost = rdsCluster.clusterReadEndpoint.hostname; - - // For now, allow connections from anywhere in the VPC. - rdsCluster.connections.allowDefaultPortFrom(Peer.ipv4(vpc.vpcCidrBlock)); - - withSnsNotifications( - rdsCluster - .metric('AuroraReplicaLag', { - statistic: 'Maximum', - period: Duration.seconds(10), - }) - .createAlarm(this, 'DbHighReplicationLagAlarm', { - comparisonOperator: - ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD, - threshold: 3000, - evaluationPeriods: 3, - datapointsToAlarm: 2, - // we do not currently know what to do in response to this alarm so we - // are disabling it for the time being - actionsEnabled: false, - }), - lowUrgencyAlertsTopic, - ); - - // NB: this logic is totally broken; see - // https://coop.atlassian.net/browse/COOP-580 - const readAutoscalingTarget = new ScalableTarget( - this, - 'ReadAutoscalingTarget', - { - minCapacity: 2, - maxCapacity: 10, - serviceNamespace: ServiceNamespace.RDS, - resourceId: `cluster:${rdsCluster.clusterIdentifier}`, - scalableDimension: 'rds:cluster:ReadReplicaCount', - }, - ); - readAutoscalingTarget.scaleToTrackMetric('DatabaseCPUUtilization', { - targetValue: 0.65, - customMetric: rdsCluster.metric('DatabaseCPUUtilization', { - statistic: 'Average', - period: Duration.minutes(5), - }), - }); - readAutoscalingTarget.scaleToTrackMetric('BufferHitCacheRatio', { - targetValue: 99.0, - customMetric: rdsCluster.metric('BufferHitCacheRatio', { - statistic: 'Average', - period: Duration.minutes(5), - }), - }); - - // TODO, for when we build more robust monitoring/alarming than cloudwatch - // supports: there are some other metrics that'd be good to alert on. - // Consider, if we introduce a query that pg plans poorly, we want to know - // about that right away, even if it's not causing cpu/memory bottlenecks. - // we could detect that by comparing the ratio of rows that pg had to read - // compared to the number that were ultimately returned. That data is - // captured in performance insights, which exposes tup_fetched and - // tup_returned from pg (see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights_Counters.html). - // Unfortunately, that data is not available in Cloudwatch. Similarly, - // there are pg-collected metrics that aren't exposed to Cloudwatch or - // Performance Insights, like the the number of seq scans; see https://www.postgresql.org/docs/10/monitoring-stats.html#PG-STAT-ALL-TABLES-VIEW - // - // NB: We don't need to alert on available disk space, because AWS autoscales that. - - // Cloudwatch reports some metrics at the cluster level, but some only at - // the instance level. For the latter, Cloudwatch doesn't let us easily - // aggregate those metrics across all instances. So, instead, we create an - // alarm for each instance. - for (let i = 0; i < numInstances; i++) { - // Create an alert if any of our instances are short on CPU. Setting the - // threshold here is a bit tricky but, we can probably assume that, if our - // total utilization _averaged over one minute_, for 2 of 3 consecutive - // minutes is > 50, then (because query volume is decently spiky) some - // queries are probably coming in and having to wait a bit. Cloudwatch is - // stupid, and it won't let us just aggregate all the cpu utilization - // metrics (from the different instances within each cluster) and build an - // alert on that. Instead, we build an alert for each instance manually. - // We could also use the DbLoadCPU metric provided by performance insights, - // but that's a little trickier because interpreting it requires factoring - // in the number of vCPUs on the instance. See https://aws.amazon.com/blogs/database/set-alarms-on-performance-insights-metrics-using-amazon-cloudwatch/ - withSnsNotifications( - new Metric({ - namespace: 'AWS/RDS', - metricName: 'CPUUtilization', - dimensionsMap: { - DBInstanceIdentifier: `${instanceIdentifierBase}${i + 1}`, - }, - period: Duration.minutes(2), - }).createAlarm(this, `RdsInstance${i + 1}HighCpuUtilizationAlarm`, { - comparisonOperator: - ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD, - threshold: 75, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }), - lowUrgencyAlertsTopic, - ); - - // If we're running out of memory, or not getting a high cache hit rate - // (which may indicate not enough ram, or badly-planned queries), alarm. - // SQL workload performance in particular tends to be incredibly sensitive - // to the cache hit rate. Similarly, if the disk can't keep up -- which - // could be from high write volume, but it also gonna happen if the cache - // hit rate drops -- we almost certainly have a perf issue. - withSnsNotifications( - new Metric({ - namespace: 'AWS/RDS', - metricName: 'FreeableMemory', - dimensionsMap: { - DBInstanceIdentifier: `${instanceIdentifierBase}${i + 1}`, - }, - period: Duration.minutes(1), - }).createAlarm(this, `RdsInstance${i + 1}LowFreeMemoryAlarm`, { - comparisonOperator: ComparisonOperator.LESS_THAN_THRESHOLD, - threshold: 512 * 1024 * 1024, // 512MiB - evaluationPeriods: 2, - }), - highUrgencyAlarmsTopic, - ); - - withSnsNotifications( - new Metric({ - namespace: 'AWS/RDS', - metricName: 'DiskQueueDepth', - dimensionsMap: { - DBInstanceIdentifier: `${instanceIdentifierBase}${i + 1}`, - }, - period: Duration.minutes(1), - }).createAlarm(this, `RdsInstance${i + 1}DiskQueueLengthAlarm`, { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold: 1, - // A spike in one minute is probably ok/normal (e.g., during - // vacuuming), if not ideal. But 2 of 3 mins is a real problem. - evaluationPeriods: 3, - datapointsToAlarm: 2, - }), - lowUrgencyAlertsTopic, - ); - - withSnsNotifications( - new Metric({ - namespace: 'AWS/RDS', - metricName: 'BufferCacheHitRatio', - dimensionsMap: { - DBInstanceIdentifier: `${instanceIdentifierBase}${i + 1}`, - }, - period: Duration.minutes(1), - }).createAlarm(this, `RdsInstance${i + 1}LowCacheHitRateAlarm`, { - comparisonOperator: - ComparisonOperator.LESS_THAN_OR_EQUAL_TO_THRESHOLD, - // Relational dbs can often achieve crazy high cache hit rates (AWS - // recommends targeting 99.98%), and monitoring this is critical - // becasue a tiny drop in hit rate translates to a big load spike on - // the db. E.g., going from 99.98% hits to just 99.9% hits means _5x_ - // the number of reads have to be served from disk. - // - // For us, our db server RAM is much bigger than our data size, so we - // should always be able to have ~100% hit ratio, as long as new - // writes aren't coming in and triggering invalidations. When certain - // writes do come in, though, our hit ratio usually drops a bit. The - // drop isn't enough to cause issues -- our instances are provisioned - // enough, and our write volume is low enough, that we can easily - // handle pretty extended periods with way lower hit rates -- but it's - // enough that setting this monitor to 99.9 was leading to lots of - // spurious alerts during those periods of writes. So, this value is - // just low enough to avoid those spurious alerts, while otherwise - // being as high as possible, so that we get alerted if our hit rate - // starts going down more than before. - threshold: 99, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }), - lowUrgencyAlertsTopic, - ); - - // We absolutely need to know if the instance is approaching - // transaction id wraparound. - withSnsNotifications( - new Metric({ - namespace: 'AWS/RDS', - metricName: 'MaximumUsedTransactionIDs', - }).createAlarm(this, `RdsInstance${i + 1}TxIdWraparoundAlarm`, { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - // pg supports 2 billion transaction ids, so we'll alarm at 1 billion. - threshold: 1_000_000_000, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }), - highUrgencyAlarmsTopic, - ); - } - - this.rdsConnectionSecretArn = rdsCluster.secret!.secretFullArn!; - this.rdsConnectionSecretArnOutput = new CfnOutput(this, 'SecretArn', { - value: this.rdsConnectionSecretArn, - }); - - // Now, add a durable Redis db that'll serve as the database for MRT - const redisSubnetGroup = new memorydb.CfnSubnetGroup( - this, - 'RedisSubnetGroup', - { - subnetGroupName: `${props.stage}-redis-subnet-group`.toLowerCase(), - subnetIds: vpc.selectSubnets({ - subnetType: SubnetType.PRIVATE_ISOLATED, - onePerAz: true, - }).subnetIds, - }, - ); - - const redisSecurityGroup = new SecurityGroup(this, 'RedisSecurityGroup', { - vpc, - }); - - redisSecurityGroup.addIngressRule( - Peer.ipv4(vpc.vpcCidrBlock), - Port.tcp(6379), - 'Allow connections from inside the VPC.', - ); - - const redis = new memorydb.CfnCluster(this, 'RedisCluster', { - clusterName: `${props.stage}-private-redis-cluster`.toLowerCase(), - engineVersion: '6.2', - autoMinorVersionUpgrade: true, - subnetGroupName: redisSubnetGroup.subnetGroupName, - nodeType: provisionProdLevelsOfCompute - ? 'db.r7g.xlarge' - : 'db.t4g.medium', - numReplicasPerShard: props.numInstances > 1 ? 1 : 0, - numShards: 1, - snapshotWindow: '08:51-10:21', // after pg finishes, - snapshotRetentionLimit: 7, - securityGroupIds: [redisSecurityGroup.securityGroupId], - aclName: 'full-access', - tlsEnabled: true, - }); - - redis.addDependency(redisSubnetGroup); - - withSnsNotifications( - new Metric({ - namespace: 'AWS/MemoryDB', - metricName: 'DatabaseMemoryUsagePercentage', - dimensionsMap: { - ClusterName: redis.clusterName, - NodeName: `${redis.clusterName}-0001-001`, - }, - period: Duration.minutes(1), - }).createAlarm( - this, - `${redis.clusterName}HighDatabaseMemoryUsagePercentage-75`, - { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold: 75, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }, - ), - highUrgencyAlarmsTopic, - ); - - withSnsNotifications( - new Metric({ - namespace: 'AWS/MemoryDB', - metricName: 'DatabaseMemoryUsagePercentage', - dimensionsMap: { - ClusterName: redis.clusterName, - NodeName: `${redis.clusterName}-0001-001`, - }, - period: Duration.minutes(1), - }).createAlarm( - this, - `${redis.clusterName}HighDatabaseMemoryUsagePercentage-85`, - { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold: 85, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }, - ), - highUrgencyAlarmsTopic, - ); - - withSnsNotifications( - new Metric({ - namespace: 'AWS/MemoryDB', - metricName: 'DatabaseMemoryUsagePercentage', - dimensionsMap: { - ClusterName: redis.clusterName, - NodeName: `${redis.clusterName}-0001-001`, - }, - period: Duration.minutes(1), - }).createAlarm( - this, - `${redis.clusterName}HighDatabaseMemoryUsagePercentage-90`, - { - comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold: 90, - evaluationPeriods: 3, - datapointsToAlarm: 2, - }, - ), - highUrgencyAlarmsTopic, - ); - - const cluster = clusterFromAttributes(this, 'K8sCluster', { - ...props.kubernetesClusterAttributes, - ...makeKubectlVersionProps(this), - }); - - new MigrationRunner(this, 'api-migrations', { - migrationsImage: props.migrationsImage, - cluster, - secrets: { - API_SERVER_DATABASE_USER: [this.rdsConnectionSecretArn, 'username'], - API_SERVER_DATABASE_PASSWORD: [this.rdsConnectionSecretArn, 'password'], - SCYLLA_HOSTS: [scyllaSecretArn, 'hosts'], - SCYLLA_USERNAME: [scyllaSecretArn, 'username'], - SCYLLA_PASSWORD: [scyllaSecretArn, 'password'], - }, - env: { - API_SERVER_DATABASE_HOST: rdsCluster.clusterEndpoint.hostname, - API_SERVER_DATABASE_PORT: rdsCluster.clusterEndpoint.port.toString(), - API_SERVER_DATABASE_NAME: defaultDatabaseName, - SCYLLA_LOCAL_DATACENTER: 'AWS_US_EAST_2', - SCYLLA_KEYSPACE: 'item_investigation_service', - SCYLLA_REPLICATION_CLASS: 'NetworkTopologyStrategy', - SCYLLA_REPLICATION_FACTOR: '3', - SCYLLA_COMPACTION_STRATEGY: 'IncrementalCompactionStrategy', - SCYLLA_HAS_ENTERPRISE_FEATURES: 'true', - }, - dbArgs: ['api-server-pg', 'scylla'], - deploymentEnvironment: stage, - vpc, - }); - - const vpnEndpoint = new ClientVpnEndpoint(this, 'DbVpnEndpoint', { - vpc, - // When a client from the outside world connects to the VPC via the VPN - // endpoint, the endpoint has to assign that client a private IP address - // for routing intra-VPC traffic back to it. The CIDR block below - // defines the range from which those private IP addresses are allocated. - // This CIDR block can't overlap at all with the VPC's CIDR block, as - // the VPC might be using those IPs already to assign to instances etc. - cidr: '10.1.0.0/16', - // Client will use same cert as stored on server, for TLS mutual - // authentication. - serverCertificateArn: props.vpnCertificateArn, - clientCertificateArn: props.vpnCertificateArn, - // Simpler for now than fine-grained auth rules for different users - // connecting to the VPC thhough the VPN endpoint. Ditto, we'll leave - // the default for `securityGroups`, which has CDK create a new security - // group so the traffic is routable from the VPN endpoint to the rest of - // the VPC. - authorizeAllUsersToVpcCidr: true, - - // Only route traffic to AWS resources through the VPN, so that we don't - // incur costs and slowness for devs browsing the internet to look up - // docs or whatever while they're connected to the VPN. This is "split - // tunneling". However, do route all DNS requests to the VPC's DNS - // resolvers so that AWS resources that resolve differently when looked - // up against public DNS vs the VPC's DNS will be handled correctly. - // This is especially important for RDS endpoints, which are (currently) - // publicly-accessible to a limited set of IPs, and so have public DNS, - // but need to resolve to a VPC-local private IP for the traffic to them - // to properly be routed through the VPN by the split-tunneling config - // (which is the only way to make the db accessible to VPN-connected - // clients not using an RDS-whitelisted IP). - splitTunnel: true, - // AWS always puts the VPC's DNS server at the .2 address of the VPC's - // primary cidr. However, computing that .2 address in Cloudformation - // from the vpcCidrBlock import is hard, given Cfn's limited intrinsic - // functions, so we leverage the fact that AWS also exposes the DNS - // server at this fixed address. - // See https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html - // We've seen spotty availability from this DNS sever so I've added the - // hard coded .2 address here which seems to help even though I don't - // understand why. - dnsServers: ['169.254.169.253', '10.0.0.2'], - }); - vpnEndpoint.connections.allowTo(props.clusterSecurityGroup, Port.tcp(443)); - - // Make the DNS enpoint reachable locally while connected to the VPN. - vpnEndpoint.addRoute('dns-resolution', { - cidr: '169.254.169.253/32', - target: ClientVpnRouteTarget.subnet(vpc.privateSubnets[0]), - }); - - vpnEndpoint.addAuthorizationRule('dns-resolution-access', { - cidr: '169.254.169.253/32', - }); - - // Make the Scylla peering ips reachable while connected to the VPN - vpnEndpoint.addRoute('scylla-vpc', { - cidr: '172.31.0.0/16', - target: ClientVpnRouteTarget.subnet(vpc.privateSubnets[0]), - }); - - vpnEndpoint.addAuthorizationRule('scylla-vpc-access', { - cidr: '172.31.0.0/16', - }); - } -} diff --git a/.devops/aws/src/stacks/api-service/jobs_workers.ts b/.devops/aws/src/stacks/api-service/jobs_workers.ts deleted file mode 100644 index af78864..0000000 --- a/.devops/aws/src/stacks/api-service/jobs_workers.ts +++ /dev/null @@ -1,299 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets'; -import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; -import { App as Cdk8sApp } from 'cdk8s'; -import { Construct } from 'constructs'; -import _ from 'lodash'; - -import { - makeKubectlVersionProps, - PgEnvVar, - pgEnvVars, - RedisEnvVar, - redisEnvVars, - repoRootDir, - ScyllaEnvVars, - scyllaEnvVars, -} from '../../constants.js'; -import { - clusterFromAttributes, - VersionAgnosticClusterAttributes, -} from '../../constructs/clusterFromAttributes.js'; -import { - KubernetesSecretsIntegration, - SecretsMap, -} from '../../constructs/KubernetesSecretsIntegration.js'; -import { CoopCronJob } from '../../constructs/CoopCronJob.js'; -import { CoopWorkerDeployment } from '../../constructs/CoopWorkerDeployment.js'; -import { Quantity } from '../../imports/k8s.js'; -import { type DeploymentEnvironmentName } from '../app_pipeline.js'; -import { deployedIntelNodeTypes } from '../k8s_cluster.js'; - -const { pick } = _; - -type WorkersStackProps = StackProps & { - namespaceName: string; - uiUrl: string; - clusterAttributes: VersionAgnosticClusterAttributes; - secrets: SecretsMap< - | PgEnvVar - | RedisEnvVar - | 'SENDGRID_API_KEY' - | ScyllaEnvVars - >; - stage: DeploymentEnvironmentName; - provisionProdLevelsOfCompute: boolean; - rdsReadOnlyClusterHost: string; - bullmqTokenSecretArn?: string; - enableDatadog: boolean; -}; - -/** - * A stack representing all background processes that are part of our API - * service. We deploy these as k8s cron jobs or long-lived pods, as needed. - */ -export class JobsAndWorkersStack extends Stack { - constructor(scope: Construct, id: string, props: WorkersStackProps) { - const { - clusterAttributes, - stage, - provisionProdLevelsOfCompute, - namespaceName, - secrets, - rdsReadOnlyClusterHost, - ...stackProps - } = props; - super(scope, id, stackProps); - - // Reference the existing backend cluster, which we've deployed separately. - const cluster = clusterFromAttributes(this, 'Cluster', { - ...clusterAttributes, - ...makeKubectlVersionProps(this), - }); - - const workerPodImage = new DockerImageAsset(this, `worker-image`, { - directory: repoRootDir, - target: 'build_worker_runner', - // The build args will always change, since BUILD_ID is based on the - // commit id. But, if none of the other docker inputs changed (i.e., our - // actual code files), there's no need to rebuild the image. - invalidation: { buildArgs: false }, - buildArgs: { - BUILD_ID: process.env.CODEBUILD_RESOLVED_SOURCE_VERSION ?? '', - }, - platform: Platform.LINUX_AMD64, - }); - - // A service account to grant our workers access to the needed secrets. - // For now, we'll make one service account for all workers. - const serviceAccount = cluster.addServiceAccount('WorkerServiceAccount', { - namespace: namespaceName, - name: 'worker-service-account', - }); - - // Also grant it permission to read secrets, because we need to read signing - // keys in any workers that can (however indirectly) make a signed request - // to our customers' endpoints (e.g. for partial items and actions). - serviceAccount.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: ['secretsmanager:GetSecretValue'], - resources: [ - `arn:aws:secretsmanager:${this.region}:${this.account}:secret:Prod/OrgSecrets/*`, - ], - }), - ); - - new CoopWorkerDeployment(new Cdk8sApp(), 'item-processing-worker', { - workerName: 'ItemProcessingWorker', - uiUrl: props.uiUrl, - imageUrl: workerPodImage.imageUri, - allowedNodeTypes: deployedIntelNodeTypes, - namespace: namespaceName, - resources: { - requests: { - cpu: Quantity.fromString('1000m'), - memory: Quantity.fromString('4Gi'), - }, - limits: { - cpu: Quantity.fromString('1000m'), - memory: Quantity.fromString('4Gi'), - }, - }, - nodeJsMemoryOptions: { - nodeExternalMemoryPercent: 0.33, - }, - secretsHandler: new KubernetesSecretsIntegration( - this, - 'ItemProcessingWorkerSecrets', - { - serviceAccount, - secrets: _.pick(secrets, [ - ...scyllaEnvVars, - ...pgEnvVars, - ...redisEnvVars, - 'OPEN_AI_API_KEY', - ]), - }, - ), - targetReplicas: props.provisionProdLevelsOfCompute ? 10 : 1, - stage, - env: { - DATABASE_READ_ONLY_HOST: rdsReadOnlyClusterHost, - }, - dependencies: [workerPodImage], - }).addToCluster(cluster); - - new CoopCronJob( - new Cdk8sApp(), - 'refresh-mrt-decisions-materialized-view-job', - { - jobName: 'RefreshMRTDecisionsMaterializedViewJob', - uiUrl: props.uiUrl, - imageUrl: workerPodImage.imageUri, - allowedNodeTypes: deployedIntelNodeTypes, - namespace: namespaceName, - concurrencyPolicy: 'Forbid', - schedule: '*/5 * * * *' as any, - secretsHandler: new KubernetesSecretsIntegration( - this, - 'RefreshMRTDecisionsMaterializedViewJobSecrets', - { serviceAccount, secrets: pick(secrets, [...pgEnvVars]) }, - ), - stage, - env: {}, - dependencies: [workerPodImage], - resources: { - requests: { - cpu: Quantity.fromString('50m'), - memory: Quantity.fromString('756Mi'), - }, - limits: { - cpu: Quantity.fromString('100m'), - memory: Quantity.fromString('756Mi'), - }, - }, - nodeJsMemoryOptions: { - nodeExternalMemoryPercent: 0.03, - }, - }, - ).addToCluster(cluster); - new CoopCronJob(new Cdk8sApp(), 'rule-pass-rate-anomaly-detection-job', { - jobName: 'DetectRulePassRateAnomaliesJob', - uiUrl: props.uiUrl, - imageUrl: workerPodImage.imageUri, - allowedNodeTypes: deployedIntelNodeTypes, - namespace: namespaceName, - concurrencyPolicy: 'Forbid', - schedule: '0 * * * *', - // This worker queries the data warehouse for rule pass rates, sets alarm - // status in pg, and maybe sends emails when an alarm occurs, so it needs - // all those secrets. - secretsHandler: new KubernetesSecretsIntegration( - this, - 'DetectRulePassRateAnomaliesJobSecrets', - { - serviceAccount, - secrets: pick(secrets, [...pgEnvVars, 'SENDGRID_API_KEY']), - }, - ), - stage, - env: { - DATABASE_READ_ONLY_HOST: rdsReadOnlyClusterHost, - }, - dependencies: [workerPodImage], - resources: { - requests: { - cpu: Quantity.fromString('500m'), - memory: Quantity.fromString('1.5Gi'), - }, - limits: { - cpu: Quantity.fromString('800m'), - memory: Quantity.fromString('2Gi'), - }, - }, - }).addToCluster(cluster); - - new CoopCronJob(new Cdk8sApp(), 'retry-failed-ncmec-decisions-job', { - jobName: 'RetryFailedNcmecDecisionsJob', - uiUrl: props.uiUrl, - imageUrl: workerPodImage.imageUri, - allowedNodeTypes: deployedIntelNodeTypes, - namespace: namespaceName, - concurrencyPolicy: 'Forbid', - // Once a day at midnight - schedule: '30 20 * * *' as any, - secretsHandler: new KubernetesSecretsIntegration( - this, - 'RetryFailedNcmecDecisions', - { - serviceAccount, - secrets: _.pick(secrets, [ - ...scyllaEnvVars, - ...pgEnvVars, - ...redisEnvVars, - 'OPEN_AI_API_KEY', - ]), - }, - ), - stage, - env: { - DATABASE_READ_ONLY_HOST: rdsReadOnlyClusterHost, - }, - dependencies: [workerPodImage], - resources: { - requests: { - cpu: Quantity.fromString('500m'), - memory: Quantity.fromString('1.5Gi'), - }, - limits: { - cpu: Quantity.fromString('800m'), - memory: Quantity.fromString('2Gi'), - }, - }, - nodeJsMemoryOptions: { - nodeExternalMemoryPercent: 0.03, - }, - }).addToCluster(cluster); - - new CoopCronJob(new Cdk8sApp(), 'daily-usage-statistics-job', { - jobName: 'DailyUsageStatisticsJob', - uiUrl: props.uiUrl, - imageUrl: workerPodImage.imageUri, - allowedNodeTypes: deployedIntelNodeTypes, - namespace: namespaceName, - concurrencyPolicy: 'Forbid', - schedule: '0 1 * * *' as any, // 1am UTC every day. - secretsHandler: new KubernetesSecretsIntegration( - this, - 'DailyUsageStatisticsJobSecrets', - { - serviceAccount, - secrets: pick(secrets, [ - ...pgEnvVars, - ...scyllaEnvVars, - ...redisEnvVars, - ]), - }, - ), - stage, - env: { - DATABASE_READ_ONLY_HOST: rdsReadOnlyClusterHost, - }, - dependencies: [workerPodImage], - resources: { - requests: { - cpu: Quantity.fromString('50m'), - memory: Quantity.fromString('756Mi'), - }, - limits: { - cpu: Quantity.fromString('100m'), - memory: Quantity.fromString('756Mi'), - }, - }, - nodeJsMemoryOptions: { - nodeExternalMemoryPercent: 0.03, - }, - }).addToCluster(cluster); - } -} diff --git a/.devops/aws/src/stacks/api-service/lambda/loadBalancerLookUpIsComplete.ts b/.devops/aws/src/stacks/api-service/lambda/loadBalancerLookUpIsComplete.ts deleted file mode 100644 index 6e97d4b..0000000 --- a/.devops/aws/src/stacks/api-service/lambda/loadBalancerLookUpIsComplete.ts +++ /dev/null @@ -1,42 +0,0 @@ -// The AWS SDK is provided by the runtime. Other node modules must be uploaded via zipfile -import { - DescribeLoadBalancersCommand, - ElasticLoadBalancingV2Client, - LoadBalancerStateEnum, -} from '@aws-sdk/client-elastic-load-balancing-v2'; - -export async function handler(event: { - Data: { LoadBalancerArn: string | undefined }; - ResourceProperties: { hostname: string; region: string }; -}): Promise<{ IsComplete: boolean }> { - console.log('event', event); - if (!event.Data.LoadBalancerArn) { - return { IsComplete: true }; - } - console.log('event', event); - const { hostname, region } = event.ResourceProperties; - console.log('hostname', hostname); - const client = new ElasticLoadBalancingV2Client({ region }); - const command = new DescribeLoadBalancersCommand({ - LoadBalancerArns: [event.Data.LoadBalancerArn], - }); - - try { - const response = await client.send(command); - console.log( - 'response', - response, - 'code', - response.LoadBalancers?.at(0)?.State?.Code, - ); - - return { - IsComplete: - response.LoadBalancers?.at(0)?.State?.Code === - LoadBalancerStateEnum.ACTIVE, - }; - } catch (error) { - console.error('Error occurred during load balancer lookup:', error); - throw error; - } -} diff --git a/.devops/aws/src/stacks/api-service/lambda/loadBalancerLookupOnEvent.ts b/.devops/aws/src/stacks/api-service/lambda/loadBalancerLookupOnEvent.ts deleted file mode 100644 index 85c0eba..0000000 --- a/.devops/aws/src/stacks/api-service/lambda/loadBalancerLookupOnEvent.ts +++ /dev/null @@ -1,47 +0,0 @@ -// The AWS SDK is provided by the runtime. Other node modules must be uploaded via zipfile -import { - DescribeLoadBalancersCommand, - ElasticLoadBalancingV2Client, -} from '@aws-sdk/client-elastic-load-balancing-v2'; - -export async function handler(event: { - ResourceProperties: { hostname: string; region: string }; -}) { - console.log('event', event); - const { hostname, region } = event.ResourceProperties; - const client = new ElasticLoadBalancingV2Client({ region }); - // we don't have any way to search for the target load balancer using this SDK method so we return all load balancers. - const command = new DescribeLoadBalancersCommand({}); - - try { - const response = await client.send(command); - console.log('load balancers', response); - - const loadBalancerArn = response?.LoadBalancers?.find( - (lb) => lb.DNSName === hostname, - )?.LoadBalancerArn; - - console.log('loadbalancerArn', loadBalancerArn); - - const loadbalancerArnDelimiter = 'app/'; - const index = loadBalancerArn?.indexOf(loadbalancerArnDelimiter); - if (index === -1) { - throw new Error( - `${loadbalancerArnDelimiter} not found in ARN: ${loadBalancerArn}`, - ); - } - const loadBalancerName = loadBalancerArn?.slice(index); - - // resource attributes must be in the Data object - // https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.custom_resources/README.html#handling-lifecycle-events-onevent - return { - Data: { - LoadBalancerArn: loadBalancerArn, - LoadBalancerName: loadBalancerName, - }, - }; - } catch (error) { - console.error('Error occurred during load balancer lookup:', error); - throw error; - } -} diff --git a/.devops/aws/src/stacks/api-service/lambda/targetGroupLookupOnEvent.ts b/.devops/aws/src/stacks/api-service/lambda/targetGroupLookupOnEvent.ts deleted file mode 100644 index 50346d5..0000000 --- a/.devops/aws/src/stacks/api-service/lambda/targetGroupLookupOnEvent.ts +++ /dev/null @@ -1,164 +0,0 @@ -// The AWS SDK is provided by the runtime. Other node modules must be uploaded via zipfile -import { - GetResourcesCommand, - ResourceGroupsTaggingAPIClient, - type TagFilter, -} from '@aws-sdk/client-resource-groups-tagging-api'; - -// ES Modules import - -/* - Given the name of a service and the name of its corresponding canary - service, which are assumed to be running behind the same ingress and on the - same service port, this function looks for an ALB target group associated - with the main service and a separate target group associated with this - canary. It identifies these target groups by their tags, which we assume - will be set in a specific way by the ALB controller. Then, it returns the - name of each target group. -*/ -export async function handler(event: { - ResourceProperties: { - region: string; - clusterName: string; - namespaceName: string; - ingressName: string; - serviceName: string; - canaryServiceName: string; - servicePort: string | number; - }; -}) { - console.log('event', event); - const { - region, - clusterName, - namespaceName, - ingressName, - serviceName, - canaryServiceName, - servicePort, - } = event.ResourceProperties; - const resourceGroupTaggingClient = new ResourceGroupsTaggingAPIClient({ - region, - }); - const getTargetGroupArn = withRetries( - { - maxRetries: 30, - initialTimeMsBetweenRetries: 1000, - maxTimeMsBetweenRetries: 5000, - }, - async (serviceName: string) => { - console.log('looking up target group for service:', serviceName); - const tags: TagFilter[] = [ - { - Key: 'ingress.k8s.aws/resource', - Values: [ - `${namespaceName}/${ingressName}-${serviceName}:${servicePort}`, - ], - }, - { - Key: 'elbv2.k8s.aws/cluster', - Values: [clusterName], - }, - ]; - - const command = new GetResourcesCommand({ - TagFilters: tags, - }); - - const response = await resourceGroupTaggingClient.send(command); - console.log('target groups:', response); - - if ( - response?.ResourceTagMappingList === undefined || - response?.ResourceTagMappingList.length === 0 - ) { - throw new Error( - `No target group was found with the tags: ${JSON.stringify(tags)}`, - ); - } - if (response?.ResourceTagMappingList?.length > 1) { - throw new Error( - `More than one target group is found with the tag: ${JSON.stringify( - tags, - )}`, - ); - } - return response?.ResourceTagMappingList?.at(0)?.ResourceARN; - }, - ); - - try { - const targetGroupArn = await getTargetGroupArn(serviceName); - - const canaryTargetGroupArn = await getTargetGroupArn(canaryServiceName); - - const targetGroupName = (arn: string | undefined) => { - if (arn === undefined) { - throw new Error('ARN is undefined'); - } - const index = arn.indexOf('targetgroup'); - if (index === -1) { - throw new Error(`ARN: ${arn} does not contain 'targetgroup'`); - } - return arn.slice(index); - }; - - console.log('targetgroupArn', targetGroupArn); - // resource attributes must be in the Data object - // https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.custom_resources/README.html#handling-lifecycle-events-onevent - return { - Data: { - TargetGroupName: targetGroupName(targetGroupArn), - CanaryTargetGroupName: targetGroupName(canaryTargetGroupArn), - }, - }; - } catch (error) { - console.error('Error occurred during target group lookup:', error); - throw error; - } -} - -async function sleep(ms: number) { - return new Promise((resolve) => { - return setTimeout(resolve, ms).unref(); - }); -} - -function withRetries( - retryPolicy: { - maxRetries: number; - initialTimeMsBetweenRetries: number; - maxTimeMsBetweenRetries: number; - jitter?: boolean; - nextRetryWaitTimeMultiple?: number; - isRetryableError?: (rejectionValue: unknown) => boolean; - }, - fn: (this: void, ...args: Args) => Promise, -): (...args: Args) => Promise { - const { - maxRetries, - initialTimeMsBetweenRetries, - maxTimeMsBetweenRetries, - jitter = true, - nextRetryWaitTimeMultiple = 2, - isRetryableError = () => true, - } = retryPolicy; - return async (...args) => { - for (let i = 0; i <= maxRetries; ++i) { - try { - return await fn(...args); - } catch (ex) { - if (i === maxRetries || !isRetryableError(ex)) { - throw ex; - } - const waitTimeMs = Math.min( - maxTimeMsBetweenRetries, - (jitter ? Math.random() : 1) * - (initialTimeMsBetweenRetries * nextRetryWaitTimeMultiple ** i), - ); - await sleep(waitTimeMs); - } - } - throw new Error('Invalid retry attempts'); - }; -} diff --git a/.devops/aws/src/stacks/app_pipeline.ts b/.devops/aws/src/stacks/app_pipeline.ts deleted file mode 100644 index 99dc872..0000000 --- a/.devops/aws/src/stacks/app_pipeline.ts +++ /dev/null @@ -1,414 +0,0 @@ -import path from 'path'; -import match from '@ethanresnick/match'; -import * as cdk from 'aws-cdk-lib'; -import { RemovalPolicy, Stage, StageProps } from 'aws-cdk-lib'; -import { Period } from 'aws-cdk-lib/aws-apigateway'; -import { type INotificationRuleTarget } from 'aws-cdk-lib/aws-codestarnotifications'; -import { Construct } from 'constructs'; -import _ from 'lodash'; - -import controllers from '../../../../server/routes/index.js'; -// Import the file below because the API server redefines some global types in -// this file and, since the CDK project imports code from the API server (e.g., -// to extract route schemas to register with API gateway), the CDK project -// sometimes won't compile unless it's also compiled with these overriden types. -import '../../../../server/ts-reset.js'; - -import { type EnvPreLoadedSecrets } from '../app.js'; -import { ClusterAttributes } from '../constructs/clusterFromAttributes.js'; -import { type CoopApiGatewayProps } from '../constructs/CoopApiGateway.js'; -import { ApiStack } from './api-service/api.js'; -import { ApiDbClusterStack } from './api-service/db.js'; -import { JobsAndWorkersStack } from './api-service/jobs_workers.js'; -import { CloudfrontStack } from './cloudfront/cloudfront.js'; -import { DatadogStack } from './datadog.js'; -import { K8sClusterStack, type K8sOutputs } from './k8s_cluster.js'; -import { MigrationStack } from './migrations.js'; -import { ContentProxyStack } from './content-proxy.js'; -import { RedirectStack } from './redirects.js'; -import { TelemetryStack } from './telemetry.js'; -import { VpcOutputs, VpcStack } from './vpc.js'; - -// Define DeploymentEnvironment type in terms of an array of all the legal -// values so that we can also enumerate the possibilities at runtime. -const deploymentEnvironments = ['Prod', 'Staging', 'Demo'] as const; -export type DeploymentEnvironmentName = (typeof deploymentEnvironments)[number]; - -export type AppPipelineStackProps = cdk.StackProps & { - env: cdk.Environment; - provisionProdLevelsOfCompute: boolean; - pipelineNotificationTarget: INotificationRuleTarget; - deploymentEnvName: DeploymentEnvironmentName; - sourceBranchName: string; - enableOpsGenie: boolean; - deleteStatefulResources: boolean; - enableDatadog: boolean; - tracingSamplingPercentage: string; - preLoadedSecrets: EnvPreLoadedSecrets; - alertsSlackChannelId: string; - rolloutNotificationsSlackChannel: string; - arns: { - dockerHubSecret: string; - githubConnection: string; - vpnServerCertificate: string; - datadogSecret: string; - bullmqSecret: string; - } & { [K in DeploymentEnvironmentName]: EnvSpecificArns }; -}; - -type EnvSpecificArns = { - sessionSecret: string; - redisSecret: string; - datadogRedisSecret: string; - scyllaSecret: string; - graphqlOpaqueScalarSecret: string; -}; - -type DeploymentEnvProps = StageProps & { - env: Exclude; - routes: CoopApiGatewayProps['routes']; - arns: EnvSpecificArns; - globalArns: Omit; - enableOpsGenie: boolean; - provisionProdLevelsOfCompute: boolean; - deleteStatefulResources: boolean; - enableDatadog: boolean; - tracingSamplingPercentage: string; - preLoadedSecrets: EnvPreLoadedSecrets; - alertsSlackChannelId: string; - rolloutNotificationsSlackChannel: string; -}; -export class AppPipelineStack extends cdk.Stack { - public readonly deploymentEnv: DeploymentEnv; - - constructor(scope: Construct, id: string, props: AppPipelineStackProps) { - super(scope, id, props); - - const { deploymentEnvName, preLoadedSecrets } = props; - - const routes = Object.values(controllers).flatMap( - ({ pathPrefix, routes }) => - routes.map((route) => ({ - ...route, - path: path.join(pathPrefix, route.path), - })), - ); - - const stage = new DeploymentEnv(this, props.deploymentEnvName, { - env: props.env, - routes, - arns: props.arns[deploymentEnvName], - provisionProdLevelsOfCompute: props.provisionProdLevelsOfCompute, - globalArns: _.omit(props.arns, deploymentEnvironments), - enableOpsGenie: props.enableOpsGenie, - deleteStatefulResources: props.deleteStatefulResources, - enableDatadog: props.enableDatadog, - tracingSamplingPercentage: props.tracingSamplingPercentage, - preLoadedSecrets, - alertsSlackChannelId: props.alertsSlackChannelId, - rolloutNotificationsSlackChannel: props.rolloutNotificationsSlackChannel, - }); - - this.deploymentEnv = stage; - } -} - -/** - * A full description of one of our environments (e.g., test or prod), - * with all the components declared inside a Stage, to make sure they are - * deployed together, or not at all. - */ -class DeploymentEnv extends Stage { - public readonly dbStack: ApiDbClusterStack; - public readonly vpcOutputs: VpcOutputs; - public readonly k8sOutputs: K8sOutputs; - - constructor( - scope: Construct, - id: DeploymentEnvironmentName, - props: DeploymentEnvProps, - ) { - super(scope, id, props); - const { provisionProdLevelsOfCompute, preLoadedSecrets } = props; - // Originally, the idea was to define our prod vpc to create subnets in 3 - // AZs -- even though that's overkill for now, and adds a bit of cost -- - // because we might eventually want to run a service in the prod vpc that - // should be replicated among 3 AZs, and that'd be impossible to do later - // without deleting the whole VPC. (We can't just reserve IPs for subnets in - // a 3rd AZ because CDK seems to require VPCs be setup symmetrically per - // AZ.) However, the prod VPC accidentally got created with only 2 AZs, so - // we're kinda stuck with that for now. If it becomes an issue, we can find - // a workaround. - const vpcStack = new VpcStack(this, 'Vpc', { - numAZs: 2, - stage: id, - }); - - const { vpc, outputs } = vpcStack; - this.vpcOutputs = outputs; - - const telemetry = new TelemetryStack(this, 'Telemetry', { - env: props.env, - forwardToOpsGenie: props.enableOpsGenie, - alertsSlackChannelId: props.alertsSlackChannelId, - }); - const highUrgencyAlarmsTopicArn = telemetry.highUrgencyAlarmsTopic.topicArn; - const lowUrgencyAlertsTopicArn = telemetry.lowUrgencyAlarmsTopic.topicArn; - - const subdomainName = match( - ['Demo', () => 'demo'], - ['Staging', () => 'staging'], - ['Prod', () => undefined as string | undefined], - )(id)!; - - const getCoopHostedZoneId = process.env.COOP_HOSTED_ZONE_ID; - const getCoopDomainName = process.env.COOP_DOMAIN_NAME; - - const fullyQualifiedDomainName = subdomainName - ? `${subdomainName}.${getCoopDomainName}` - : getCoopDomainName; - - const clusterStack = new K8sClusterStack(this, 'K8sCluster', { - env: props.env, - terminationProtection: true, - minNodes: props.provisionProdLevelsOfCompute ? 2 : 1, - vpc, - preLoadedSecrets, - provisionProdLevelsOfCompute, - deploymentEnvironmentName: id, - domain: { - subdomainName, - zoneName: getCoopDomainName, - hostedZoneId: getCoopHostedZoneId, - }, - }); - - // For creating an independent stand-in object for the cluster in other stacks, - // so they don't inadvertently mutate the clusterStack's cluster. - const clusterAttributes = { - clusterName: clusterStack.cluster.clusterName, - clusterEndpoint: clusterStack.cluster.clusterEndpoint, - kubectlRoleArn: clusterStack.cluster.kubectlRole!.roleArn, - kubectlLambdaRoleArn: clusterStack.cluster.kubectlLambdaRole!.roleArn, - openIdConnectProviderArn: - clusterStack.cluster.openIdConnectProvider.openIdConnectProviderArn, - vpc: clusterStack.cluster.vpc, - kubectlSecurityGroupId: clusterStack.cluster.clusterSecurityGroupId, - } satisfies Partial; - - const migrationsImage = new MigrationStack(this, 'migrations', { - synthesizer: new cdk.DefaultStackSynthesizer({ - dockerTagPrefix: `${id}-migrator`, - }), - }).image; - - this.dbStack = new ApiDbClusterStack(this, 'ApiDbCluster', { - migrationsImage, - numInstances: props.provisionProdLevelsOfCompute ? 3 : 1, - vpc, - stage: id, - vpnCertificateArn: props.globalArns.vpnServerCertificate, - highUrgencyAlarmsTopicArn, - lowUrgencyAlertsTopicArn, - provisionProdLevelsOfCompute, - clusterSecurityGroup: clusterStack.cluster.clusterSecurityGroup, - kubernetesClusterAttributes: clusterAttributes, - scyllaSecretArn: props.arns.scyllaSecret, - }); - - const rdsReadOnlyClusterHost = this.dbStack.rdsReadOnlyClusterHost; - - this.k8sOutputs = clusterStack.outputs; - - // Define all secrets here, using common env var names, - // and then we can pick subsets to pass to each deployment w/i each stack. - const { arns, globalArns } = props; - const secrets = { - SESSION_SECRET: [arns.sessionSecret], - GROQ_SECRET_KEY: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/GroqSecretKey-CucLyH', - ], - SENDGRID_API_KEY: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:sendgrid-api-key-YULdiW', - ], - GOOGLE_PLACES_API_KEY: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/GooglePlaceApiKey-QhAxtj', - ], - READ_ME_JWT_SECRET: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/ReadMeJWTSecret-jqSRIt', - ], - LAUNCHDARKLY_SECRET: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/LaunchDarkly-nRspsT', - ], - OPEN_AI_API_KEY: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/OpenaiEmbeddingsSecretKey-NDBtwj', - ], - REDIS_PASSWORD: [arns.redisSecret, 'password'], - REDIS_HOST: [arns.redisSecret, 'host'], - REDIS_USER: [arns.redisSecret, 'username'], - REDIS_PORT: [arns.redisSecret, 'to_string(port)'], - REDIS_USE_CLUSTER: [arns.redisSecret, 'cluster'], - SCYLLA_PASSWORD: [arns.scyllaSecret, 'password'], - SCYLLA_USERNAME: [arns.scyllaSecret, 'username'], - SCYLLA_LOCAL_DATACENTER: [arns.scyllaSecret, 'localDataCenter'], - SCYLLA_HOSTS: [arns.scyllaSecret, 'hosts'], - DATABASE_HOST: [this.dbStack.rdsConnectionSecretArn, 'host'], - DATABASE_PORT: [this.dbStack.rdsConnectionSecretArn, 'to_string(port)'], - DATABASE_NAME: [this.dbStack.rdsConnectionSecretArn, 'dbname'], - DATABASE_USER: [this.dbStack.rdsConnectionSecretArn, 'username'], - DATABASE_PASSWORD: [this.dbStack.rdsConnectionSecretArn, 'password'], - GOOGLE_TRANSLATE_API_KEY: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/Api/GoogleTranslateApiKey-MCdqWJ', - ], - GRAPHQL_OPAQUE_SCALAR_SECRET: [arns.graphqlOpaqueScalarSecret], - SLACK_APP_BEARER_TOKEN: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/SlackService-UH2lqy', - 'bearer_token', - ], - } as const; - - // For now, only install the Datadog agent on the prod cluster, - // which'll totally disable Datadog on staging + demo etc. - // Until we actually use those environments for something useful - // (like load testing), we don't want to waste money monitoring them. - const ddStack = props.enableDatadog - ? new DatadogStack(this, 'DatadogStack', { - clusterAttributes, - datadogApiSecret: globalArns.datadogSecret, - stage: id, - datadogRedisSecret: arns.datadogRedisSecret, - scyllaSecret: arns.scyllaSecret, - tracingSamplingPercentage: props.tracingSamplingPercentage, - }) - : undefined; - - const statefulResourceRemovalPolicy = props.deleteStatefulResources - ? RemovalPolicy.DESTROY - : RemovalPolicy.RETAIN; - - if (id === 'Prod') { - new RedirectStack(this, 'RedirectsStack', {}); - } - - const uiUrl = `https://${fullyQualifiedDomainName}`; - - new ContentProxyStack(this, 'ContentProxyStack', { - clusterAttributes, - namespace: clusterStack.namespaceName, - hostedZoneId: getCoopHostedZoneId, - zoneName: getCoopDomainName, - environment: id, - subdomain: subdomainName, - }); - - - // NB: do not rename this from 'BackendStack', as it was deployed previously - // w/ that name, and changing it will break a bunch of stuff, per CDK's - // normal issues with logical id changes. - const apiStack = new ApiStack(this, 'BackendStack', { - env: props?.env, - namespaceName: clusterStack.namespaceName, - clusterAttributes, - enableDatadog: props.enableDatadog, - stage: id, - statefulResourceRemovalPolicy, - secrets, - // Needed to avoid occasional image tag conflicts between the api and - // worker images. By default the image tag is based off the asset hash - // which I'm guessing is the same between the two because they share the - // same dockerfile and hence docker context. That being said, if that is - // the case I'm not sure why the conflict isn't consistent. - synthesizer: new cdk.DefaultStackSynthesizer({ - dockerTagPrefix: `${id}-api-`, - }), - rdsReadOnlyClusterHost, - apiGateway: { - apiName: `Coop ${id} API`, - usagePlans: [ - { - id: 'pilot-customer-plan', - name: 'Pilot User Plan', - description: 'This plan rate limits pilot customers', - // These limits work for customers with ~500k requests/day (see - // comment below re typical peak period multiples) _OR_ customers - // that have ~1million reqs/day but that use a queue to slow down - // their requests to us at peak times. - throttle: { burstLimit: 144, rateLimit: 72 }, - quota: { limit: 2_500_000, period: Period.DAY }, - }, - { - id: 'Medium-customer-plan', - name: 'Medium User Plan', - description: - 'This plan rate limits medium customers, on the order of 10M requests/day', - // If a user averages 10m requests per day, they could very well - // have peak hours with much more usage. Looking at our current - // customers, e.g., we see 30s intervals in which they send 12x more - // requests/s than their daily average (and 60s intervals where they - // send 11x). So, we make this limit equivalent to 150m reqs/day. - throttle: { rateLimit: 1750, burstLimit: 2625 }, - quota: { limit: 25_000_000, period: Period.DAY }, - }, - { - id: 'Large-customer-plan', - name: 'Large User Plan', - description: - 'This plan rate limits large customers, on the order of 80M requests/day', - // If a user averages 80m requests per day, they could very well - // have peak hours with much more usage. Looking at our current - // customers, e.g., we see 30s intervals in which they send 2x more - // requests/s than their daily average (and 60s intervals where they - // send 11x). So, we make this limit equivalent to 300m reqs/day. - throttle: { rateLimit: 3500, burstLimit: 5000 }, - quota: { limit: 200_000_000, period: Period.DAY }, - }, - ], - routes: props.routes, - }, - monitoringAlertsTopicArn: highUrgencyAlarmsTopicArn, - provisionProdLevelsOfCompute: props.provisionProdLevelsOfCompute, - sendRolloutFailuresToOpsGenie: props.enableOpsGenie, - rolloutNotificationsSlackChannel: props.rolloutNotificationsSlackChannel, - uiUrl, - }); - // The ApiStack contains k8s custom resources from datadog - if (ddStack) { - apiStack.addDependency(ddStack); - } - - new CloudfrontStack(this, 'CloudfrontStack', { - restApi: apiStack.coopApiGateway.restApi, - stage: id, - provisionProdLevelsOfCompute: props.provisionProdLevelsOfCompute, - deleteStatefulResources: props.deleteStatefulResources, - domain: { - domainName: fullyQualifiedDomainName, - hostedZoneId: getCoopHostedZoneId, - certificateArn: - 'arn:aws:acm:us-east-1:361188080279:certificate/524cc562-011e-4470-84ac-e14563771e11', - }, - vpc, - otelCollectorUrl: clusterStack.otelCollectorUrl, - }); - - new JobsAndWorkersStack(this, 'WorkersStack', { - env: props.env, - stage: id, - uiUrl, - namespaceName: clusterStack.namespaceName, - // Needed to avoid occasional image tag conflicts between the api and - // worker images. By default the image tag is based off the asset hash - // which I'm guessing is the same between the two because they share the - // same dockerfile and hence docker context. That being said, if that is - // the case I'm not sure why the conflict isn't consistent. - synthesizer: new cdk.DefaultStackSynthesizer({ - dockerTagPrefix: `${id}-worker-`, - }), - clusterAttributes, - secrets, - rdsReadOnlyClusterHost, - provisionProdLevelsOfCompute, - enableDatadog: props.enableDatadog, - }); - } -} diff --git a/.devops/aws/src/stacks/arc.ts b/.devops/aws/src/stacks/arc.ts deleted file mode 100644 index f4100b3..0000000 --- a/.devops/aws/src/stacks/arc.ts +++ /dev/null @@ -1,359 +0,0 @@ -import * as cdk from 'aws-cdk-lib'; -import { Vpc } from 'aws-cdk-lib/aws-ec2'; -import type { Construct } from 'constructs'; - -import { makeKubectlVersionProps } from '../constants.js'; -import { clusterFromAttributes } from '../constructs/clusterFromAttributes.js'; -import type { DeploymentEnvironmentName } from './app_pipeline.js'; -import type { K8sOutputs } from './k8s_cluster.js'; -import type { VpcOutputs } from './vpc.js'; - -type GitHubActionsRunnerControllerStackProps = cdk.StackProps & { - k8sOutputs: K8sOutputs; - coopEnv: DeploymentEnvironmentName; - vpcOutputs: VpcOutputs; - githubAppPrivateKey: string; -}; - -export class GitHubActionsRunnerControllerStack extends cdk.Stack { - constructor( - scope: Construct, - id: string, - props: GitHubActionsRunnerControllerStackProps, - ) { - super(scope, id, props); - const { vpcOutputs, k8sOutputs } = props; - const vpc = Vpc.fromVpcAttributes(this, `ClusterVpc`, { - vpcId: vpcOutputs.vpcId.importValue, - availabilityZones: cdk.Token.asList( - cdk.Fn.split(',', vpcOutputs.vpcAzs.importValue), - ), - privateSubnetIds: vpcOutputs.vpcPrivateSubnetIds.map( - (it) => it.importValue, - ), - }); - - const env = props.coopEnv.toLowerCase(); - - const cluster = clusterFromAttributes(this, 'Cluster', { - clusterName: k8sOutputs.clusterName.importValue, - kubectlRoleArn: k8sOutputs.kubectlRoleArn.importValue, - openIdConnectProviderArn: k8sOutputs.openIdConnectProviderArn.importValue, - kubectlLambdaRoleArn: k8sOutputs.kubectlLambdaRoleArn.importValue, - kubectlSecurityGroupId: k8sOutputs.kubectlSecurityGroupId.importValue, - clusterEndpoint: k8sOutputs.clusterEndpoint.importValue, - vpc, - ...makeKubectlVersionProps(this), - }); - - const namespace = cluster.addManifest('arc-runners-namespace', { - apiVersion: 'v1', - kind: 'Namespace', - metadata: { - name: 'arc-runners', - }, - }); - - const pvc = cluster.addManifest('pvc', { - apiVersion: 'v1', - kind: 'PersistentVolumeClaim', - metadata: { - name: 'arc-runner-0', - namespace: 'arc-runners', - }, - spec: { - accessModes: ['ReadWriteOnce'], - // This is the default EBS backed storage class in EKS. - storageClassName: 'gp2', - resources: { - requests: { - // The models service assets require a lot of storage. I tried 50Gi - // but I ran out of space. Note that you can only increase the size - // of an EBS volume once every 6 hours. - storage: '200Gi', - }, - }, - }, - }); - - pvc.node.addDependency(namespace); - - const daemonJsonConfigMap = cluster.addManifest('DaemonJsonConfigMap', { - apiVersion: 'v1', - kind: 'ConfigMap', - metadata: { - name: 'gha-runner-daemon-config', - namespace: 'arc-runners', - }, - data: { - 'daemon.json': JSON.stringify({ - builder: { - gc: { - enabled: true, - defaultKeepStorage: '50GB', - policy: [ - { keepStorage: '50GB', filter: ['unused-for=720h'] }, - { keepStorage: '100GB', all: true }, - ], - }, - }, - }), - }, - }); - - daemonJsonConfigMap.node.addDependency(namespace); - - const ghaRunnerScaleSetController = cluster.addHelmChart( - 'GitHubActionsRunnerController', - { - chart: 'gha-runner-scale-set-controller', - release: 'arc', - namespace: 'arc-systems', - createNamespace: true, - repository: - 'oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller', - version: '0.9.3', - values: { - flags: { - logLevel: 'warn', - logFormat: 'json', - }, - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/actions/gha-runner-scale-set-controller', - }, - }, - }, - ); - - const ghaRunnerScaleSet = cluster.addHelmChart( - 'GitHubActionsRunnerControllerScaleSet', - { - chart: 'gha-runner-scale-set', - release: 'arc-runner-set', - repository: - 'oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set', - version: '0.9.3', - namespace: 'arc-runners', - values: { - githubConfigUrl: 'https://github.com/roostorg/coop', - githubConfigSecret: { - github_app_id: '931217', - github_app_installation_id: '52237450', - github_app_private_key: props.githubAppPrivateKey, - }, - maxRunners: 1, - minRunners: 1, - // This is the label to be referenced by the GHA template in order to - // select the agent - runnerScaleSetName: `arc-runner-set-${env}`, - // most of the template was ripped from the helm chart comments. I - // chose not to use DinD container mode since that is intended for GHA - // container jobs (which we are not using) and I had to customize it - // anyway. - // https://github.com/actions/actions-runner-controller/blob/master/charts/gha-runner-scale-set/values.yaml#L110-L158 - template: { - spec: { - initContainers: [ - { - name: 'init-dind-externals', - image: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/actions/actions-runner:latest', - command: [ - 'cp', - '-r', - '-v', - '/home/runner/externals/.', - '/home/runner/tmpDir/', - ], - volumeMounts: [ - { - name: 'dind-externals', - mountPath: '/home/runner/tmpDir', - }, - ], - }, - // When we mount a volume onto the .npm directory, it changes - // the owner to root which causes npm to throw an error so we - // change it back. - { - name: 'fix-npm-cache-permissions', - image: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ecr-public/docker/library/busybox', - command: ['sh', '-c', 'chown -R 1001:1001 /home/runner/.npm'], - volumeMounts: [ - { - name: 'arc-runner-data', - mountPath: '/home/runner/.npm', - subPath: 'npm', - }, - ], - }, - // We are running Docker in Docker (DinD) - { - name: 'dind', - image: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ecr-public/docker/library/docker:dind', - args: [ - 'dockerd', - '--host=unix:///var/run/docker.sock', - '--group=$(DOCKER_GROUP_GID)', - ], - env: [ - { - name: 'DOCKER_GROUP_GID', - value: '123', - }, - ], - // Setting 'restartPolicy: Always' on an initContainer is the canonical way to - // run sidecars in Kubernetes. - restartPolicy: 'Always', - securityContext: { - privileged: true, - }, - volumeMounts: [ - { - name: 'work', - mountPath: '/home/runner/_work', - }, - { - name: 'dind-sock', - mountPath: '/var/run', - }, - { - name: 'dind-externals', - mountPath: '/home/runner/externals', - }, - // Persist the Docker cache - { - name: 'arc-runner-data', - mountPath: '/var/lib/docker', - subPath: 'docker', - }, - { - name: 'daemon-json-config', - mountPath: '/etc/docker/daemon.json', - subPath: 'daemon.json', - }, - ], - // https://github.com/actions/actions-runner-controller/issues/3201#issuecomment-1960800657 - preStop: { - exec: { - command: [ - '/bin/sh', - '-c', - "sleep 5; while grep -q running /home/runner/_work/.runner-state; do echo 'main container has work, sleeping...' >/proc/1/fd/1 2>&1; sleep 3; done; echo 'Did not find running runner. Stopping' >/proc/1/fd/1 2>&1", - ], - }, - }, - }, - { - name: 'docker-gc', - image: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ecr-public/docker/library/docker:cli', - command: [ - '/bin/sh', - '-c', - 'docker image prune --all --filter "until=48h" --force', - ], - env: [ - { - name: 'DOCKER_HOST', - value: 'unix:///var/run/docker.sock', - }, - ], - volumeMounts: [ - { - name: 'dind-sock', - mountPath: '/var/run', - }, - ], - }, - ], - containers: [ - { - name: 'runner', - image: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/actions/actions-runner:latest', - command: ['/home/runner/run.sh'], - env: [ - { - name: 'DOCKER_HOST', - value: 'unix:///var/run/docker.sock', - }, - ], - // We set requests but not limits to ensure a minimum level of - // service without limiting us from using available resources. - resources: { - requests: { - cpu: '1', - memory: '2Gi', - }, - }, - volumeMounts: [ - { - name: 'work', - mountPath: '/home/runner/_work', - }, - { - name: 'dind-sock', - mountPath: '/var/run', - }, - // Persist the npm cache - { - name: 'arc-runner-data', - mountPath: '/home/runner/.npm', - subPath: 'npm', - }, - ], - preStop: { - exec: { - command: [ - '/bin/sh', - '-c', - "echo running > /home/runner/_work/.runner-state; while pgrep Runner.Worker; do echo 'worker process found, sleeping' >/proc/1/fd/1 2>&1; sleep 3; done; rm /home/runner/_work/.runner-state; echo 'Done, removed /home/runner/_work/.runner-state (or never started)' >/proc/1/fd/1 2>&1", - ], - }, - }, - }, - ], - volumes: [ - { - name: 'work', - emptyDir: {}, - }, - { - name: 'dind-sock', - emptyDir: {}, - }, - { - name: 'dind-externals', - emptyDir: {}, - }, - { - name: 'arc-runner-data', - persistentVolumeClaim: { - claimName: 'arc-runner-0', - }, - }, - { - name: 'daemon-json-config', - configMap: { - name: 'gha-runner-daemon-config', - items: [{ key: 'daemon.json', path: 'daemon.json' }], - }, - }, - ], - }, - }, - controllerServiceAccount: { - namespace: 'arc-systems', - name: 'arc-gha-rs-controller', - }, - }, - }, - ); - ghaRunnerScaleSet.node.addDependency(pvc); - ghaRunnerScaleSet.node.addDependency(ghaRunnerScaleSetController); - } -} diff --git a/.devops/aws/src/stacks/cloudfront/cloudfront.ts b/.devops/aws/src/stacks/cloudfront/cloudfront.ts deleted file mode 100644 index f0aad7e..0000000 --- a/.devops/aws/src/stacks/cloudfront/cloudfront.ts +++ /dev/null @@ -1,287 +0,0 @@ -import path from 'path'; -import { fileURLToPath } from 'url'; -import { Stack, StackProps } from 'aws-cdk-lib'; -import * as cdk from 'aws-cdk-lib'; -import { RestApi } from 'aws-cdk-lib/aws-apigateway'; -import { Certificate } from 'aws-cdk-lib/aws-certificatemanager'; -import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; -import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; -import type { IVpc } from 'aws-cdk-lib/aws-ec2'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import * as lambda from 'aws-cdk-lib/aws-lambda'; -import { Code, Runtime } from 'aws-cdk-lib/aws-lambda'; -import { RetentionDays } from 'aws-cdk-lib/aws-logs'; -import * as route53 from 'aws-cdk-lib/aws-route53'; -import * as route53Targets from 'aws-cdk-lib/aws-route53-targets'; -import * as s3 from 'aws-cdk-lib/aws-s3'; -import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'; -import { Construct } from 'constructs'; - -import { repoRootDir } from '../../constants.js'; -import { DeploymentEnvironmentName } from '../app_pipeline.js'; - -type Domain = { - certificateArn: string; - domainName: string; - hostedZoneId: string; -}; - -type CloudfrontStackProps = StackProps & { - restApi: RestApi; - provisionProdLevelsOfCompute: boolean; - stage: DeploymentEnvironmentName; - deleteStatefulResources: boolean; - domain: Domain; - vpc: IVpc; - otelCollectorUrl: string; -}; - -export class CloudfrontStack extends Stack { - constructor(scope: Construct, id: string, props: CloudfrontStackProps) { - super(scope, id, props); - - const uiLoggingBucket = new s3.Bucket(this, 'LoggingBucket', { - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - accessControl: s3.BucketAccessControl.LOG_DELIVERY_WRITE, - encryption: s3.BucketEncryption.S3_MANAGED, - lifecycleRules: [ - { - expiration: cdk.Duration.days(1), - }, - ], - autoDeleteObjects: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - - const uiCodeBucket = new s3.Bucket(this, 'CodeBucket', { - publicReadAccess: false, - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - serverAccessLogsBucket: uiLoggingBucket, - serverAccessLogsPrefix: 's3-access-logs', - encryption: s3.BucketEncryption.S3_MANAGED, - autoDeleteObjects: props.deleteStatefulResources, - removalPolicy: props.deleteStatefulResources - ? cdk.RemovalPolicy.DESTROY - : cdk.RemovalPolicy.RETAIN, - }); - - // Ideally, this statement would live in the cloudfront stack and the policy - // statement would be scoped to the cloudfront distribution in front of it. - // However, there is a cdk limitation where if we were to do that it would - // introduce a circular dependency between the UI and cloudfront stacks. - // This is because we suspect cdk lifts the addToResourcePolicy method into - // the stack which creates the bucket so that it can compose the policy at - // bucket creation time. As a workaround, we have moved the statement into - // this stack and removed the distribution Id to produce an iam policy that - // at least restricts access to any cloudfront distro as opposed to - // allowing full public access - uiCodeBucket.addToResourcePolicy( - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['s3:GetObject', 's3:ListBucket'], - resources: [`${uiCodeBucket.bucketArn}/*`, uiCodeBucket.bucketArn], - principals: [new iam.ServicePrincipal('cloudfront.amazonaws.com')], - }), - ); - - const edgeLambda = new cloudfront.experimental.EdgeFunction( - this, - 'RedirectLambda', - { - runtime: Runtime.NODEJS_24_X, - code: Code.fromAsset( - path.join(path.dirname(fileURLToPath(import.meta.url)), './redirect'), - ), - handler: 'redirectEdgeLambda.handler', - }, - ); - - const cachePolicy = new cloudfront.CachePolicy( - this, - `${props.stage}ApiCachePolicy`, - { - cachePolicyName: `${props.stage}ApiGatewayCachePolicy`, - cookieBehavior: cloudfront.CacheCookieBehavior.all(), - enableAcceptEncodingBrotli: true, - enableAcceptEncodingGzip: true, - defaultTtl: cdk.Duration.days(0), - // cache by org - headerBehavior: cloudfront.CacheHeaderBehavior.allowList('x-api-key'), - }, - ); - - const coopDistribution = new CoopCloudfrontDistribution( - this, - `${props.domain.domainName}CloudfrontDistro`, - { - ...props, - uiCodeBucket, - uiLoggingBucket, - edgeLambda, - cachePolicy, - }, - ); - - // Deploy the SPA content to the S3 bucket. This is in this stack because it - // has a dependency on the cloudfront distribution in order to invalidate - // the cache - new s3deploy.BucketDeployment(this, 'SpaDeployment', { - distribution: coopDistribution.distribution, - sources: [ - s3deploy.Source.asset('../../client', { - ignoreMode: cdk.IgnoreMode.DOCKER, - bundling: { - image: cdk.DockerImage.fromBuild(`${repoRootDir}/client`, { - buildArgs: { - VITE_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: - props.otelCollectorUrl, - }, - }), - user: 'root', - command: ['bash', '-c', 'cp -r /app/build/* /asset-output'], - }, - }), - ], - - destinationBucket: uiCodeBucket, - logRetention: RetentionDays.ONE_WEEK, - memoryLimit: 1024, - // the bundle is so large that I enabled EFS so the lambda doesn't run out - // of disk space - useEfs: true, - vpc: props.vpc, - }); - } -} - -type CoopCloudfrontDistributionProps = { - stage: string; - provisionProdLevelsOfCompute: boolean; - uiCodeBucket: s3.IBucket; - uiLoggingBucket: s3.IBucket; - restApi: RestApi; - edgeLambda: lambda.IVersion; - cachePolicy: cloudfront.CachePolicy; - domain: Domain; -}; - -class CoopCloudfrontDistribution extends Construct { - public readonly distribution: cloudfront.Distribution; - constructor( - scope: Construct, - name: string, - props: CoopCloudfrontDistributionProps, - ) { - super(scope, name); - const { - uiCodeBucket, - provisionProdLevelsOfCompute, - uiLoggingBucket, - edgeLambda, - domain: { domainName }, - cachePolicy, - } = props; - const cloudfrontOac = new cloudfront.CfnOriginAccessControl( - this, - `${domainName}CloudFrontOAC`, - { - originAccessControlConfig: { - name: `${props.stage}-${domainName}-ui-oai`, - originAccessControlOriginType: 's3', - signingBehavior: 'always', - signingProtocol: 'sigv4', - description: 'OAI for S3 Bucket hosting our UI static assets.', - }, - }, - ); - - const cfDistribution = new cloudfront.Distribution( - this, - `${domainName}CloudFrontDistribution`, - { - domainNames: [domainName], - certificate: Certificate.fromCertificateArn( - this, - `${domainName}-ssl-cert`, - props.domain.certificateArn, - ), - priceClass: provisionProdLevelsOfCompute - ? cloudfront.PriceClass.PRICE_CLASS_ALL - : cloudfront.PriceClass.PRICE_CLASS_100, - defaultBehavior: { - allowedMethods: cloudfront.AllowedMethods.ALLOW_GET_HEAD_OPTIONS, - originRequestPolicy: cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN, - viewerProtocolPolicy: - cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS, - edgeLambdas: [ - { - functionVersion: edgeLambda, - eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST, - }, - ], - origin: new origins.S3Origin(uiCodeBucket, { - originId: 's3-static-frontend', - }), - }, - defaultRootObject: 'index.html', - logBucket: uiLoggingBucket, - }, - ); - - const cfCfnDistribution = cfDistribution.node - .defaultChild as cloudfront.CfnDistribution; - - cfCfnDistribution.addPropertyOverride( - 'DistributionConfig.Origins.0.OriginAccessControlId', - cloudfrontOac.getAtt('Id'), - ); - cfCfnDistribution.addPropertyOverride( - 'DistributionConfig.Origins.0.S3OriginConfig.OriginAccessIdentity', - '', - ); - - cfDistribution.addBehavior( - 'api/*', - new origins.RestApiOrigin(props.restApi, {}), - { - allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL, - compress: true, - cachePolicy, - }, - ); - - const zone = route53.HostedZone.fromHostedZoneAttributes( - this, - `${domainName}-zone`, - { hostedZoneId: props.domain.hostedZoneId, zoneName: domainName }, - ); - - new route53.ARecord(this, `${domainName}-alias`, { - zone, - target: route53.RecordTarget.fromAlias( - new route53Targets.CloudFrontTarget(cfDistribution), - ), - // * You can specify the fully qualified domain name which terminates with a - // * ".". For example, "acme.example.com.". - recordName: `${domainName}.`, - // https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53-readme.html#replacing-existing-record-sets-dangerous - // We are adding this resource in the same commit that we remove the record that points to API Gateway - deleteExisting: true, - }); - - new route53.AaaaRecord(this, `${domainName}-aaaa-record`, { - zone, - target: route53.RecordTarget.fromAlias( - new route53Targets.CloudFrontTarget(cfDistribution), - ), - // * You can specify the fully qualified domain name which terminates with a - // * ".". For example, "acme.example.com.". - recordName: `${domainName}.`, - // https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53-readme.html#replacing-existing-record-sets-dangerous - // We are adding this resource in the same commit that we remove the record that points to API Gateway - deleteExisting: true, - }); - - this.distribution = cfDistribution; - } -} diff --git a/.devops/aws/src/stacks/content-proxy.ts b/.devops/aws/src/stacks/content-proxy.ts deleted file mode 100644 index 6f5ca24..0000000 --- a/.devops/aws/src/stacks/content-proxy.ts +++ /dev/null @@ -1,150 +0,0 @@ -import * as cdk from 'aws-cdk-lib'; -import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets'; -import { KubernetesObjectValue } from 'aws-cdk-lib/aws-eks'; -import * as route53 from 'aws-cdk-lib/aws-route53'; -import { Asset } from 'aws-cdk-lib/aws-s3-assets'; -import type { Construct } from 'constructs'; - -import { makeKubectlVersionProps } from '../constants.js'; -import { - clusterFromAttributes, - type VersionAgnosticClusterAttributes, -} from '../constructs/clusterFromAttributes.js'; -import { KubernetesSecretsIntegration } from '../constructs/KubernetesSecretsIntegration.js'; -import { - getInstrumentationPodAnnotations, - getTracingEnvVars, -} from '../utils.js'; -import type { DeploymentEnvironmentName } from './app_pipeline.js'; - -type ContentProxyStackProps = cdk.StackProps & { - readonly clusterAttributes: VersionAgnosticClusterAttributes; - namespace: string; - zoneName: string; - hostedZoneId: string; - subdomain?: string; - environment: DeploymentEnvironmentName; -}; - -export class ContentProxyStack extends cdk.Stack { - constructor(scope: Construct, id: string, props: ContentProxyStackProps) { - super(scope, id, props); - - const { - clusterAttributes, - namespace, - hostedZoneId, - subdomain, - zoneName, - environment, - } = props; - - const cluster = clusterFromAttributes(this, 'BackendCluster', { - ...clusterAttributes, - ...makeKubectlVersionProps(this), - }); - - const dockerImageAsset = new DockerImageAsset(this, 'content-proxy-image', { - directory: '../../content-proxy', - platform: Platform.LINUX_AMD64, - }); - - const fullyQualifiedDomain = subdomain - ? `content-${subdomain}.${zoneName}` - : `content.${zoneName}`; - - const zone = route53.HostedZone.fromHostedZoneAttributes( - this, - `${fullyQualifiedDomain}-zone`, - { hostedZoneId, zoneName }, - ); - - const secretsIntegration = new KubernetesSecretsIntegration( - this, - 'content-proxy-secrets', - { - cluster, - namespace, - secrets: { - GOOGLE_TRANSLATE_API_KEY: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:prod/notionProxy/googleTranslate-vYzPOb', - 'apiKey', - ], - }, - }, - ); - - const chartAsset = new Asset(this, 'chart', { - path: '../charts/app', - }); - const release = 'content-proxy'; - const port = 4000; - const values = secretsIntegration.injectSecretsIntoCoopAppChart({ - image: { - repository: dockerImageAsset.repository.repositoryUri, - tag: dockerImageAsset.imageTag, - }, - ingress: { - enabled: true, - className: 'alb', - annotations: { - 'alb.ingress.kubernetes.io/target-type': 'ip', - 'alb.ingress.kubernetes.io/healthcheck-path': '/api/v1/ready', - 'alb.ingress.kubernetes.io/scheme': 'internet-facing', - 'alb.ingress.kubernetes.io/certificate-arn': - 'arn:aws:acm:us-east-2:361188080279:certificate/424a3a55-72a3-42ee-8b4d-fb5f44c20d64', - }, - hosts: [ - { - host: fullyQualifiedDomain, - paths: [ - { - path: '/', - pathType: 'Prefix', - }, - ], - }, - ], - }, - env: [ - ...getTracingEnvVars(release, environment), - { name: 'DD_VERSION', value: dockerImageAsset.imageTag }, - { name: 'PORT', value: port.toString() }, - { name: 'CONTENT_BASE_URL', value: 'https://www.example.com' }, - ], - service: { - port, - }, - podAnnotations: { - ...getInstrumentationPodAnnotations('app'), - }, - }); - - // Deploy the Helm chart - const helmChart = cluster.addHelmChart('helmchart', { - chartAsset, - release, - namespace, - values, - }); - - const albHostNameName = new KubernetesObjectValue( - this, - 'content-alb-domain-name', - { - cluster, - objectType: 'ingress', - objectNamespace: namespace, - objectName: `${release}-app`, - jsonPath: '.status.loadBalancer.ingress[0].hostname', - }, - ); - albHostNameName.node.addDependency(helmChart); - - new route53.CnameRecord(this, `${fullyQualifiedDomain}-alias`, { - recordName: fullyQualifiedDomain, - zone, - domainName: albHostNameName.value, - }); - } -} diff --git a/.devops/aws/src/stacks/datadog.ts b/.devops/aws/src/stacks/datadog.ts deleted file mode 100644 index 43d4024..0000000 --- a/.devops/aws/src/stacks/datadog.ts +++ /dev/null @@ -1,857 +0,0 @@ -import { CfnJson, Stack, StackProps } from 'aws-cdk-lib'; -import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import { App as Cdk8sApp } from 'cdk8s'; -import { Construct } from 'constructs'; -import jsonToPrettyYaml from 'json-to-pretty-yaml'; - -import { jsonStringify } from '../../../../server/utils/encoding.js'; -import { makeKubectlVersionProps } from '../constants.js'; -import { - clusterFromAttributes, - VersionAgnosticClusterAttributes, -} from '../constructs/clusterFromAttributes.js'; -import { toKubernetesName } from '../utils.js'; -import { type DeploymentEnvironmentName } from './app_pipeline.js'; -import { Namespace } from './k8s_cluster.js'; - -type ApiStackProps = StackProps & { - clusterAttributes: VersionAgnosticClusterAttributes; - datadogApiSecret: string; // currently unused - stage: DeploymentEnvironmentName; - datadogRedisSecret: string; - scyllaSecret: string; - tracingSamplingPercentage: string; -}; - -/** - * A stack representing the Datadog agent. - * - * NB: we also have a stack called DatadogIntegration, which is used to create - * various roles etc to give Datadog permission to pull our CloudWatch alarms, - * custom metrics, etc. However, that stack was created manually through the - * AWS Control Panel, using a Datadog-provided CFN template. - */ -export class DatadogStack extends Stack { - constructor(scope: Construct, id: string, props: ApiStackProps) { - const { clusterAttributes, stage, ...stackProps } = props; - - super(scope, id, stackProps); - - const namespaceName = 'datadog'; - const cluster = clusterFromAttributes(this, 'K8sCluster', { - ...clusterAttributes, - ...makeKubectlVersionProps(this), - }); - - const namespace = cluster.addCdk8sChart( - 'ns', - new Namespace(new Cdk8sApp(), 'ns', { name: namespaceName }), - // @ts-ignore The types are wrong here; they specify that the overwrite - // property isn't allowed, but it's actually passed through and works as - // expected (see KubernetesManifestProps). - { overwrite: true }, - ); - - const releaseName = toKubernetesName(`datadog-agent-0-${stage}`); - - // We are creating this role in order to grant the - // datadog-agent-0-prod-cluster-agent service account (created by the helm - // chart) access to secrets in AWS Secrets Manager We are doing this instead - // of creating our own service account, because there is no easy way to - // integrate it with the other resources in the helm chart without disabling - // all other rbac resources (e.g. roles, role bindings) - const role = new iam.Role(this, 'datadog-role', { - // this policy was copied from an existing Role that was created - // automatically by using the cluster.addServiceAccount() method - assumedBy: new iam.FederatedPrincipal( - cluster.openIdConnectProvider.openIdConnectProviderArn, - { - // we have to use CfnJson since this oidc arn resolves at deploy time - StringEquals: new CfnJson(this, 'ConditionJson', { - value: { - // datadog-agent-0-prod-cluster-agent is set in the helm chart - [`${cluster.openIdConnectProvider.openIdConnectProviderIssuer}:sub`]: `system:serviceaccount:${namespaceName}:${releaseName}-cluster-agent`, - [`${cluster.openIdConnectProvider.openIdConnectProviderIssuer}:aud`]: - 'sts.amazonaws.com', - }, - }), - }, - 'sts:AssumeRoleWithWebIdentity', - ), - }); - - role.addToPrincipalPolicy( - new PolicyStatement({ - effect: Effect.ALLOW, - actions: [ - 'secretsmanager:GetSecretValue', - 'secretsmanager:DescribeSecret', - ], - resources: [props.datadogRedisSecret, props.scyllaSecret], - }), - ); - - // Copied from - // https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/metapackages/auto-instrumentations-node/src/utils.ts#L105 - // Used to rename span operations for visibility in the UI. Update - // periodically/as needed. - const otelNodeInstrumentationPackageNames = [ - '@opentelemetry/instrumentation-amqplib', - '@opentelemetry/instrumentation-aws-lambda', - '@opentelemetry/instrumentation-aws-sdk', - '@opentelemetry/instrumentation-bunyan', - '@opentelemetry/instrumentation-cassandra-driver', - '@opentelemetry/instrumentation-connect', - '@opentelemetry/instrumentation-cucumber', - '@opentelemetry/instrumentation-dataloader', - '@opentelemetry/instrumentation-dns', - '@opentelemetry/instrumentation-express', - '@opentelemetry/instrumentation-fastify', - '@opentelemetry/instrumentation-fs', - '@opentelemetry/instrumentation-generic-pool', - '@opentelemetry/instrumentation-graphql', - '@opentelemetry/instrumentation-grpc', - '@opentelemetry/instrumentation-hapi', - '@opentelemetry/instrumentation-http', - '@opentelemetry/instrumentation-ioredis', - '@opentelemetry/instrumentation-knex', - '@opentelemetry/instrumentation-koa', - '@opentelemetry/instrumentation-lru-memoizer', - '@opentelemetry/instrumentation-memcached', - '@opentelemetry/instrumentation-mongodb', - '@opentelemetry/instrumentation-mongoose', - '@opentelemetry/instrumentation-mysql2', - '@opentelemetry/instrumentation-mysql', - '@opentelemetry/instrumentation-nestjs-core', - '@opentelemetry/instrumentation-net', - '@opentelemetry/instrumentation-pg', - '@opentelemetry/instrumentation-pino', - '@opentelemetry/instrumentation-redis', - '@opentelemetry/instrumentation-redis-4', - '@opentelemetry/instrumentation-restify', - '@opentelemetry/instrumentation-router', - '@opentelemetry/instrumentation-socket.io', - '@opentelemetry/instrumentation-tedious', - '@opentelemetry/instrumentation-winston', - 'opentelemetry-instrumentation-undici', - ]; - - const otelSpanKinds = [ - 'server', - 'client', - 'internal', - 'producer', - 'consumer', - ]; - - const secretVolumeName = 'secret-volume'; - const datadogSecretsProviderName = 'datadog-secret-provider'; - const redisUsernameFilename = 'redis-username'; - const redisPasswordFilename = 'redis-password'; - const redisHostFilename = 'redis-host'; - const redisPortFilename = 'redis-port'; - const scyllaTokenFilename = 'scylla-token'; - const datadogSecretsProvider = cluster.addManifest( - 'datadog-secrets-provider', - { - apiVersion: 'secrets-store.csi.x-k8s.io/v1', - kind: 'SecretProviderClass', - metadata: { - name: datadogSecretsProviderName, - namespace: namespaceName, - }, - spec: { - provider: 'aws', - parameters: { - objects: jsonToPrettyYaml.stringify([ - { - objectName: props.datadogRedisSecret, - jmesPath: [ - { - path: 'username', - objectAlias: redisUsernameFilename, - }, - { - path: 'password', - objectAlias: redisPasswordFilename, - }, - { - path: 'hostname', - objectAlias: redisHostFilename, - }, - { - path: 'port', - objectAlias: redisPortFilename, - }, - ], - }, - { - objectName: props.scyllaSecret, - jmesPath: [ - { - path: 'token', - objectAlias: scyllaTokenFilename, - }, - ], - }, - ]), - }, - }, - }, - ); - - const secretsMountPath = '/etc/secrets'; - - const datadogAgent = cluster.addHelmChart('DatadogAgent', { - chart: 'datadog', - release: releaseName, - version: '3.67.3', - repository: 'https://helm.datadoghq.com', - namespace: 'datadog', - values: { - registry: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ecr-public/datadog', - // This should really be a secret manager secret reference, but that - // isn't supported yet. We could try to use our standard infrastructure - // for syncing secrets manager secrets into k8s secrets, as the chart - // can accept a k8s secret reference, but the Secrets Store CSI Driver - // doesn't support syncing to k8s secrets unless you have a running pod - // trying to mount the secret (which we don't yet here). We've got shit - // to do that's more important shit to do than build a custom resource - // provider (https://github.com/aws/aws-cdk/issues/16476), so... - datadog: { - appKey: 'bd4211bce8bd21c0d17df98a8b2bab967acae643', - apiKey: '4d394dffc4ef84960adc58460c0505c1', - site: 'datadoghq.com', // varies by datadog region - clusterName: stage.toLowerCase(), - checksCardinality: 'orchestrator', - logLevel: 'WARN', - ignoreAutoConfig: ['apache'], - logs: { - enabled: true, - containerCollectAll: true, - autoMultiLineDetection: true, - }, - // We have to send APM and metrics data (i.e., from dogstatsd) to the - // agent over a port, rather than a socket, even though the latter is - // much more efficient, because we're sending data to the OTLP - // endpoint over a port (with GRPC), and the cluster agent's - // admissions controller doesn't seem able to properly configure the - // pods to use a mix of sockets, with a port for OTLP. - apm: { - portEnabled: true, - }, - confd: { - 'linkerd.yaml': jsonToPrettyYaml.stringify({ - // ad_identifiers must be set to 'proxy' which I couldn't find in - // the docs but did find in this GitHub issue comment: - // https://github.com/DataDog/integrations-core/issues/4684#issuecomment-665998181. - ad_identifiers: ['proxy'], - init_config: {}, - instances: [ - { openmetrics_endpoint: 'http://%%host%%:4191/metrics' }, - ], - }), - }, - env: [ - { - name: 'DD_ENV', - value: stage.toLowerCase(), - }, - { - name: 'DD_OTLP_CONFIG_TRACES_PROBABILISTIC_SAMPLER_SAMPLING_PERCENTAGE', - value: props.tracingSamplingPercentage, - }, - { - name: 'DD_OTLP_CONFIG_METRICS_TAG_CARDINALITY', - value: 'orchestrator', - }, - { - name: 'DD_APM_ENABLE_RARE_SAMPLER', - value: 'true', - }, - { - name: 'DD_LOG_FORMAT_JSON', - value: 'true', - }, - ], - envDict: { - // We disable collection of arc runner logs since they are so - // verbose (and therefore costly) and the runner does not provide a - // way to adjust log levels. See: - // https://github.com/actions/runner/issues/3045 - DD_CONTAINER_EXCLUDE_LOGS: 'kube_namespace:^arc-runners$', - }, - dogstatsd: { - port: 8125, - useHostPort: true, - nonLocalTraffic: true, - }, - otlp: { - receiver: { - protocols: { - grpc: { - enabled: true, - }, - }, - }, - }, - secretBackend: { - command: '/readsecret_multiple_providers.sh', - }, - serviceMonitoring: { - enabled: true, - }, - }, - agents: { - containers: { - agent: { - env: [ - { - name: 'DD_LOGS_CONFIG_PROCESSING_RULES', - value: jsonStringify([ - { - type: 'exclude_at_match', - name: 'exclude_otel_end_on_span_once_error', - pattern: '.*You can only call end\\(\\) on a span once', - }, - { - type: 'exclude_at_match', - name: 'exclude_otel_execute_on_ended_span_error', - pattern: 'Can not execute the operation on ended Span.*', - }, - ]), - }, - ], - }, - traceAgent: { - env: [ - // OpenTelemetry has a concept of a span's name, which is - // supposed to describe the unit of work that the span is - // tracing, in a relatively low cardinality way that could be - // useful for aggregation. E.g., `GET /users/{id}` might be a - // span name or `DELETE FROM ORGS WHERE ID = ?`. Datadog, - // meanwhile, has an analogous concept called a "resource". - // However, DD also has a concept called an "operation". The - // idea is that multiple resources can support the same - // operation -- e.g., all your endpoints might support an - // `http.request` operation -- such that a span might have - // (operation, resource) tuple of (http.request, GET /users). - // Moreover, the idea is that it can be useful to have stats - // and various aggregate data by operation name. Otel doesn't - // have a concept analogous to an operation, but it does have - // something called SpanKind (see Otel docs) and, combining a - // span's SpanKind with the name of the instrumentation library - // that produced it can give a string that decently (though - // certainly not perfectly!) captures the DD idea of an - // operation. So, the DD agent does that concatenation to form - // the operation name. However, the instrumentation library - // strings are super long, so this leads to operation names in - // the DD UI that are actually too long to read (they get - // truncated). To fix this, we can tell DD to map the operation - // name it would've generated to one that's actually readable in - // the UI. That's what the code below does. - // See also https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/1909 - { - name: 'DD_OTLP_CONFIG_TRACES_SPAN_NAME_REMAPPINGS', - value: JSON.stringify( - Object.fromEntries( - otelSpanKinds.flatMap((spanKind) => - otelNodeInstrumentationPackageNames.map( - (packageName) => [ - `${packageName}.${spanKind}`, - `${packageName - .replace('@opentelemetry/instrumentation-', '') - .replace( - 'opentelemetry-instrumentation-', - '', - )}.${spanKind}`, - ], - ), - ), - ), - ), - }, - // TODO: too high/expensive? - { name: 'DD_APM_MAX_TPS', value: '100' }, - ], - }, - }, - tolerations: [ - // This should tolerate all taints. We use this so that we may - // collect logs on gpu nodes which are tainted. - { - operator: 'Exists', - }, - ], - }, - clusterAgent: { - admissionController: { - enabled: true, - // TODO: to save money, we might not want datadog to record all the - // logs from our various background/utility containers (e.g., the - // Datadog and cloudwatch agents, the load balancer controller, - // internal kubernetes dns, etc). In that case, we'd set this false - // and add the label: `admission.datadoghq.com/enabled=true` to any - // pods whose containers we do want tracked. See - mutateUnlabelled: true, - configMode: 'hostip', - }, - confd: { - 'redisdb.yaml': jsonToPrettyYaml.stringify({ - cluster_check: true, - instances: [ - { - host: `ENC[file@${secretsMountPath}/${redisHostFilename}]`, - port: `ENC[file@${secretsMountPath}/${redisPortFilename}]`, - username: `ENC[file@${secretsMountPath}/${redisUsernameFilename}]`, - password: `ENC[file@${secretsMountPath}/${redisPasswordFilename}]`, - ssl: true, - }, - ], - }), - 'scylla.yaml': jsonToPrettyYaml.stringify({ - cluster_check: true, - instances: [ - { - prometheus_url: - 'https://us-east-1.aws.metrics.cloud.scylladb.com/api/v1/cluster/15999/proxy/federate?match[]={job=~".*"}', - skip_proxy: true, // default here is false, but we want to connect to the server directly - headers: { - Authorization: `ENC[file@${secretsMountPath}/${scyllaTokenFilename}]`, - }, - label_to_hostname: 'instance', - log_requests: true, - // Type override allows you to override a type in the - // Prometheus payload or type an untyped metric (they’re - // ignored by default). these are all untyped from scylla's - // prometheus - // https://docs.datadoghq.com/integrations/scylla/#data-collected - type_overrides: { - scylla_alien_receive_batch_queue_length: 'gauge', - scylla_alien_total_received_messages: 'counter', - scylla_alien_total_sent_messages: 'counter', - scylla_batchlog_manager_total_write_replay_attempts: - 'counter', - scylla_cache_active_reads: 'gauge', - scylla_cache_bytes_total: 'gauge', - scylla_cache_bytes_used: 'gauge', - scylla_cache_concurrent_misses_same_key: 'counter', - scylla_cache_mispopulations: 'counter', - scylla_cache_partition_evictions: 'counter', - scylla_cache_partition_hits: 'counter', - scylla_cache_partition_insertions: 'counter', - scylla_cache_partition_merges: 'counter', - scylla_cache_partition_misses: 'counter', - scylla_cache_partition_removals: 'counter', - scylla_cache_partitions: 'gauge', - scylla_cache_pinned_dirty_memory_overload: 'counter', - scylla_cache_reads: 'counter', - scylla_cache_reads_with_misses: 'counter', - scylla_cache_row_evictions: 'counter', - scylla_cache_row_hits: 'counter', - scylla_cache_row_insertions: 'counter', - scylla_cache_row_misses: 'counter', - scylla_cache_row_removals: 'counter', - scylla_cache_rows: 'gauge', - scylla_cache_rows_dropped_from_memtable: 'counter', - scylla_cache_rows_merged_from_memtable: 'counter', - scylla_cache_rows_processed_from_memtable: 'counter', - scylla_cache_sstable_partition_skips: 'counter', - scylla_cache_sstable_reader_recreations: 'counter', - scylla_cache_sstable_row_skips: 'counter', - scylla_cache_static_row_insertions: 'counter', - scylla_commitlog_alloc: 'counter', - scylla_commitlog_allocating_segments: 'gauge', - scylla_commitlog_bytes_written: 'counter', - scylla_commitlog_cycle: 'counter', - scylla_commitlog_disk_total_bytes: 'gauge', - scylla_commitlog_flush: 'counter', - scylla_commitlog_flush_limit_exceeded: 'counter', - scylla_commitlog_memory_buffer_bytes: 'gauge', - scylla_commitlog_pending_allocations: 'gauge', - scylla_commitlog_pending_flushes: 'gauge', - scylla_commitlog_requests_blocked_memory: 'counter', - scylla_commitlog_segments: 'gauge', - scylla_commitlog_slack: 'counter', - scylla_commitlog_unused_segments: 'gauge', - scylla_compaction_manager_compactions: 'gauge', - scylla_cql_authorized_prepared_statements_cache_evictions: - 'counter', - scylla_cql_authorized_prepared_statements_cache_size: - 'gauge', - scylla_cql_batches: 'counter', - scylla_cql_batches_pure_logged: 'counter', - scylla_cql_batches_pure_unlogged: 'counter', - scylla_cql_batches_unlogged_from_logged: 'counter', - scylla_cql_deletes: 'counter', - scylla_cql_filtered_read_requests: 'counter', - scylla_cql_filtered_rows_dropped_total: 'counter', - scylla_cql_filtered_rows_matched_total: 'counter', - scylla_cql_filtered_rows_read_total: 'counter', - scylla_cql_inserts: 'counter', - scylla_cql_prepared_cache_evictions: 'counter', - scylla_cql_prepared_cache_memory_footprint: 'gauge', - scylla_cql_prepared_cache_size: 'gauge', - scylla_cql_reads: 'counter', - scylla_cql_reverse_queries: 'counter', - scylla_cql_rows_read: 'counter', - scylla_cql_secondary_index_creates: 'counter', - scylla_cql_secondary_index_drops: 'counter', - scylla_cql_secondary_index_reads: 'counter', - scylla_cql_secondary_index_rows_read: 'counter', - scylla_cql_statements_in_batches: 'counter', - scylla_cql_unpaged_select_queries: 'counter', - scylla_cql_updates: 'counter', - scylla_cql_user_prepared_auth_cache_footprint: 'gauge', - scylla_database_active_reads: 'gauge', - scylla_database_active_reads_memory_consumption: 'gauge', - scylla_database_clustering_filter_count: 'counter', - scylla_database_clustering_filter_fast_path_count: - 'counter', - scylla_database_clustering_filter_sstables_checked: - 'counter', - scylla_database_clustering_filter_surviving_sstables: - 'counter', - scylla_database_counter_cell_lock_acquisition: 'counter', - scylla_database_counter_cell_lock_pending: 'gauge', - scylla_database_dropped_view_updates: 'counter', - scylla_database_large_partition_exceeding_threshold: - 'counter', - scylla_database_multishard_query_failed_reader_saves: - 'counter', - scylla_database_multishard_query_failed_reader_stops: - 'counter', - scylla_database_multishard_query_unpopped_bytes: 'counter', - scylla_database_multishard_query_unpopped_fragments: - 'counter', - scylla_database_paused_reads: 'gauge', - scylla_database_paused_reads_permit_based_evictions: - 'counter', - scylla_database_querier_cache_drops: 'counter', - scylla_database_querier_cache_lookups: 'counter', - scylla_database_querier_cache_memory_based_evictions: - 'counter', - scylla_database_querier_cache_misses: 'counter', - scylla_database_querier_cache_population: 'gauge', - scylla_database_querier_cache_resource_based_evictions: - 'counter', - scylla_database_querier_cache_time_based_evictions: - 'counter', - scylla_database_queued_reads: 'gauge', - scylla_database_requests_blocked_memory: 'counter', - scylla_database_requests_blocked_memory_current: 'gauge', - scylla_database_short_data_queries: 'counter', - scylla_database_short_mutation_queries: 'counter', - scylla_database_sstable_read_queue_overloads: 'counter', - scylla_database_total_reads: 'counter', - scylla_database_total_reads_failed: 'counter', - scylla_database_total_result_bytes: 'gauge', - scylla_database_total_view_updates_failed_local: 'counter', - scylla_database_total_view_updates_failed_remote: 'counter', - scylla_database_total_view_updates_pushed_local: 'counter', - scylla_database_total_view_updates_pushed_remote: 'counter', - scylla_database_total_writes: 'counter', - scylla_database_total_writes_failed: 'counter', - scylla_database_total_writes_timedout: 'counter', - scylla_database_view_building_paused: 'counter', - scylla_database_view_update_backlog: 'counter', - scylla_execution_stages_function_calls_enqueued: 'counter', - scylla_execution_stages_function_calls_executed: 'counter', - scylla_execution_stages_tasks_preempted: 'counter', - scylla_execution_stages_tasks_scheduled: 'counter', - scylla_gossip_heart_beat: 'counter', - scylla_hints_for_views_manager_corrupted_files: 'counter', - scylla_hints_for_views_manager_discarded: 'counter', - scylla_hints_for_views_manager_dropped: 'counter', - scylla_hints_for_views_manager_errors: 'counter', - scylla_hints_for_views_manager_sent: 'counter', - scylla_hints_for_views_manager_size_of_hints_in_progress: - 'gauge', - scylla_hints_for_views_manager_written: 'counter', - scylla_hints_manager_corrupted_files: 'counter', - scylla_hints_manager_discarded: 'counter', - scylla_hints_manager_dropped: 'counter', - scylla_hints_manager_errors: 'counter', - scylla_hints_manager_sent: 'counter', - scylla_hints_manager_size_of_hints_in_progress: 'gauge', - scylla_hints_manager_written: 'counter', - scylla_httpd_connections_current: 'gauge', - scylla_httpd_connections_total: 'counter', - scylla_httpd_read_errors: 'counter', - scylla_httpd_reply_errors: 'counter', - scylla_httpd_requests_served: 'counter', - scylla_io_queue_delay: 'gauge', - scylla_io_queue_queue_length: 'gauge', - scylla_io_queue_shares: 'gauge', - scylla_io_queue_total_bytes: 'counter', - scylla_io_queue_total_operations: 'counter', - scylla_lsa_free_space: 'gauge', - scylla_lsa_large_objects_total_space_bytes: 'gauge', - scylla_lsa_memory_allocated: 'counter', - scylla_lsa_memory_compacted: 'counter', - scylla_lsa_non_lsa_used_space_bytes: 'gauge', - scylla_lsa_occupancy: 'gauge', - scylla_lsa_segments_compacted: 'counter', - scylla_lsa_segments_migrated: 'counter', - scylla_lsa_small_objects_total_space_bytes: 'gauge', - scylla_lsa_small_objects_used_space_bytes: 'gauge', - scylla_lsa_total_space_bytes: 'gauge', - scylla_lsa_used_space_bytes: 'gauge', - scylla_memory_allocated_memory: 'counter', - scylla_memory_cross_cpu_free_operations: 'counter', - scylla_memory_dirty_bytes: 'gauge', - scylla_memory_free_memory: 'counter', - scylla_memory_free_operations: 'counter', - scylla_memory_malloc_live_objects: 'gauge', - scylla_memory_malloc_operations: 'counter', - scylla_memory_reclaims_operations: 'counter', - scylla_memory_regular_dirty_bytes: 'gauge', - scylla_memory_regular_virtual_dirty_bytes: 'gauge', - scylla_memory_streaming_dirty_bytes: 'gauge', - scylla_memory_streaming_virtual_dirty_bytes: 'gauge', - scylla_memory_system_dirty_bytes: 'gauge', - scylla_memory_system_virtual_dirty_bytes: 'gauge', - scylla_memory_total_memory: 'counter', - scylla_memory_virtual_dirty_bytes: 'gauge', - scylla_memtables_pending_flushes: 'gauge', - scylla_memtables_pending_flushes_bytes: 'gauge', - scylla_node_operation_mode: 'gauge', - scylla_query_processor_queries: 'counter', - scylla_query_processor_statements_prepared: 'counter', - scylla_reactor_aio_bytes_read: 'counter', - scylla_reactor_aio_bytes_write: 'counter', - scylla_reactor_aio_errors: 'counter', - scylla_reactor_aio_reads: 'counter', - scylla_reactor_aio_writes: 'counter', - scylla_reactor_cpp_exceptions: 'counter', - scylla_reactor_cpu_busy_ms: 'counter', - scylla_reactor_cpu_steal_time_ms: 'counter', - scylla_reactor_fstream_read_bytes: 'counter', - scylla_reactor_fstream_read_bytes_blocked: 'counter', - scylla_reactor_fstream_reads: 'counter', - scylla_reactor_fstream_reads_ahead_bytes_discarded: - 'counter', - scylla_reactor_fstream_reads_aheads_discarded: 'counter', - scylla_reactor_fstream_reads_blocked: 'counter', - scylla_reactor_fsyncs: 'counter', - scylla_reactor_io_queue_requests: 'gauge', - scylla_reactor_io_threaded_fallbacks: 'counter', - scylla_reactor_logging_failures: 'counter', - scylla_reactor_polls: 'counter', - scylla_reactor_tasks_pending: 'gauge', - scylla_reactor_tasks_processed: 'counter', - scylla_reactor_timers_pending: 'counter', - scylla_reactor_utilization: 'gauge', - scylla_scheduler_queue_length: 'gauge', - scylla_scheduler_runtime_ms: 'counter', - scylla_scheduler_shares: 'gauge', - scylla_scheduler_tasks_processed: 'counter', - scylla_scheduler_time_spent_on_task_quota_violations_ms: - 'counter', - scylla_sstables_capped_local_deletion_time: 'counter', - scylla_sstables_capped_tombstone_deletion_time: 'counter', - scylla_sstables_cell_tombstone_writes: 'counter', - scylla_sstables_cell_writes: 'counter', - scylla_sstables_index_page_blocks: 'counter', - scylla_sstables_index_page_hits: 'counter', - scylla_sstables_index_page_misses: 'counter', - scylla_sstables_partition_reads: 'counter', - scylla_sstables_partition_seeks: 'counter', - scylla_sstables_partition_writes: 'counter', - scylla_sstables_range_partition_reads: 'counter', - scylla_sstables_range_tombstone_writes: 'counter', - scylla_sstables_row_reads: 'counter', - scylla_sstables_row_writes: 'counter', - scylla_sstables_single_partition_reads: 'counter', - scylla_sstables_sstable_partition_reads: 'counter', - scylla_sstables_static_row_writes: 'counter', - scylla_sstables_tombstone_writes: 'counter', - scylla_storage_proxy_coordinator_background_read_repairs: - 'counter', - scylla_storage_proxy_coordinator_background_reads: 'gauge', - scylla_storage_proxy_coordinator_background_replica_writes_failed_local_node: - 'counter', - scylla_storage_proxy_coordinator_background_write_bytes: - 'counter', - scylla_storage_proxy_coordinator_background_writes: 'gauge', - scylla_storage_proxy_coordinator_background_writes_failed: - 'counter', - scylla_storage_proxy_coordinator_canceled_read_repairs: - 'counter', - scylla_storage_proxy_coordinator_completed_reads_local_node: - 'counter', - scylla_storage_proxy_coordinator_current_throttled_base_writes: - 'gauge', - scylla_storage_proxy_coordinator_current_throttled_writes: - 'gauge', - scylla_storage_proxy_coordinator_foreground_read_repair: - 'counter', - scylla_storage_proxy_coordinator_foreground_reads: 'gauge', - scylla_storage_proxy_coordinator_foreground_writes: 'gauge', - scylla_storage_proxy_coordinator_last_mv_flow_control_delay: - 'gauge', - scylla_storage_proxy_coordinator_queued_write_bytes: - 'counter', - scylla_storage_proxy_coordinator_range_timeouts: 'counter', - scylla_storage_proxy_coordinator_range_unavailable: - 'counter', - scylla_storage_proxy_coordinator_read_errors_local_node: - 'counter', - scylla_storage_proxy_coordinator_read_latency_count: - 'counter', - scylla_storage_proxy_coordinator_read_latency_sum: 'gauge', - scylla_storage_proxy_coordinator_read_repair_write_attempts_local_node: - 'counter', - scylla_storage_proxy_coordinator_read_retries: 'counter', - scylla_storage_proxy_coordinator_read_timeouts: 'counter', - scylla_storage_proxy_coordinator_read_unavailable: - 'counter', - scylla_storage_proxy_coordinator_reads_local_node: - 'counter', - scylla_storage_proxy_coordinator_speculative_data_reads: - 'counter', - scylla_storage_proxy_coordinator_speculative_digest_reads: - 'counter', - scylla_storage_proxy_coordinator_throttled_writes: - 'counter', - scylla_storage_proxy_coordinator_total_write_attempts_local_node: - 'counter', - scylla_storage_proxy_coordinator_write_errors_local_node: - 'counter', - scylla_storage_proxy_coordinator_write_latency_count: - 'counter', - scylla_storage_proxy_coordinator_write_latency_sum: 'gauge', - scylla_storage_proxy_coordinator_write_timeouts: 'counter', - scylla_storage_proxy_coordinator_write_unavailable: - 'counter', - scylla_storage_proxy_replica_cross_shard_ops: 'counter', - scylla_storage_proxy_replica_forwarded_mutations: 'counter', - scylla_storage_proxy_replica_forwarding_errors: 'counter', - scylla_storage_proxy_replica_reads: 'counter', - scylla_storage_proxy_replica_received_counter_updates: - 'counter', - scylla_storage_proxy_replica_received_mutations: 'counter', - scylla_streaming_total_incoming_bytes: 'counter', - scylla_streaming_total_outgoing_bytes: 'counter', - scylla_thrift_current_connections: 'gauge', - scylla_thrift_served: 'counter', - scylla_thrift_thrift_connections: 'counter', - scylla_tracing_active_sessions: 'gauge', - scylla_tracing_cached_records: 'gauge', - scylla_tracing_dropped_records: 'counter', - scylla_tracing_dropped_sessions: 'counter', - scylla_tracing_flushing_records: 'gauge', - scylla_tracing_keyspace_helper_bad_column_family_errors: - 'counter', - scylla_tracing_keyspace_helper_tracing_errors: 'counter', - scylla_tracing_pending_for_write_records: 'gauge', - scylla_tracing_trace_errors: 'counter', - scylla_tracing_trace_records_count: 'counter', - scylla_transport_cql_connections: 'counter', - scylla_transport_current_connections: 'gauge', - scylla_transport_requests_blocked_memory: 'counter', - scylla_transport_requests_blocked_memory_current: 'gauge', - scylla_transport_requests_served: 'counter', - scylla_transport_requests_serving: 'gauge', - node_filesystem_avail_bytes: 'counter', - node_filesystem_size_bytes: 'counter', - }, - metric_groups: [ - 'scylla.alien', - 'scylla.batchlog_manager', - 'scylla.commitlog', - 'scylla.cql', - 'scylla.database', - 'scylla.execution_stages', - 'scylla.hints', - 'scylla.httpd', - 'scylla.io_queue', - 'scylla.lsa', - 'scylla.memory', - 'scylla.memtables', - 'scylla.query_processor', - 'scylla.scheduler', - 'scylla.sstables', - 'scylla.thrift', - 'scylla.tracing', - ], - timeout: 60, - }, - ], - }), - 'openmetrics.yaml': jsonToPrettyYaml.stringify({ - init_config: {}, - cluster_check: true, - instances: [ - { - openmetrics_endpoint: - 'http://argo-rollouts-metrics.argo-rollouts:8090/metrics', - namespace: 'argo', - metrics: [ - 'notification_send_error', - 'rollout_events', - 'rollout_info', - 'rollout_info_replicas_available', - 'rollout_info_replicas_desired', - 'rollout_info_replicas_unavailable', - 'rollout_info_replicas_updated', - 'rollout_phase', - 'rollout_reconcile', - 'rollout_reconcile_error', - ], - }, - ], - }), - }, - metricsProvider: { - // Enable DD Cluster Agent to act as a source for "external metrics" - // for kubernetes horizontal autoscaling. - enabled: true, - // Enable usage of DatadogMetric CRD to autoscale on arbitrary Datadog queries - useDatadogMetrics: true, - }, - env: [ - // tell the cluster agent about what env its in, so it can tag the - // data it collects accordingly. - { - name: 'DD_ENV', - value: stage.toLowerCase(), - }, - //https://github.com/DataDog/datadog-agent/issues/8163 - { - name: 'DD_EXTERNAL_METRICS_PROVIDER_MAX_AGE', - value: 300, - }, - ], - rbac: { - serviceAccountAnnotations: { - 'eks.amazonaws.com/role-arn': role.roleArn, - }, - }, - volumes: [ - { - name: secretVolumeName, - csi: { - driver: 'secrets-store.csi.k8s.io', - readOnly: true, - volumeAttributes: { - secretProviderClass: datadogSecretsProviderName, - }, - }, - }, - ], - volumeMounts: [ - { - name: secretVolumeName, - mountPath: secretsMountPath, - }, - ], - }, - }, - }); - datadogAgent.node.addDependency(datadogSecretsProvider); - datadogAgent.node.addDependency(namespace); - } -} diff --git a/.devops/aws/src/stacks/dev.ts b/.devops/aws/src/stacks/dev.ts deleted file mode 100644 index 98461a3..0000000 --- a/.devops/aws/src/stacks/dev.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { Duration, RemovalPolicy, Stack, StackProps } from 'aws-cdk-lib'; -import * as ec2 from 'aws-cdk-lib/aws-ec2'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import { ManagedPolicy } from 'aws-cdk-lib/aws-iam'; -import { RetentionDays } from 'aws-cdk-lib/aws-logs'; -import { - AuroraPostgresEngineVersion, - ClusterInstance, - Credentials, - DatabaseCluster, - DatabaseClusterEngine, - DBClusterStorageType, - ParameterGroup, -} from 'aws-cdk-lib/aws-rds'; -import * as s3 from 'aws-cdk-lib/aws-s3'; -import { Construct } from 'constructs'; - -/** - * Resources used for development, mostly for ML at present. Could eventually - * include coop employee permissions, etc. - */ -export class DevResourcesStack extends Stack { - private vpc: ec2.IVpc; - - constructor(scope: Construct, id: string, props: StackProps) { - super(scope, id, props); - - this.vpc = new ec2.Vpc(this, 'dev-resources-vpc', {}); - - const securityGroup = new ec2.SecurityGroup( - this, - 'ssh-to-dev-ec2-instance', - { - vpc: this.vpc, - securityGroupName: 'ssh-to-dev-ec2-instance', - allowAllOutbound: true, - }, - ); - - securityGroup.connections.allowFromAnyIpv4(ec2.Port.tcp(22)); - securityGroup.connections.allowFromAnyIpv4(ec2.Port.tcp(80)); - securityGroup.connections.allowFromAnyIpv4(ec2.Port.tcp(443)); - - const role = new iam.Role(this, 'ec2-dev-machine-user', { - assumedBy: new iam.AccountRootPrincipal(), - managedPolicies: [ - ManagedPolicy.fromAwsManagedPolicyName('ReadOnlyAccess'), - ], - }); - - // NB: excludes instances for devs who've already made an instance manually, - // possibly with slightly different config/data that we don't want to lose (e.g., Mandy) - const devsToKeyNames = { - michael: 'michael', - ethan: 'ethan', - max: 'max', - rui: 'rui', - }; - - for (const [dev, keyName] of Object.entries(devsToKeyNames)) { - new ec2.Instance(this, `${dev}-ec2`, { - vpc: this.vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - securityGroup: securityGroup, - instanceType: ec2.InstanceType.of( - ec2.InstanceClass.G5, - ec2.InstanceSize.XLARGE2, - ), - machineImage: ec2.MachineImage.genericLinux({ - 'us-east-1': 'ami-078afdc6b93b6177f', - }), - role: role, - instanceName: `${dev}-ml-playground`, - keyName, - blockDevices: [ - { - deviceName: '/dev/sda1', - volume: ec2.BlockDeviceVolume.ebs(1024, { - deleteOnTermination: true, - volumeType: ec2.EbsDeviceVolumeType.GP3, - }), // 1TB of storage - }, - ], - }); - } - - // Model eval db. - const rdsEngine = DatabaseClusterEngine.auroraPostgres({ - version: AuroraPostgresEngineVersion.VER_16_3, - }); - - const rdsParameterGroup = new ParameterGroup( - this, - 'SlowQueryLogParamGroup15', // we're no longer on pg 15, but can't rename this easily, so oh well - { - engine: rdsEngine, - description: - 'Aurora PostgreSQL Cluster Parameter Group with Slow Query Logging', - parameters: { log_min_duration_statement: '500' }, - }, - ); - - const instanceIdentifierBase = `model-eval-db`; - - const monitoringRole = new iam.Role(this, 'RDSEnhancedMonitoringRole', { - assumedBy: new iam.ServicePrincipal('monitoring.rds.amazonaws.com'), - }); - monitoringRole.addManagedPolicy( - iam.ManagedPolicy.fromManagedPolicyArn( - this, - 'AmazonRDSEnhancedMonitoringPermission', - 'arn:aws:iam::aws:policy/service-role/AmazonRDSEnhancedMonitoringRole', - ), - ); - - const rdsCluster = new DatabaseCluster(this, 'DatabaseCluster', { - credentials: Credentials.fromGeneratedSecret('postgres', { - secretName: `ModelEval/Postgres`, - }), - storageType: DBClusterStorageType.AURORA_IOPT1, - storageEncrypted: true, - engine: rdsEngine, - writer: ClusterInstance.serverlessV2('writer', { - enablePerformanceInsights: true, - }), - // There's no reason to pay for a separate read replica for this dev db. - readers: [], - // We set the minimum capacity to very low to accommodate the expected - // long periods for which this service will have no traffic. - // AWS recommends setting the minimum capacity to at least 2 when using - // Performance Insights. - serverlessV2MinCapacity: 2, - serverlessV2MaxCapacity: 128, - parameterGroup: rdsParameterGroup, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC, onePerAz: true }, - vpc: this.vpc, - clusterIdentifier: `${instanceIdentifierBase}-cluster`, - instanceIdentifierBase, - deletionProtection: true, - removalPolicy: RemovalPolicy.RETAIN, - backup: { - preferredWindow: '06:51-07:21', // i.e., 1:51am to 2:21am NYC time - retention: Duration.days(7), - }, - cloudwatchLogsExports: ['postgresql'], - cloudwatchLogsRetention: RetentionDays.ONE_DAY, - monitoringRole, - monitoringInterval: Duration.seconds(30), - }); - - // For now, allow connections from the public internet. - // To only allow from within the VPC (after we add a VPN), change to: - // rdsCluster.connections.allowDefaultPortFrom(Peer.ipv4(vpc.vpcCidrBlock)); - rdsCluster.connections.allowDefaultPortFrom(ec2.Peer.anyIpv4()); - - // S3 bucket to hold images/videos for items stored in the model_eval db. - // We want anyone to be able to fetch an object from this bucket, but we - // don't want to allow public access to listing all the objects in the - // bucket to prevent a competitor from finding out what data we build our - // models from. - new s3.Bucket(this, 'model-eval-media-bucket', { - removalPolicy: RemovalPolicy.RETAIN, - // This adds a policy to allow s3:GetObject for any principal - publicReadAccess: true, - // here we still block ACLS as is recommended by AWS, but allow public - // access via bucket policy - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ACLS - }); - } -} diff --git a/.devops/aws/src/stacks/k8s_cluster.ts b/.devops/aws/src/stacks/k8s_cluster.ts deleted file mode 100644 index 19c4e76..0000000 --- a/.devops/aws/src/stacks/k8s_cluster.ts +++ /dev/null @@ -1,2073 +0,0 @@ -// ES6+ example -import { readdirSync, readFileSync } from 'fs'; -import path, { dirname } from 'path'; -import { fileURLToPath } from 'url'; -import { CfnJson, Duration, Stack, type StackProps } from 'aws-cdk-lib'; -import * as cdk from 'aws-cdk-lib'; -import * as ec2 from 'aws-cdk-lib/aws-ec2'; -import { IVpc } from 'aws-cdk-lib/aws-ec2'; -import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets'; -import * as eks from 'aws-cdk-lib/aws-eks'; -import { KubernetesObjectValue } from 'aws-cdk-lib/aws-eks'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import { Effect, ManagedPolicy } from 'aws-cdk-lib/aws-iam'; -import * as route53 from 'aws-cdk-lib/aws-route53'; -import { Bucket } from 'aws-cdk-lib/aws-s3'; -import { App as Cdk8sApp, Chart, ChartProps } from 'cdk8s'; -import { Construct } from 'constructs'; -import { load } from 'js-yaml'; -import jsonToPrettyYaml from 'json-to-pretty-yaml'; -import _ from 'lodash'; - -import { bodyCancellationReason } from '../../../../server/services/networkingService/bodyCancellationReason.js'; -import { type EnvPreLoadedSecrets } from '../app.js'; -import { makeKubectlVersionProps } from '../constants.js'; -import { - Certificate, - CertificateSpecPrivateKeyAlgorithm, - CertificateSpecUsages, - Issuer, -} from '../imports/cert-manager.io.js'; -import { - KubeClusterRole, - KubeClusterRoleBinding, - KubeIngress, - KubeNamespace, - KubeSecret, -} from '../imports/k8s.js'; -import { - Instrumentation, - OpenTelemetryCollector, - OpenTelemetryCollectorSpecMode, - OpenTelemetryCollectorSpecResourcesRequests, -} from '../imports/opentelemetry.io.js'; -import { DeploymentEnvironmentName } from './app_pipeline.js'; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -// TODO: actually find some way to verify in TS or with a unit test that a node -// group for all of these types is deployed, and that no other node types are -// deployed. For now, at least using the toInstanceType function helps. -export const deployedArmNodeTypes = [] as const; -export const deployedIntelNodeTypes = [ - 'm7i.2xlarge', - 't3.medium', - 't3.2xlarge', -] as const; -export const deployedNodeTypes = [ - ...deployedArmNodeTypes, - ...deployedIntelNodeTypes, -]; - -const toInstanceType = (it: DeployedNodeType) => new ec2.InstanceType(it); - -export type DeployedNodeType = (typeof deployedNodeTypes)[number]; -export type DeployedArmNodeType = (typeof deployedArmNodeTypes)[number]; -export type DeployedIntelNodeType = (typeof deployedIntelNodeTypes)[number]; - -export type K8sOutputs = { - clusterName: cdk.CfnOutput; - kubectlRoleArn: cdk.CfnOutput; - kubectlLambdaRoleArn: cdk.CfnOutput; - openIdConnectProviderArn: cdk.CfnOutput; - clusterSecurityGroupId: cdk.CfnOutput; - kubectlSecurityGroupId: cdk.CfnOutput; - clusterEndpoint: cdk.CfnOutput; -}; - -/** - * Since a k8s cluster is, at least in a minimal way, stateful (e.g., with k8s - * volumes), and it's also a resource that's pretty slow and expensive to - * recreate, we don't want to recreate it willy-nilly. So, we need to make sure - * its logical id is stable, and likely later enable various deletion - * preventions. To support preventing deletion, we define it in its own stack. - * This also has the virtue that, if there's some bug in a manifest file we try - * to deploy to the cluster, the auto cdk rollback of that deploy won't try to - * delete the cluster itself. - */ -export class K8sClusterStack extends Stack { - public readonly cluster: eks.Cluster; - public readonly namespaceName: string; - public readonly outputs: K8sOutputs; - public readonly otelCollectorUrl: string; - - constructor( - scope: Construct, - id: string, - props: StackProps & - Pick, 'env'> & { - minNodes: number; - vpc: IVpc; - preLoadedSecrets: EnvPreLoadedSecrets; - provisionProdLevelsOfCompute: boolean; - deploymentEnvironmentName: DeploymentEnvironmentName; - domain: { - subdomainName: string; - zoneName: string; - hostedZoneId: string; - }; - }, - ) { - super(scope, id, props); - - // Set up a kubernetes cluster that our app will run in, - // and expose it on this.cluster. - this.cluster = new eks.Cluster(this, 'Cluster', { - // Some notes about updating the cluster version.... - // - // 1. In every new kubernetes version, some deprecated apis are removed. - // Because we have kubernetes resources that we add manually (for our - // deployments), and ones added through helm charts (explicitly listed - // in this CDK codebase), plus ones added by high-level CDK constructs - // [e.g., this eks.Cluster construct installs the ALB Controller and - // the various machinery around integrating kubernetes pods with IAM], - // we need some automated, reliable way to scan all these resources for - // uses of these would-be-removed APIs. I found two tools online for - // that: https://github.com/doitintl/kube-no-trouble and - // https://github.com/FairwindsOps/pluto. I haven't tried pluto, but - // kubent seems to work well. We can also search through the cluster - // audit logs for deprecated APIs. See - // https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html#viewing-control-plane-logs - // (We'd have to enable cluster audit logging first, which is doable - // through CDK, but I haven't bothered for now, to save cost.) - // - // 2. When running kubent, it tells us that one of the resources - // automatically added by this high-level CDK construct (to integrate - // pods with IAM) uses a k8s API that needs upgrading. This suggests - // that, to bump the kubernetes cluster version, we'd have to do it - // through this CDK prop below, and let CDK handle updating the IAM - // integration (specifically, the pod-identity-webhook - // MutatingWebhookConfiguration resource in the default namespace). - // - // 3. After updating the cluster, we also should update all the things - // we've installed, like cluster-autoscaler, the secrets store driver, - // the cloudwatch agent, kubernetes metrics server, the ALB controller, - // etc. to the latest compatible version. We'll also need to update - // the nodes to the latest EKS AMI release version for the corresponding - // k8s version we're updating to, found here: https://github.com/awslabs/amazon-eks-ami/releases - ...makeKubectlVersionProps(this), - - // we'll add a variable-sized node group ourselves below. - // defaultCapacity: 0 stops cdk from provitisioning one for us (which - // wouldn't have the right autoscaling settings.) - defaultCapacity: 0, - - // We want our cluster to be created with a k8s controller that allows it - // to interface with AWS Load Balancers (which is what ALB stands for - // here; it does not stand for "Application Load Balancer", as in the rest - // of the AWS docs). This controller will create a Network Load Balancer - // to implement Kubernetes's "Service" construct and an Application Load - // Balancer for K8s's "Ingress" construct. We need the NLB, because that's - // the only load balancer that's compatible with API Gateway v1 REST APIs. - albController: { version: eks.AlbControllerVersion.V2_5_1 }, - - vpc: props.vpc, - - endpointAccess: eks.EndpointAccess.PRIVATE, - - // TODO: have AWS encrypt the cluster's secrets? - // https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks-readme.html#encryption - }); - - // Create a role that, when assumed by an IAM principal, will alow the - // principal to access resources in the cluster itself/see those resources - // in the AWS console (because the role gets mapped into the cluster's RBAC - // setup) and will allow the principal to interact with the EKS service - // via the associated policy. - const clusterAdminRole = new iam.Role(this, 'ClusterAdminRole', { - // this allows any user in the account where this CDK stack is deployed - // to assume the role (i.e., the role itself is not restricting who can - // assume it). But, I think individual users still have to have a policy - // attached to them that'll let them assume it as well. - assumedBy: new iam.AccountRootPrincipal(), - }); - - this.cluster.awsAuth.addMastersRole(clusterAdminRole); - new iam.Policy(this, 'ClusterAdminPolicy', { - policyName: 'EKSFullAccess', - statements: [ - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: [ - 'eks:ListClusters', - 'eks:DescribeAddonVersions', - 'eks:CreateCluster', - ], - resources: ['*'], - }), - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['eks:*'], - resources: [ - 'arn:aws:eks:*:361188080279:nodegroup/*/*/*', - 'arn:aws:eks:*:361188080279:cluster/*', - 'arn:aws:eks:*:361188080279:addon/*/*/*', - 'arn:aws:eks:*:361188080279:identityproviderconfig/*/*/*/*', - ], - }), - ], - roles: [clusterAdminRole], - }); - - // Allow users in the admins group to assume the cluster admin role. - iam.Group.fromGroupArn( - this, - 'ClusterAdminGroup', - 'arn:aws:iam::361188080279:group/Admin', - ).addToPrincipalPolicy( - new iam.PolicyStatement({ - sid: 'assumeEksAdmin', - effect: iam.Effect.ALLOW, - actions: ['sts:AssumeRole'], - resources: [clusterAdminRole.roleArn], - }), - ); - - // Set up a namespace that'll hold all our kubernetes resources. - // It's very convenient to create that in this stack, as then all dependent - // stacks can just assume that the namespace already exists. - // This doesn't need to include the environment's name, because each - // deployment environment has its own cluster. - // - // NB: Chart nodes generated by Cdk8s can't be parented by (i.e., directly - // mixed with) construct nodes from our aws/cdk tree. So, instead, we have - // to make a new tree parented by a dummy Ck8sApp node as the root node. - // Then, we attach that tree (chart) into our cdk cluster. - this.namespaceName = 'coop'; - this.cluster.addCdk8sChart( - 'ns', - new Namespace(new Cdk8sApp(), 'ns', { - name: this.namespaceName, - // When we pushed a new Deployment for our Service, we were running into - // an issue where load balancer would deregister the old pods from the - // target group before the new pods were up and healthy, or at least try - // to route traffic to the new pods before they were ready. This should - // force the load balancer to make sure the new pods are up and healthy - // before draining the old ones. See https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/deploy/pod_readiness_gate/ - labels: { 'elbv2.k8s.aws/pod-readiness-gate-inject': 'enabled' }, - annotations: { 'linkerd.io/inject': 'enabled' }, - }), - // @ts-ignore The types are wrong here; they specify that the overwrite - // property isn't allowed, but it's actually passed through and works as - // expected (see KubernetesManifestProps). - { overwrite: true }, - ); - - // We want the cluster to automatically scale how many underlying EC2 nodes - // are running. To do that, we have to get the Cluster Autoscaler feature - // (which is provided by the k8s team but isn't built-in) to talk to our - // underlying EC2 autoscaling group. To do that, we have to run an AWS - // controller in the cluster, and give it access to ec2 through another - // service account. (We grant the access to the ec2 instance info to all - // nodes in the cluser, which is a bit of overpermissioning -- technically, - // only the pod running the autoscaler needs this access -- but it's easier - // this way for now; no need for a separate; instructions to limit this are - // here: https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler#aws---iam-roles-for-service-accounts-irsa) - - // First, though, we have to add variable-sized node groups. - // These are managed node groups, which is the recommended way: - // https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks-readme.html#managed-node-groups - // We're not using Fargate nodes, cause they come with limitations/caveats - // that'd make it slower to get this MVP up and running (even though they - // might be cheaper). - const twoXLargeNodesMin = 2; - const amiReleaseVersion = '1.29.3-20240514'; - - const costOptimizedNodeGroupOptions: eks.NodegroupOptions = { - capacityType: eks.CapacityType.SPOT, - minSize: 1, - maxSize: 10, - instanceTypes: [toInstanceType('t3.2xlarge')], - }; - - const costOptimizedGpuNodeGroupOptions: eks.NodegroupOptions = { - capacityType: eks.CapacityType.SPOT, - minSize: 1, - maxSize: 2, - }; - const userData = ec2.UserData.forLinux(); - - // https://aws.amazon.com/blogs/containers/introducing-ubuntu-support-for-amazon-eks-1-18/ - userData.addExecuteFileCommand({ - filePath: '/etc/eks/bootstrap.sh', - arguments: this.cluster.clusterName, - }); - - const ubuntuEksLaunchTemplate = new ec2.LaunchTemplate( - this, - 'UbuntuEksLaunchTemplate', - { - // This must be a special ubuntu image as per NVIDIA operator - see the - // following links: - // https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/amazon-eks.html#about-using-the-operator-with-amazon-eks - // https://cloud-images.ubuntu.com/aws-eks/ - // N.B. make sure to use the version that corresponds with the k8s - // version, e.g. Jammy 1.29 for K8s 1.29 - - instanceType: new ec2.InstanceType( - props.provisionProdLevelsOfCompute ? 'g6.xlarge' : 'g4dn.xlarge', - ), - machineImage: ec2.MachineImage.lookup({ - name: 'ubuntu-eks/k8s_1.29/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20241113', - owners: ['099720109477'], - filters: { - 'image-type': ['machine'], - 'image-id': ['ami-073b5635996bead97'], - }, - }), - securityGroup: this.cluster.clusterSecurityGroup, - userData, - blockDevices: [ - { - deviceName: '/dev/sda1', - // The other node groups use 40 by default. We set this higher b/c - // the triton server image size will be very large with the included - // embedding model. - volume: ec2.BlockDeviceVolume.ebs(100), - }, - ], - }, - ); - - const nodeGroups = [ - this.cluster.addNodegroupCapacity('ClusterNodeGroup', { - // TODO: consider switching to ARM nodes -- like t4g.medium or maybe - // t4g.large -- which appear to offer much better value. t4g.medium also - // supports 17 pods per node (under the default way AWS assigns IPs to - // pods w/i nodes), which should be enough. See pod-per-node limits at - // https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt - instanceTypes: [toInstanceType('t3.medium')], - releaseVersion: amiReleaseVersion, - minSize: Math.max(0, props.minNodes - twoXLargeNodesMin), - maxSize: 100, - diskSize: 40, - ...(props.provisionProdLevelsOfCompute - ? {} - : costOptimizedNodeGroupOptions), - }), - // A few of our pods sometimes need more than than the ~3.5gb of memory - // that's available on a t3.medium for user work, or are more latency- - // sensitive (or need faster compute) than t3 instances can deliver. - // So, we create an extra node group of these higher-capacity instances. - this.cluster.addNodegroupCapacity('ClusterHigherCapacityNodeGroupM7I', { - instanceTypes: [toInstanceType('m7i.2xlarge')], - releaseVersion: amiReleaseVersion, - minSize: twoXLargeNodesMin, - maxSize: 100, - diskSize: 40, - ...(props.provisionProdLevelsOfCompute - ? {} - : costOptimizedNodeGroupOptions), - }), - - this.cluster.addNodegroupCapacity('DefaultGpuGroup', { - // This must be a special ubuntu image as per NVIDIA operator - see the - // following links: - // https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/amazon-eks.html#about-using-the-operator-with-amazon-eks - // https://cloud-images.ubuntu.com/aws-eks/ - // N.B. make sure to use the version that corresponds with the k8s - // version, e.g. Jammy 1.29 for K8s 1.29 - // releaseVersion: 'ami-073b5635996bead97', - // TODO: update these values for prod. - // instanceTypes: [new ec2.InstanceType('g5.xlarge')], - // amiType: eks.NodegroupAmiType. - launchTemplateSpec: { - // launchTemplateId should be string - id: ubuntuEksLaunchTemplate.launchTemplateId!, - version: ubuntuEksLaunchTemplate.latestVersionNumber, - }, - taints: [ - // This toleration is added by the NVIDIA operator - { - effect: eks.TaintEffect.NO_SCHEDULE, - key: 'nvidia.com/gpu', - }, - ], - minSize: 1, - maxSize: 2, - // TODO: remove this before serving user traffic. - capacityType: eks.CapacityType.SPOT, - ...(props.provisionProdLevelsOfCompute - ? {} - : costOptimizedGpuNodeGroupOptions), - }), - ]; - - // This allows nodes to create repositories in ECR when pulling an image - // from the ECR pull-thru cache for the first time. - nodeGroups.forEach((group) => { - group.role.addManagedPolicy({ - managedPolicyArn: - 'arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryFullAccess', - }); - }); - const clusterAutoscalerServiceAccount = this.cluster.addServiceAccount( - 'ClusterAutoscalerServiceAccount', - { - name: 'cluster-autoscaler', - // looks like this has to be in same namespace as the autoscaler pods/service for it to be found - namespace: 'kube-system', - }, - ); - - clusterAutoscalerServiceAccount.addToPrincipalPolicy( - new iam.PolicyStatement({ - effect: Effect.ALLOW, - resources: ['*'], - actions: [ - 'autoscaling:DescribeAutoScalingGroups', - 'autoscaling:DescribeAutoScalingInstances', - 'autoscaling:DescribeLaunchConfigurations', - 'autoscaling:DescribeScalingActivities', - 'autoscaling:DescribeInstances', - 'autoscaling:DescribeTags', - 'autoscaling:SetDesiredCapacity', - 'autoscaling:TerminateInstanceInAutoScalingGroup', - 'ec2:DescribeLaunchTemplateVersions', - 'ec2:DescribeImages', - 'ec2:GetInstanceTypesFromInstanceRequirements', - 'ec2:DescribeInstanceTypes', - 'eks:DescribeNodegroup', // needed starting in eks 1.24; see release notes: https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#kubernetes-1.24 - ], - }), - ); - - const autoscalerChart = this.cluster.addHelmChart('ClusterAutoscaler', { - chart: 'cluster-autoscaler', - repository: 'https://kubernetes.github.io/autoscaler', - // Sometimes, you may have to bump this, but also set values.image.tag to - // a specific, earlier version of the underlying cluster-autoscaler image. - // See https://github.com/kubernetes/autoscaler/issues/4850#issuecomment-1120399530 - // Generally, though, the version after the 9 should match the kubernetes - // version (i.e., 9.x.* goes with kubernetes version 1.x.*). - version: '9.28.0', - namespace: 'kube-system', - values: { - cloudProvider: 'aws', - awsRegion: this.region, // set from props.env.region - autoDiscovery: { - clusterName: this.cluster.clusterName, - }, - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/autoscaling/cluster-autoscaler', - }, - rbac: { - serviceAccount: { - create: false, - name: clusterAutoscalerServiceAccount.serviceAccountName, - }, - }, - extraArgs: { - logtostderr: true, - stderrthreshold: 'info', - v: 1, - 'balance-similar-node-groups': true, - // https://linkerd.io/2.14/features/ha/#working-with-cluster-autoscaler - 'skip-nodes-with-local-storage': false, - }, - }, - }); - - autoscalerChart.node.addDependency(clusterAutoscalerServiceAccount); - - // Add drivers etc for getting AWS Secrets Manager secrets into the cluster. - this.cluster.addHelmChart('SecretsStoreCsiDriver', { - namespace: 'kube-system', - repository: - 'https://kubernetes-sigs.github.io/secrets-store-csi-driver/charts', - chart: 'secrets-store-csi-driver', - // we need to set this to avoid a resource name length limit. - release: 'secrets-store-csi-driver', - version: '1.3.1', - values: { - // Allow the driver to sync the secrets into k8s native secrets -- - // rather just mounting the secret content into the pod's filesystem, - // which is the default behavior -- b/c we want to popluate env vars - // from the secrets, which only works out of the box with k8s secrets. - syncSecret: { enabled: true }, - // Poll for changes to secret values in the AWS Secrets Manager, and - // update the k8s secrets accordingly. This is marginally useful but, - // more importantly, enabling this causes the CSI driver to update any - // k8s secrets it's previously generated _when the definition of the - // corresponding SecretProviderClass resource is updated_. Without this, - // adding a new secret env var to our API would not work without - // manually deleting the old `api-secrets` secret in the cluster. - enableSecretRotation: true, - rotationPollInterval: '5m', - linux: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/csi-secrets-store/driver', - }, - crds: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/csi-secrets-store/driver-crds', - }, - }, - registrarImage: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/csi-node-driver-registrar', - }, - livenessProbeImage: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/livenessprobe', - }, - }, - }, - }); - - this.cluster.addHelmChart('AwsPluginForSecretsStoreCsiDriver', { - namespace: 'kube-system', - repository: 'https://aws.github.io/secrets-store-csi-driver-provider-aws', - chart: 'secrets-store-csi-driver-provider-aws', - version: '0.3.2', - values: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ecr-public/aws-secrets-manager/secrets-store-csi-driver-provider-aws', - }, - }, - }); - - // Add Amazon Elastic Block Store (EBS) CSI Driver - const ebsServiceAccount = this.cluster.addServiceAccount( - 'EbsCsiDriverControllerServiceAccount', - { - name: 'ebs-csi-controller-sa', - namespace: 'kube-system', - }, - ); - - const ebsPolicy = ManagedPolicy.fromAwsManagedPolicyName( - 'service-role/AmazonEBSCSIDriverPolicy', - ); - - ebsServiceAccount.role.addManagedPolicy(ebsPolicy); - - this.cluster.addHelmChart('ElasticBlockStoreCsiDriver', { - namespace: ebsServiceAccount.serviceAccountNamespace, - repository: 'https://kubernetes-sigs.github.io/aws-ebs-csi-driver', - chart: 'aws-ebs-csi-driver', - version: '2.13.0', - values: { - clusterName: this.cluster.clusterName, - controller: { - serviceAccount: { - name: ebsServiceAccount.serviceAccountName, - create: false, - }, - }, - sidecars: { - attacher: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/csi-attacher', - }, - }, - livenessProbe: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/livenessprobe', - }, - }, - nodeDriverRegistrar: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/csi-node-driver-registrar', - }, - }, - provisioner: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/csi-provisioner', - }, - }, - resizer: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/csi-resizer', - }, - }, - snapshotter: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/sig-storage/csi-snapshotter', - }, - }, - }, - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ecr-public/ebs-csi-driver/aws-ebs-csi-driver', - }, - }, - }); - - // Send logs from the cluster to CloudWatch. Super annoying that this isn't - // supported out of the box w/ the images that power the nodes. The node IAM - // policy we attach below is the simplest way to give Cloudwatch all the - // permissions it needs to access our nodes (and then some). The k8s - // manifest definitions are adapted from https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart.yaml - // which is referenced in https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-EKS-quickstart.html - // - // NB: I did recently discover an (undocumented) AWS-provided helm chart that - // might be helpful https://github.com/aws/eks-charts/tree/master/stable/aws-for-fluent-bit - nodeGroups.forEach((nodeGroup) => { - nodeGroup.role.addManagedPolicy( - ManagedPolicy.fromAwsManagedPolicyName('CloudWatchAgentServerPolicy'), - ); - }); - - // Add metrics-server to serve metrics to the horizontal pod autoscaling controller. - this.cluster.addHelmChart('MetricsServer', { - chart: 'metrics-server', - repository: 'https://kubernetes-sigs.github.io/metrics-server/', - namespace: 'kube-system', - version: '3.11.0', - values: { - replicas: 2, - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/metrics-server/metrics-server', - }, - }, - }); - - this.cluster.addServiceAccount('core-dump-handler', { - name: 'core-dump-handler', - }); - - const bucket = new Bucket(this, 'core-dumps', { - lifecycleRules: [ - { - enabled: true, - expiration: Duration.days(15), - }, - ], - }); - - const namespace = 'core-dump'; - - const role = new iam.Role(this, 'core-dump-admin', { - assumedBy: new iam.FederatedPrincipal( - this.cluster.openIdConnectProvider.openIdConnectProviderArn, - { - // we have to use CfnJson since this oidc arn resolves at deploy time - StringEquals: new CfnJson(this, 'ConditionJson', { - value: { - // datadog-agent-0-prod-cluster-agent is set in the helm chart - [`${this.cluster.openIdConnectProvider.openIdConnectProviderIssuer}:sub`]: `system:serviceaccount:${namespace}:core-dump-admin`, - [`${this.cluster.openIdConnectProvider.openIdConnectProviderIssuer}:aud`]: - 'sts.amazonaws.com', - }, - }), - }, - 'sts:AssumeRoleWithWebIdentity', - ), - }); - - role.addToPrincipalPolicy( - new iam.PolicyStatement({ - effect: Effect.ALLOW, - actions: ['s3:*'], - resources: [bucket.bucketArn, `${bucket.bucketArn}/*`], - }), - ); - - this.cluster.addHelmChart('core-dump-handler', { - chart: 'core-dump-handler', - release: 'core-dump-handler', - version: '8.10.0', - repository: 'https://ibm.github.io/core-dump-handler', - namespace, - createNamespace: true, - // values from https://github.com/IBM/core-dump-handler/blob/main/charts/core-dump-handler/values.aws.sts.yaml - values: { - image: { - registry: '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay', - }, - daemonset: { - includeCrioExe: true, - vendor: 'rhel7', // EKS EC2 images have an old libc=2.26 - s3BucketName: bucket.bucketName, - s3Region: this.region, - }, - serviceAccount: { - annotations: { - // See https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html - 'eks.amazonaws.com/role-arn': `arn:aws:iam::${this.account}:role/${role.roleName}`, - }, - }, - }, - }); - - const autoInstrumentationImage = new DockerImageAsset( - this, - 'auto-instrumentation-nodejs', - { - directory: '../../nodejs-instrumentation', - platform: Platform.LINUX_AMD64, - }, - ); - const opentelemetryNamespace = 'opentelemetry'; - - const otelOperator = this.cluster.addHelmChart('open-telemetry-operator', { - chart: 'opentelemetry-operator', - release: 'opentelemetry-operator', - version: '0.68.1', - repository: 'https://open-telemetry.github.io/opentelemetry-helm-charts', - namespace: opentelemetryNamespace, - createNamespace: true, - wait: true, - values: { - manager: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/open-telemetry/opentelemetry-operator/opentelemetry-operator', - tag: '0.108.0', - }, - autoInstrumentationImage: { - nodejs: { - repository: autoInstrumentationImage.repository.repositoryUri, - tag: autoInstrumentationImage.imageTag, - }, - }, - collectorImage: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib', - }, - targetAllocatorImage: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/ghcr/open-telemetry/opentelemetry-operator/target-allocator', - }, - }, - kubeRBACProxy: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay/brancz/kube-rbac-proxy', - }, - }, - }, - }); - - const openTelemetryChart = new Chart( - new Cdk8sApp(), - 'instrumentation-chart', - { namespace: opentelemetryNamespace }, - ); - - new Instrumentation(openTelemetryChart, 'instrumentation', { - metadata: { - name: 'default', - namespace: opentelemetryNamespace, - }, - spec: { - nodejs: { - image: autoInstrumentationImage.imageUri, - }, - }, - }); - - const { hostedZoneId, zoneName, subdomainName } = props.domain; - - const siteFQDN = subdomainName - ? `${subdomainName}.${zoneName}` - : `${zoneName}`; - const otelCollectorFQDN = subdomainName - ? `otel-collector-${subdomainName}.${zoneName}` - : `otel-collector.${zoneName}`; - - const calculateMemLimits = (memGi: number) => { - const hardMemlimitMi = memGi * 1024; - const softMemLimitMi = Math.floor(hardMemlimitMi * 0.8); - return { hardMemlimitMi, softMemLimitMi }; - }; - - const defaultCollectorMemLimits = calculateMemLimits(4); - const targetAllocatorMemLimits = calculateMemLimits(0.5); - - const collectorName = 'default'; - const crdDirectoryPath = path.join(__dirname, '../../crds'); - const files = readdirSync(crdDirectoryPath); - - files.forEach((file) => { - const crdFilePath = path.join(crdDirectoryPath, file); - const crdFileContent = readFileSync(crdFilePath, 'utf8'); - const crd = load(crdFileContent) as any; - const id = path.basename(file, '.yaml'); - this.cluster.addManifest(id, crd); - }); - - new OpenTelemetryCollector(openTelemetryChart, 'collector', { - metadata: { - name: collectorName, - namespace: opentelemetryNamespace, - }, - spec: { - // we use 1 replica for now to simplify the architecture for tail - // sampling. All spans for a trace must be sent to the same collector, - // so if we want to run multiple replicas we will need an additional - // collector in front of this one in order to load balance the spans. - replicas: 1, - env: [ - { - name: 'GOMEMLIMIT', - value: `${defaultCollectorMemLimits.softMemLimitMi}MiB`, - }, - ], - envFrom: [ - { - secretRef: { - name: 'datadog-secret', - }, - }, - ], - podAnnotations: { - 'linkerd.io/inject': 'enabled', - }, - config: jsonToPrettyYaml.stringify({ - receivers: { - otlp: { - protocols: { - grpc: {}, - http: { - cors: { - // NB: '*' doesn't work here. You must at least specify the - // protocol. - // NB: It's probably true that only the http origin is - // needed as ALB terminates TLS, but it can't hurt to - // include both and maybe one day we'll need it. - allowed_origins: [ - `http://${siteFQDN}`, - `https://${siteFQDN}`, - ], - }, - }, - }, - }, - awsxray: { - endpoint: '0.0.0.0:2000', - transport: 'udp', - }, - opencensus: {}, - }, - processors: { - memory_limiter: { - limit_mib: defaultCollectorMemLimits.hardMemlimitMi, - check_interval: '1s', - }, - // # The batch processor batches telemetry data into larger payloads. - // # It is necessary for the Datadog traces exporter to work optimally, - // # and is recommended for any production pipeline. - batch: { - // # Datadog APM Intake limit is 3.2MB. Let's make sure the batches do not - // # go over that. - send_batch_max_size: 1000, - send_batch_size: 100, - timeout: '10s', - }, - resource: { - attributes: [ - { - key: 'deployment.environment', - value: props.deploymentEnvironmentName.toLowerCase(), - action: 'insert', - }, - ], - }, - 'transform/internal': { - trace_statements: [ - // This rule is for spans generated by calling - // Response.body.cancel() via undici. See - // https://github.com/open-telemetry/opentelemetry-js-contrib/issues/2482 - { - // In this case the identifying error message is on the - // spanevent. Fortunately, we can access the span context from - // the spanevent allowing us to modify the span status code. - context: 'spanevent', - conditions: [ - `attributes["exception.message"] == "${bodyCancellationReason}"`, - ], - statements: ['set(span.status.code, STATUS_CODE_OK)'], - }, - // This happens when we enqueue a job in MRT that already - // exists. - { - // In this case the identifying error message is on the span - // context under status.message. - context: 'span', - conditions: [ - `status.message == "duplicate key value violates unique constraint \\\"job_creations_pkey\\\""`, - ], - statements: ['set(status.code, STATUS_CODE_OK)'], - }, - ], - }, - transform: { - trace_statements: [ - // Xray spans - { - context: 'span', - conditions: ['attributes["http.url"] != nil'], - statements: [ - 'set(attributes["resource.name"], Concat([attributes["http.method"], URL(attributes["http.url"])["url.path"]], " "))', - ], - }, - // Linkerd spans - { - context: 'span', - conditions: ['attributes["http.path"] != nil'], - statements: [ - 'set(attributes["resource.name"], Concat([attributes["http.method"], attributes["http.path"]], " "))', - ], - }, - ], - }, - tail_sampling: { - policies: [ - { - name: 'sample errors', - type: 'status_code', - status_code: { - status_codes: ['ERROR', 'UNSET'], - }, - }, - { - name: 'probabilistic sampler', - type: 'probabilistic', - probabilistic: { - sampling_percentage: 10, - }, - }, - ], - }, - }, - connectors: { - 'datadog/connector': {}, - }, - exporters: { - datadog: { - api: { - key: '${env:DD_API_KEY}', - }, - }, - }, - extensions: { - // provides a health check at port 13133 - health_check: {}, - // provides various monitoring capabilities at port 55679 - zpages: {}, - // enables the pprof profiler at port 1777 - pprof: {}, - }, - service: { - extensions: ['health_check', 'zpages', 'pprof'], - pipelines: { - 'traces/thirdparty-in': { - receivers: ['awsxray', 'opencensus'], - processors: [ - 'memory_limiter', - 'batch', - 'resource', - 'transform', - ], - exporters: ['datadog/connector'], - }, - 'traces/otlp-in': { - receivers: ['otlp'], - processors: ['memory_limiter', 'batch', 'transform/internal'], - exporters: ['datadog/connector'], - }, - 'traces/out': { - receivers: ['datadog/connector'], - processors: ['tail_sampling'], - exporters: ['datadog'], - }, - metrics: { - receivers: ['otlp', 'datadog/connector'], - processors: ['memory_limiter', 'batch'], - exporters: ['datadog'], - }, - }, - telemetry: { - logs: { - encoding: 'json', - }, - metrics: { - readers: [ - { - periodic: { - interval: 10000, - exporter: { - otlp: { - protocol: 'grpc/protobuf', - endpoint: 'monitor-collector:4317', - }, - }, - }, - }, - ], - }, - traces: { - processors: [ - { - batch: { - exporter: { - otlp: { - protocol: 'grpc/protobuf', - // this will default to https if you do not specify - // the protocol. The `insecure` flag does not override - // this default. Interestingly, the metrics exporter - // above has no issue without the protocol specified. - endpoint: 'http://monitor-collector:4317', - }, - }, - }, - }, - ], - }, - }, - }, - }), - resources: { - requests: { - cpu: OpenTelemetryCollectorSpecResourcesRequests.fromString('3'), - memory: OpenTelemetryCollectorSpecResourcesRequests.fromString( - `${defaultCollectorMemLimits.hardMemlimitMi}Mi`, - ), - }, - }, - }, - }); - - // We deploy a separate collector for the Target Allocator because it - // requires running in a StatefulSet or DaemonSet. We choose Statefulset - // here but either way, it will necessitate downtime with every deployment - // since it must use the Recreate deployment strategy. The normal - // 'deployment' mode uses the RollingUpdate strategy which allows for - // zero-downtime deployments and that is ideal for accepting traces (we - // don't want to miss any). So with this setup we minimize the downtime to - // only this workload which only scrapes for metrics we won't lose any data - // unless we happen to miss a scrape interval which should be infrequent and - // inherently unavoidable with otel's tooling. - - // The motivation to use the Target Allocator is to enable compatibility - // between the otel collector and Prometheus ServiceMonitor + PodMonitor - // resources. These are commonly included in helm charts to simplify the - // monitoring setup for the chart user. With the TA this will allow us to - // collect metrics from these off-the-shelf charts for free as well as - // colocate our scrape config with the workload it's scraping. - const taCollector = new OpenTelemetryCollector( - openTelemetryChart, - 'target-allocator-collector', - { - metadata: { - name: 'target-allocator', - }, - spec: { - // this must be statefulset or daemonset for use of the Target Allocator - // we're running one instance for now, eventually we can upgrade to - // daemonset when we need to - mode: OpenTelemetryCollectorSpecMode.STATEFULSET, - targetAllocator: { - enabled: true, - // This allows the TA to interpret ServiceMonitor + PodMonitor - // resources - prometheusCr: { - enabled: true, - }, - }, - replicas: 1, - env: [ - { - name: 'GOMEMLIMIT', - value: `${targetAllocatorMemLimits.softMemLimitMi}MiB`, - }, - ], - envFrom: [ - { - secretRef: { - name: 'datadog-secret', - }, - }, - ], - config: jsonToPrettyYaml.stringify({ - receivers: { - prometheus: { - config: { - scrape_configs: [ - { - job_name: 'otel_collector', - scrape_interval: '10s', - static_configs: [ - { - targets: ['0.0.0.0:8888'], - }, - ], - }, - ], - }, - }, - }, - processors: { - memory_limiter: { - limit_mib: targetAllocatorMemLimits.hardMemlimitMi, - check_interval: '1s', - }, - // # The batch processor batches telemetry data into larger payloads. - batch: { - // # Datadog APM Intake limit is 3.2MB. Let's make sure the batches do not - // # go over that. - send_batch_max_size: 1000, - send_batch_size: 100, - timeout: '10s', - }, - }, - exporters: { - datadog: { - api: { - key: '${env:DD_API_KEY}', - }, - }, - }, - extensions: { - // provides a health check at port 13133 - health_check: {}, - // provides various monitoring capabilities at port 55679 - zpages: {}, - // enables the pprof profiler at port 1777 - pprof: {}, - }, - service: { - extensions: ['health_check', 'zpages', 'pprof'], - pipelines: { - metrics: { - receivers: ['prometheus'], - processors: ['memory_limiter', 'batch'], - exporters: ['datadog'], - }, - }, - telemetry: { - logs: { - encoding: 'json', - }, - metrics: { - readers: [ - { - periodic: { - interval: 10000, - exporter: { - otlp: { - protocol: 'grpc/protobuf', - endpoint: 'monitor-collector:4317', - }, - }, - }, - }, - ], - }, - traces: { - processors: [ - { - batch: { - exporter: { - otlp: { - protocol: 'grpc/protobuf', - // this will default to https if you do not specify - // the protocol. The `insecure` flag does not override - // this default. Interestingly, the metrics exporter - // above has no issue without the protocol specified. - endpoint: 'http://monitor-collector:4317', - }, - }, - }, - }, - ], - }, - }, - }, - }), - resources: { - requests: { - cpu: OpenTelemetryCollectorSpecResourcesRequests.fromString( - '500m', - ), - memory: OpenTelemetryCollectorSpecResourcesRequests.fromString( - `${targetAllocatorMemLimits.hardMemlimitMi}Mi`, - ), - }, - }, - }, - }, - ); - - // taken from docs: https://github.com/open-telemetry/opentelemetry-operator/blob/main/cmd/otel-allocator/README.md#rbac - const clusterrole = new KubeClusterRole( - openTelemetryChart, - 'target-allocator-cluster-role', - { - metadata: { - name: 'target-allocator-cluster-role', - }, - rules: [ - { - apiGroups: [''], - resources: [ - 'nodes', - 'nodes/metrics', - 'services', - 'endpoints', - 'pods', - ], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: [''], - resources: ['configmaps'], - verbs: ['get'], - }, - { - apiGroups: ['discovery.k8s.io'], - resources: ['endpointslices'], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: ['networking.k8s.io'], - resources: ['ingresses'], - verbs: ['get', 'list', 'watch'], - }, - { - nonResourceUrLs: ['/metrics'], - verbs: ['get'], - }, - { - apiGroups: ['monitoring.coreos.com'], - resources: ['servicemonitors', 'podmonitors'], - verbs: ['*'], - }, - { - apiGroups: [''], - resources: ['namespaces'], - verbs: ['get', 'list', 'watch'], - }, - ], - }, - ); - - new KubeClusterRoleBinding( - openTelemetryChart, - 'target-allocator-cluster-role-binding', - { - metadata: { - name: 'target-allocator-cluster-role-binding', - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: clusterrole.name, - }, - subjects: [ - { - kind: 'ServiceAccount', - // this service account is created by via the otel collector CR - name: `${taCollector.name}-targetallocator`, - namespace: opentelemetryNamespace, - }, - ], - }, - ); - - // We deploy a second collector here in order to ship the internal traces - // from the first collector to datadog since it is currently impossible to - // for a collector to ship its own traces (see - // https://github.com/open-telemetry/opentelemetry-collector/issues/10711). - // Since we have a second collector, we may as well use it to collect - // internal metrics from the primary collector as opposed to self-reporting - // them. A lot of the confinguration here is duplicated so maybe we should - // figure out a way to reuse it. For now it seems simple enough to manage as - // is. - new OpenTelemetryCollector(openTelemetryChart, 'collector-monitor', { - metadata: { - name: 'monitor', - namespace: opentelemetryNamespace, - }, - spec: { - replicas: 1, - envFrom: [ - { - secretRef: { - name: 'datadog-secret', - }, - }, - ], - config: jsonToPrettyYaml.stringify({ - receivers: { - otlp: { - protocols: { - grpc: {}, - }, - }, - }, - processors: { - batch: { - send_batch_max_size: 1000, - send_batch_size: 100, - timeout: '10s', - }, - resource: { - attributes: [ - { - key: 'deployment.environment', - value: props.deploymentEnvironmentName.toLowerCase(), - action: 'insert', - }, - ], - }, - tail_sampling: { - policies: [ - { - name: 'always sample errors', - type: 'status_code', - status_code: { - status_codes: ['ERROR', 'UNSET'], - }, - }, - { - name: 'probabilistic sampler', - type: 'probabilistic', - probabilistic: { - sampling_percentage: 10, - }, - }, - ], - }, - }, - connectors: { - 'datadog/connector': {}, - }, - exporters: { - datadog: { - api: { - key: '${env:DD_API_KEY}', - }, - }, - }, - service: { - pipelines: { - metrics: { - receivers: ['otlp', 'datadog/connector'], - processors: ['batch'], - exporters: ['datadog'], - }, - 'traces/in': { - receivers: ['otlp'], - processors: ['batch', 'resource'], - exporters: ['datadog/connector'], - }, - 'traces/out': { - receivers: ['datadog/connector'], - processors: ['tail_sampling'], - exporters: ['datadog'], - }, - }, - telemetry: { - logs: { - encoding: 'json', - }, - metrics: { - readers: [ - { - periodic: { - interval: 10000, - exporter: { - otlp: { - protocol: 'grpc/protobuf', - endpoint: 'localhost:4317', - }, - }, - }, - }, - ], - }, - }, - }, - }), - }, - }); - - new KubeIngress(openTelemetryChart, 'otel-collector-ingress', { - metadata: { - name: `${collectorName}-ingress`, - namespace: opentelemetryNamespace, - annotations: { - 'alb.ingress.kubernetes.io/certificate-arn': - 'arn:aws:acm:us-east-2:361188080279:certificate/424a3a55-72a3-42ee-8b4d-fb5f44c20d64', - 'alb.ingress.kubernetes.io/healthcheck-port': '13133', - 'alb.ingress.kubernetes.io/scheme': 'internet-facing', - 'alb.ingress.kubernetes.io/target-type': 'ip', - }, - }, - spec: { - ingressClassName: 'alb', - rules: [ - { - http: { - paths: [ - { - path: '/', - pathType: 'Prefix', - backend: { - service: { - name: `${collectorName}-collector`, - port: { - // otlp-http receiever port - number: 4318, - }, - }, - }, - }, - ], - }, - }, - ], - }, - }); - - const zone = route53.HostedZone.fromHostedZoneAttributes( - this, - `${otelCollectorFQDN}-zone`, - { hostedZoneId, zoneName }, - ); - - const instrumentationManifest = this.cluster.addCdk8sChart( - 'instrumentation', - openTelemetryChart, - ); - - instrumentationManifest.node.addDependency(otelOperator); - - const albHostNameName = new KubernetesObjectValue( - this, - 'otel-collector-alb-domain-name', - { - cluster: this.cluster, - objectType: 'ingress', - objectNamespace: opentelemetryNamespace, - objectName: `${collectorName}-ingress`, - jsonPath: '.status.loadBalancer.ingress[0].hostname', - }, - ); - - new route53.CnameRecord(this, `${otelCollectorFQDN}-alias`, { - recordName: otelCollectorFQDN, - zone, - domainName: albHostNameName.value, - }); - - albHostNameName.node.addDependency(instrumentationManifest); - this.otelCollectorUrl = `https://${otelCollectorFQDN}/v1/traces`; - - const certManagerValuesHa = { - replicaCount: 2, - webhook: { - replicaCount: 3, - podDisruptionBudget: { - enabled: true, - minAvailable: 1, - }, - }, - cainjector: { - replicaCount: 2, - podDisruptionBudget: { - enabled: true, - minAvailable: 1, - }, - }, - podDisruptionBudget: { - enabled: true, - minAvailable: 1, - }, - }; - - // See - // https://linkerd.io/2.14/tasks/automatically-rotating-control-plane-tls-credentials/# - // for an explanation on how to set up Automatically Rotating Control Plane - // TLS Credentials for Linkerd. - this.cluster.addHelmChart('cert-manager', { - chart: 'cert-manager', - release: 'cert-manager', - version: '1.13.3', - repository: 'https://charts.jetstack.io', - namespace: 'cert-manager', - createNamespace: true, - values: _.merge( - props.provisionProdLevelsOfCompute ? certManagerValuesHa : {}, - { - // If true, CRD resources will be installed as part of the Helm chart. - // If enabled, when uninstalling CRD resources will be deleted causing - // all installed custom resources to be DELETED - installCRDs: true, - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay/jetstack/cert-manager-controller', - }, - webhook: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay/jetstack/cert-manager-webhook', - }, - }, - cainjector: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay/jetstack/cert-manager-cainjector', - }, - }, - acmesolver: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay/jetstack/cert-manager-acmesolver', - }, - }, - startupapicheck: { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay/jetstack/cert-manager-ctl', - }, - }, - }, - ), - }); - const linkerdNamespace = 'linkerd'; - - const linkerdCrds = this.cluster.addHelmChart('linkerd-crds', { - chart: 'linkerd-crds', - release: 'linkerd-crds', - repository: 'https://helm.linkerd.io/stable', - version: '1.8.0', - namespace: linkerdNamespace, - createNamespace: true, - }); - const trustAnchorSecretName = 'linkerd-trust-anchor'; - - const linkerdTrustAnchorChart = new Chart( - new Cdk8sApp(), - 'linkerd-trust-anchor-chart', - {}, - ); - - new KubeSecret(linkerdTrustAnchorChart, 'trust-anchor-secret', { - type: 'kubernetes.io/tls', - metadata: { - namespace: linkerdNamespace, - name: trustAnchorSecretName, - }, - data: { - 'tls.crt': Buffer.from( - props.preLoadedSecrets.linkerdTrustAnchorSigningPair.cert, - ).toString('base64'), - 'tls.key': Buffer.from( - props.preLoadedSecrets.linkerdTrustAnchorSigningPair.key, - ).toString('base64'), - }, - }); - const linkerdIssuerName = 'linkerd-trust-anchor'; - - new Issuer(linkerdTrustAnchorChart, 'linkerdIssuer', { - metadata: { - name: linkerdIssuerName, - namespace: linkerdNamespace, - }, - spec: { - ca: { - secretName: trustAnchorSecretName, - }, - }, - }); - - new Certificate(linkerdTrustAnchorChart, 'linkerdCertificate', { - metadata: { - name: 'linkerd-identity-issuer', - namespace: linkerdNamespace, - }, - spec: { - secretName: 'linkerd-identity-issuer', - duration: '48h', - renewBefore: '25h', - issuerRef: { - name: linkerdIssuerName, - kind: 'Issuer', - }, - commonName: 'identity.linkerd.cluster.local', - dnsNames: ['identity.linkerd.cluster.local'], - isCa: true, - privateKey: { - algorithm: CertificateSpecPrivateKeyAlgorithm.ECDSA, - }, - usages: [ - CertificateSpecUsages.CERT_SIGN, - CertificateSpecUsages.CRL_SIGN, - CertificateSpecUsages.SERVER_AUTH, - CertificateSpecUsages.CLIENT_AUTH, - ], - }, - }); - - this.cluster.addCdk8sChart( - 'linkerd-auto-cert-rotation-resources', - linkerdTrustAnchorChart, - ); - // sourced from - // https://github.com/linkerd/linkerd2/blob/main/charts/linkerd-control-plane/values-ha.yaml - const valuesHA = { - enablePodDisruptionBudget: true, - deploymentStrategy: { - rollingUpdate: { - maxUnavailable: 1, - maxSurge: '25%', - }, - }, - enablePodAntiAffinity: true, - proxy: { - resources: { - cpu: { - request: '100m', - }, - memory: { - limit: '250Mi', - request: '20Mi', - }, - }, - }, - controllerReplicas: 3, - controllerResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '50Mi', - }, - }, - destinationResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '50Mi', - }, - }, - identityResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '10Mi', - }, - }, - heartbeatResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '50Mi', - }, - }, - proxyInjectorResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '50Mi', - }, - }, - webhookFailurePolicy: 'Fail', - spValidatorResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '50Mi', - }, - }, - policyControllerResources: { - cpu: { - limit: '', - request: '100m', - }, - memory: { - limit: '250Mi', - request: '50Mi', - }, - }, - highAvailability: true, - }; - - const linkerdHelmChart = this.cluster.addHelmChart( - 'linkerd-control-plane', - { - chart: 'linkerd-control-plane', - release: 'linkerd-control-plane', - repository: 'https://helm.linkerd.io/stable', - version: '1.16.9', - namespace: linkerdNamespace, - values: _.merge(props.provisionProdLevelsOfCompute ? valuesHA : {}, { - identity: { issuer: { scheme: 'kubernetes.io/tls' } }, - identityTrustAnchorsPEM: - props.preLoadedSecrets.linkerdTrustAnchorSigningPair.cert, - controllerImage: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/linkerd/controller', - controllerLogLevel: 'warn', - controllerLogFormat: 'json', - policyController: { - image: { - name: '361188080279.dkr.ecr.us-east-2.amazonaws.com/linkerd/policy-controller', - }, - }, - proxy: { - logLevel: 'warn,linkerd=warn,trust_dns=error', - logFormat: 'json', - image: { - // this fork of the linkerd-proxy image supports xray trace - // headers - name: 'jholm117/linkerd-proxy', - version: 'latest', - }, - // This is needed for the HPA resources to work on staging. - resources: { - cpu: { - request: '100m', - }, - memory: { - request: '20Mi', - }, - }, - // We were seeing consistent 502s on roling deployments so we're - // configuring this to be greater than the sleep configured in our - // container's preStop hook (15) and less than - // terminationGracePeriodSeconds (90). - // https://linkerd.io/2.14/tasks/graceful-shutdown/#slow-updating-clients - waitBeforeExitSeconds: 17, - }, - proxyInit: { - logLevel: 'warn', - logFormat: 'json', - image: { - name: '361188080279.dkr.ecr.us-east-2.amazonaws.com/linkerd/proxy-init', - }, - }, - debugContainer: { - image: { - name: '361188080279.dkr.ecr.us-east-2.amazonaws.com/linkerd/debug', - }, - }, - networkValidator: { - logFormat: 'json', - }, - imagePullPolicy: 'Always', - }), - }, - ); - linkerdHelmChart.node.addDependency(linkerdCrds); - - this.cluster.addHelmChart('linkerd-viz', { - chart: 'linkerd-viz', - release: 'linkerd-viz', - repository: 'https://helm.linkerd.io/stable', - version: '30.12.9', - namespace: 'linkerd-viz', - createNamespace: true, - values: { - defaultRegistry: '361188080279.dkr.ecr.us-east-2.amazonaws.com/linkerd', - defaultLogFormat: 'json', - prometheus: { - image: { - registry: '361188080279.dkr.ecr.us-east-2.amazonaws.com/prom', - }, - }, - }, - }); - - this.cluster.addHelmChart('linkerd-jaeger', { - chart: 'linkerd-jaeger', - release: 'linkerd-jaeger', - repository: 'https://helm.linkerd.io/stable', - version: '30.12.11', - namespace: 'linkerd-jaeger', - createNamespace: true, - values: { - collector: { enabled: false }, - jaeger: { enabled: false }, - webhook: { - collectorSvcAccount: 'default-collector', - collectorSvcAddr: 'default-collector.opentelemetry:55678', - image: { - name: '361188080279.dkr.ecr.us-east-2.amazonaws.com/linkerd/jaeger-webhook', - }, - }, - }, - }); - - const argoRolloutsNamespaceName = `argo-rollouts`; - const argoRolloutsServiceAccountName = `argo-rollouts-controller`; - const argoRolloutsServiceAccount = this.cluster.addServiceAccount( - `argo-controller-service-account`, - { - name: argoRolloutsServiceAccountName, - namespace: argoRolloutsNamespaceName, - }, - ); - - argoRolloutsServiceAccount.addToPrincipalPolicy( - new iam.PolicyStatement({ - effect: Effect.ALLOW, - actions: ['cloudwatch:GetMetricData'], - resources: ['*'], - }), - ); - - this.cluster.addHelmChart('argo-rollouts', { - chart: 'argo-rollouts', - release: 'argo-rollouts', - repository: 'https://argoproj.github.io/argo-helm', - version: '2.36.0', - namespace: argoRolloutsNamespaceName, - createNamespace: true, - values: { - dashboard: { - enabled: true, - image: { - registry: '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay', - }, - ingress: { - enabled: true, - annotations: { - 'alb.ingress.kubernetes.io/scheme': 'internal', - 'alb.ingress.kubernetes.io/target-type': 'ip', - }, - ingressClassName: 'alb', - }, - }, - controller: { - extraEnv: [ - { - name: 'AWS_REGION', - value: this.region, - }, - ], - logging: { - level: 'warn', - format: 'json', - }, - metrics: { - enabled: true, - }, - image: { - registry: '361188080279.dkr.ecr.us-east-2.amazonaws.com/quay', - }, - }, - notifications: { - secret: { - create: true, - items: { - 'slack-token': '', - 'opsgenie-token': '', - }, - }, - notifiers: { - 'service.slack': jsonToPrettyYaml.stringify({ - token: '$slack-token', - }), - 'service.opsgenie': jsonToPrettyYaml.stringify({ - apiUrl: 'api.opsgenie.com', - apiKeys: { - Engineers: '$opsgenie-token', - }, - }), - }, - templates: { - 'template.rollout-completed': jsonToPrettyYaml.stringify({ - message: - 'Rollout {{.rollout.metadata.name}} has been completed.\nLink to commit: https://github.com/roostorg/coop/commit/{{index .rollout.metadata.annotations "getcoop.com/git-commit-sha"}}', - slack: {}, - }), - 'template.rollout-aborted': jsonToPrettyYaml.stringify({ - message: 'Rollout {{.rollout.metadata.name}} has been aborted.', - slack: {}, - opsgenie: { - description: - 'Rollout: {{.rollout.metadata.name}} was aborted. You should push a fix or revert this change in GitHub.\nLink to commit: https://github.com/roostorg/coop/commit/{{index .rollout.metadata.annotations "getcoop.com/git-commit-sha"}}', - priority: 'P3', - alias: '{{.rollout.metadata.name}}', - note: 'Error from Argo Rollouts!', - }, - }), - }, - triggers: { - 'trigger.on-rollout-completed': jsonToPrettyYaml.stringify([ - { - send: ['rollout-completed'], - }, - ]), - 'trigger.on-rollout-aborted': jsonToPrettyYaml.stringify([ - { - send: ['rollout-aborted'], - }, - ]), - }, - }, - serviceAccount: { - create: false, - name: argoRolloutsServiceAccountName, - }, - }, - }); - - this.cluster.addHelmChart('nvidia-gpu-operator', { - chart: 'gpu-operator', - release: 'gpu-operator', - repository: 'https://helm.ngc.nvidia.com/nvidia', - version: '24.9.0', - namespace: 'nvidia-gpu-operator', - createNamespace: true, - values: { - 'node-feature-discovery': { - image: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/k8s/nfd/node-feature-discovery', - }, - }, - dcgmExporter: { - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia/k8s', - serviceMonitor: { - enabled: true, - }, - }, - devicePlugin: { - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - driver: { - manager: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia/cloud-native', - }, - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - gfd: { - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - operator: { - initContainer: { - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - logging: { - level: 'error', - }, - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - sandboxDevicePlugin: { - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - toolkit: { - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia/k8s', - }, - validator: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia/cloud-native', - }, - vfioManager: { - driverManager: { - repository: - '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia/cloud-native', - }, - repository: '361188080279.dkr.ecr.us-east-2.amazonaws.com/nvidia', - }, - }, - }); - - const exportNamePrefix = this.cluster.node.path.replace( - /[^a-zA-Z0-9:\-]/g, - '-', - ); - - this.outputs = { - clusterName: new cdk.CfnOutput(this, 'ClusterName', { - value: this.cluster.clusterName, - exportName: `${exportNamePrefix}-ClusterName`, - }), - - clusterEndpoint: new cdk.CfnOutput(this, 'ClusterEndpoint', { - value: this.cluster.clusterEndpoint, - exportName: `${exportNamePrefix}-ClusterEndpoint`, - }), - - kubectlRoleArn: new cdk.CfnOutput(this, 'KubectlRoleArn', { - value: this.cluster.kubectlRole!.roleArn, - exportName: `${exportNamePrefix}-KubectlRoleArn`, - }), - - kubectlLambdaRoleArn: new cdk.CfnOutput(this, 'KubectlLambdaRoleArn', { - value: this.cluster.kubectlLambdaRole!.roleArn, - exportName: `${exportNamePrefix}-KubectlLambdaRoleArn`, - }), - - openIdConnectProviderArn: new cdk.CfnOutput( - this, - 'OpenIdConnectProviderArn', - { - value: this.cluster.openIdConnectProvider.openIdConnectProviderArn, - exportName: `${exportNamePrefix}-OpenIdConnectProviderArn`, - }, - ), - - clusterSecurityGroupId: new cdk.CfnOutput( - this, - 'ClusterSecurityGroupId', - { - value: this.cluster.clusterSecurityGroupId, - exportName: `${exportNamePrefix}-ClusterSecurityGroupId`, - }, - ), - - kubectlSecurityGroupId: new cdk.CfnOutput( - this, - 'KubectlSecurityGroupId', - { - value: this.cluster.kubectlSecurityGroup!.securityGroupId, - exportName: `${exportNamePrefix}-KubectlSecurityGroupId`, - }, - ), - }; - } -} - -export class Namespace extends Chart { - public readonly namespaceObject: KubeNamespace; - - public constructor( - scope: Construct, - id: string, - props: Omit & { - name: string; - annotations?: { [key: string]: string }; - }, - ) { - const { name, annotations, ...chartProps } = props; - super(scope, id, chartProps); - this.namespaceObject = new KubeNamespace(this, 'namespace', { - metadata: { name, annotations }, - }); - } -} diff --git a/.devops/aws/src/stacks/migrations.ts b/.devops/aws/src/stacks/migrations.ts deleted file mode 100644 index f8a3a5c..0000000 --- a/.devops/aws/src/stacks/migrations.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as cdk from 'aws-cdk-lib'; -import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets'; -import type { Construct } from 'constructs'; - -export class MigrationStack extends cdk.Stack { - public readonly image: DockerImageAsset; - constructor(scope: Construct, id: string, props: cdk.StackProps) { - super(scope, id, props); - this.image = new DockerImageAsset(this, 'MigrationsImage', { - directory: '../migrator', - platform: Platform.LINUX_AMD64, - ignoreMode: cdk.IgnoreMode.DOCKER, - }); - } -} diff --git a/.devops/aws/src/stacks/pipeline_notifications.ts b/.devops/aws/src/stacks/pipeline_notifications.ts deleted file mode 100644 index ce3e648..0000000 --- a/.devops/aws/src/stacks/pipeline_notifications.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { SecretValue, Stack, StackProps } from 'aws-cdk-lib'; -import { INotificationRuleTarget } from 'aws-cdk-lib/aws-codestarnotifications'; -import { FilterOrPolicy, SubscriptionFilter } from 'aws-cdk-lib/aws-sns'; -import { UrlSubscription } from 'aws-cdk-lib/aws-sns-subscriptions'; -import { Construct } from 'constructs'; - -import { GithubPipelineNotificationRuleTarget } from '../constructs/GithubPipelineNotificationRuleTarget.js'; - -/** - * Deploys an SNS Topic that can receive notifications about a pipeline's status - * and update Github to reflect the status. - * - * NB: by making this its own stack, it's possible to deploy it only once and - * share the same SNS topic between our deploy-to-demo and deploy-to-prod - * pipelines. It also presumably makes each pipeline's SelfUpdate step a touch - * faster. However, because this stack exists outside of our pipelines' stacks, - * it will not self-update from new source, so it'll have to be manually - * redeployed (using `cdk deploy`) if it ever changes. - */ -export class PipelineNotificationsStack extends Stack { - public notificationsTarget: INotificationRuleTarget; - constructor(scope: Construct, id: string, props: StackProps) { - super(scope, id, props); - - const targetConstruct = new GithubPipelineNotificationRuleTarget( - this, - 'GithubPipelineNotificationRuleTarget', - { githubToken: SecretValue.secretsManager('github-token').toString() }, - ); - targetConstruct.target.addSubscription( - new UrlSubscription( - 'https://api.opsgenie.com/v1/json/amazonsns?apiKey=d6b90baf-5084-4202-80f8-4b633f18c213', - { - filterPolicyWithMessageBody: { - detail: FilterOrPolicy.policy({ - pipeline: FilterOrPolicy.filter( - SubscriptionFilter.stringFilter({ - // in the future I'd like to get notifications for staging as - // well, but right now it is to noisy and I don't want to page - // people for it - allowlist: ['APIServer_ReactApp_Pipeline_Prod'], - }), - ), - state: FilterOrPolicy.filter( - SubscriptionFilter.stringFilter({ - allowlist: ['FAILED'], - }), - ), - }), - }, - }, - ), - ); - this.notificationsTarget = targetConstruct.target; - } -} diff --git a/.devops/aws/src/stacks/redirects.ts b/.devops/aws/src/stacks/redirects.ts deleted file mode 100644 index 4eb017c..0000000 --- a/.devops/aws/src/stacks/redirects.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import * as route53 from 'aws-cdk-lib/aws-route53'; -import * as route53Patterns from 'aws-cdk-lib/aws-route53-patterns'; -import { Construct } from 'constructs'; - -export class RedirectStack extends Stack { - constructor(scope: Construct, id: string, props: StackProps) { - super(scope, id, props); - - const coopApiZone = route53.HostedZone.fromHostedZoneAttributes( - this, - `protegapicom-zone`, - { hostedZoneId: 'Z022213221KA7T0MEI6T', zoneName: 'coopapi.com' }, - ); - - // Create a permanent redirect from docs.coopapi.com to docs.getcoop.com - new route53Patterns.HttpsRedirect(this, 'CoopApiDocsRedirect', { - recordNames: ['docs.coopapi.com'], - targetDomain: 'docs.getcoop.com', - zone: coopApiZone, - }); - - // Ditto for www.getcoop.com to getcoop.com - new route53Patterns.HttpsRedirect(this, 'GetCoopRemoveWWWRedirect', { - recordNames: ['www.getcoop.com'], - targetDomain: 'getcoop.com', - zone: route53.HostedZone.fromHostedZoneAttributes( - this, - `getcoopcom-zone`, - { hostedZoneId: 'Z07450291QP6IF7MO9JGS', zoneName: 'getcoop.com' }, - ), - }); - - // Ditto from coopapi.com and www.coopapi.com to getcoop.com - new route53Patterns.HttpsRedirect(this, 'CoopApiToGetCoopRedirect', { - recordNames: ['www.coopapi.com', 'coopapi.com'], - targetDomain: 'getcoop.com', - zone: coopApiZone, - }); - } -} diff --git a/.devops/aws/src/stacks/telemetry.ts b/.devops/aws/src/stacks/telemetry.ts deleted file mode 100644 index fa4983a..0000000 --- a/.devops/aws/src/stacks/telemetry.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import * as chatbot from 'aws-cdk-lib/aws-chatbot'; -import { Topic } from 'aws-cdk-lib/aws-sns'; -import { - EmailSubscription, - UrlSubscription, -} from 'aws-cdk-lib/aws-sns-subscriptions'; -import { Construct } from 'constructs'; - -type TelemetryStackProps = StackProps & { - forwardToOpsGenie: boolean; - alertsSlackChannelId: string; -}; - -/** - * Sets up metrics and alarms to alert us when things go haywire. - */ -export class TelemetryStack extends Stack { - public readonly highUrgencyAlarmsTopic: Topic; - public readonly lowUrgencyAlarmsTopic: Topic; - - constructor(scope: Construct, id: string, props: TelemetryStackProps) { - super(scope, id, props); - - // Topic for all operational alarms. - this.highUrgencyAlarmsTopic = new Topic( - this, - 'OperationalAlarmNotificationsTopic', - { - displayName: 'Operational Alarm Notifications', - }, - ); - - this.lowUrgencyAlarmsTopic = new Topic(this, 'LowUrgencyAlarmsTopic', { - displayName: 'Low Urgency Operational Alarm Notifications', - }); - - const slackChannel = new chatbot.SlackChannelConfiguration( - this, - 'LowUrgencyAlertsSlackChannel', - { - slackChannelConfigurationName: `low-urgency-alerts-${props.alertsSlackChannelId}`, - slackWorkspaceId: 'T02MXF4UZGS', - slackChannelId: props.alertsSlackChannelId, - notificationTopics: [this.lowUrgencyAlarmsTopic], - }, - ); - if (!props.forwardToOpsGenie) { - slackChannel.addNotificationTopic(this.highUrgencyAlarmsTopic); - } - - // Example email subscriptions (replace with actual addresses) - this.highUrgencyAlarmsTopic.addSubscription( - new EmailSubscription('alerts@example.com', { json: true }), - ); - if (props.forwardToOpsGenie) { - this.highUrgencyAlarmsTopic.addSubscription( - new UrlSubscription( - 'https://api.opsgenie.com/v1/json/cloudwatch?apiKey=6f86a81b-7497-4ba6-9a7e-8851fd07c651', - ), - ); - } - } -} diff --git a/.devops/aws/src/stacks/vpc.ts b/.devops/aws/src/stacks/vpc.ts deleted file mode 100644 index 6852dac..0000000 --- a/.devops/aws/src/stacks/vpc.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { CfnOutput, RemovalPolicy, Stack, StackProps } from 'aws-cdk-lib'; -import * as ec2 from 'aws-cdk-lib/aws-ec2'; -import { CfnRoute } from 'aws-cdk-lib/aws-ec2'; -import * as iam from 'aws-cdk-lib/aws-iam'; -import * as s3 from 'aws-cdk-lib/aws-s3'; -import { Construct } from 'constructs'; - -import { DeploymentEnvironmentName } from './app_pipeline.js'; - -type VpcProps = StackProps & { - numAZs: number; - stage: DeploymentEnvironmentName; -}; - -// Outputs used to recreate the VPC in contexts where we can't reference the -// stack's vpc object directly (e.g., because we're crossing stage boundaries). -// NB: this recreation is gonna be hacky; see https://github.com/aws/aws-cdk/issues/4118 -export type VpcOutputs = { - vpcId: CfnOutput; - vpcAzs: CfnOutput; - vpcPrivateSubnetIds: CfnOutput[]; - vpcCidrBlock: CfnOutput; - vpcPrivateSubnetRouteTableIds?: CfnOutput[]; - vpcRegion: CfnOutput; -}; - -/** - * A stack representing our VPC. - * - * Our VPC needs to be sized/configured based on what we ultimately want to run - * in it -- e.g., a number of services require a minimum of 2 AZs, and we must - * make sure our subnets have plenty of available IPs for the kubernetes pods we - * want to run, since each gets an IP. However, even though we want to configure - * our VPC based on what we're gonna put in it, we actually have to deploy the - * VPC before we can deploy anything into it. So it has to be an output that - * other stacks take a dependency on. - * - * We also don't want to create the VPC based solely on the resource needs of - * our other existing stacks -- even if those stacks could somehow report their - * VPC needs and we could sum those needs here -- because VPCs are hard to - * change later, so we sorta have to oversize from the beginning, independent - * of our existing needs. - */ -export class VpcStack extends Stack { - public readonly vpc: ec2.Vpc; - public readonly outputs: VpcOutputs; - - constructor(scope: Construct, id: string, props: VpcProps) { - const { numAZs, stage, ...stackProps } = props; - super(scope, id, stackProps); - - this.vpc = new ec2.Vpc(this, 'vpc', { - // EKS clusters need at least 2 AZs or they won't provision. - maxAzs: Math.max(2, numAZs), - // only one subnet of each type here, since this config is applied per AZ. - // We need the private subnets to hold our worker nodes + a load balancer - // in front of them (which we don't want to expose to the internet); and - // we need need a nat, which is automatically created by default per AZ in - // the public subnet, that'll allow the worker nodes to receive responses - // to outbound requests they make to the internet. Finally, we have an - // isolated subnet for stuff that doesn't need outbound internet access. - subnetConfiguration: [ - { name: 'private', subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, - { name: 'public', subnetType: ec2.SubnetType.PUBLIC }, - { name: 'isolated', subnetType: ec2.SubnetType.PRIVATE_ISOLATED }, - ], - }); - - // Add flow logging to our VPC (as part of SOC2 compliance) - // Some logic taken from https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-ec2.FlowLog.html#example - // and https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.FlowLogOptions.html#example - const role = new iam.Role(this, 'VpcFlowLogRole', { - assumedBy: new iam.ServicePrincipal('vpc-flow-logs.amazonaws.com'), - }); - const bucket = new s3.Bucket(this, 'VpcFlowLogBucket', { - removalPolicy: RemovalPolicy.RETAIN, - publicReadAccess: false, - }); - bucket.grantReadWrite(role); - - this.vpc.addFlowLog('VpcFlowLogS3', { - destination: ec2.FlowLogDestination.toS3(bucket), - }); - - // This gateway endpoint will be used to route traffic to S3 from our - // private subnets. Normally, the traffic is sent through the public - // internet using an internet gateway. However, dynamo and s3 can be written - // through all within our private internet, using a gateway endpoint, as per - // https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html#create-gateway-endpoint-s3. - // - // ********** SOME STUFF MANUALLY DONE IN AWS CONSOLE (by pywoo2) ********** - // The gateway endpoint was manually added as a route in the route tables - // for the private subnets in the AWS console, due to: - // https://github.com/aws/aws-cdk/issues/15115 - // - // NB: The route tables were only updated on prod, and only for the private - // subnets (not the isolated or public ones), which may not be correct. - new ec2.GatewayVpcEndpoint(this, 'S3GatewayEndpoint', { - service: ec2.GatewayVpcEndpointAwsService.S3, - vpc: this.vpc, - }); - - // Enable private connectivity to ECR for image pulls in vpc - this.vpc.addInterfaceEndpoint('EcrDockerEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER, - }); - - this.vpc.addInterfaceEndpoint('XrayEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.XRAY, - }); - - // After setting up a Scylla cluster and peering it with our VPC, we have to - // edit the VPC's main route table to allow traffic to flow to/from Scylla. - // We assume that the Scylla VPC always uses 172.31.0.0/16, which we choose - // when setting up the Scylla cluster. - if (stage === 'Staging' || stage === 'Prod') { - const vpcPeerConnectionId = - stage === 'Prod' ? 'pcx-0c5506439b55364e8' : 'pcx-0f09434d417fdcb01'; - const scyllaVpcCidr = '172.31.0.0/16'; - - this.vpc.isolatedSubnets.forEach((subnet, i) => { - new CfnRoute(this, `IsolatedSubnetScyllaPeeringConnectionRoute-${i}`, { - destinationCidrBlock: scyllaVpcCidr, - routeTableId: subnet.routeTable.routeTableId, - vpcPeeringConnectionId: vpcPeerConnectionId, - }); - }); - - this.vpc.privateSubnets.forEach((subnet, i) => { - new CfnRoute(this, `PrivateSubnetScyllaPeeringConnectionRoute-${i}`, { - destinationCidrBlock: scyllaVpcCidr, - routeTableId: subnet.routeTable.routeTableId, - vpcPeeringConnectionId: vpcPeerConnectionId, - }); - }); - } - - const { vpcId, privateSubnets, availabilityZones } = this.vpc; - - const exportNamePrefix = this.vpc.node.path.replace( - /[^a-zA-Z0-9:\-]/g, - '-', - ); - - this.outputs = { - vpcId: new CfnOutput(this, 'VpcId', { - value: vpcId, - exportName: `${exportNamePrefix}-id-export`, - }), - vpcAzs: new CfnOutput(this, 'VpcAzs', { - value: availabilityZones.join(','), - exportName: `${exportNamePrefix}-azs-export`, - }), - vpcPrivateSubnetIds: privateSubnets.map( - (it, i) => - new CfnOutput(this, `VpcPrivateSubnetIds${i}`, { - value: it.subnetId, - exportName: `${exportNamePrefix}-subnet-${i}-id-export`, - }), - ), - vpcCidrBlock: new CfnOutput(this, 'VpcCidrBlock', { - value: this.vpc.vpcCidrBlock, - exportName: `${exportNamePrefix}-cidr-export`, - }), - vpcPrivateSubnetRouteTableIds: privateSubnets.map( - (it, i) => - new CfnOutput(this, `VpcPrivateSubnetRouteTableIds${i}`, { - value: it.routeTable.routeTableId, - exportName: `${exportNamePrefix}-subnet-${i}-route-table-id-export`, - }), - ), - vpcRegion: new CfnOutput(this, 'VpcRegion', { - value: this.region, - exportName: `${exportNamePrefix}-region-export`, - }), - }; - } -} diff --git a/.devops/aws/src/types.ts b/.devops/aws/src/types.ts deleted file mode 100644 index e3b89af..0000000 --- a/.devops/aws/src/types.ts +++ /dev/null @@ -1,38 +0,0 @@ -// NB: this doesn't support comma separated lists, because that's hard to -// express in TS. Even with template string types, you end up with circularity -// errors rn (unless you use conditional types to delay evaluation, but that -// leads to weird ergonomics for users of the type). It also doesn't validate -// the numbers, as that'd make a union type that's too big for TS to handle. -// We can't even validate the month actually, as that makes the union too big :( -import { ChartProps } from 'cdk8s'; - -// prettier-ignore -export type SimpleCronSpec = - `${CronValue} ${CronValue} ${CronValue} ${CronValue} ${CronValue}`; - -type DayOfWeek = 'SUN' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT'; -type CronValue = - | `*` - | `${RangeValue}` - | `${RangeValue}-${RangeValue}`; - -export type NumberRange< - Max extends number, - Min extends number = 0, -> = RangeArray extends readonly any[] - ? RangeArray extends readonly any[] - ? Exclude[number], RangeArray[number]> - : never - : never; - -type RangeArray< - Max extends number, - Result extends any[] = [], -> = Result['length'] extends Max - ? Result - : RangeArray; - -export type NamespacedChartProps = ChartProps & - Required>; - -export type NonEmptyArray = [T, ...T[]]; diff --git a/.devops/aws/src/utils.ts b/.devops/aws/src/utils.ts deleted file mode 100644 index 472bcfb..0000000 --- a/.devops/aws/src/utils.ts +++ /dev/null @@ -1,447 +0,0 @@ -import resourceParser from 'k8s-resource-parser'; - -import { NodeAffinity, Quantity } from './imports/k8s.js'; -import { DeploymentEnvironmentName } from './stacks/app_pipeline.js'; -import { DeployedNodeType } from './stacks/k8s_cluster.js'; -import { NonEmptyArray } from './types.js'; - -/** - * Different kubernetes resources/fields have different naming restrictions, but - * this returns a string (with minimal transformations on the input) that should - * generally be safe in most kubernetes contexts (deployment names, container - * names, etc.). - * - * @param rawName The name to shorten/transform into a valid resource name. - * @param maxLength An optional limit for the length of the final string, as - * some contexts have especially short limits. - */ -export function toKubernetesName(rawName: string, maxLength: number = 50) { - // 1. Trim - // 2. Convert camelCase to kebab-case - // 3. Lowercase everything (leading capital letters, e.g.) to simplify future - // steps - // 4. Remove any non-alphanumeric characters (e.g., fancy unicode stuff, but - // also punctuation) - // 5. Remove leading/trailing hyphens, as k8s doesn't permit those - // 6. Combine multiple consecutive hyphens into one. (These likely emerged - // from the prior step.) - // 7. Make sure the result isn't too long. (The DNS spec, which k8s depends - // on, limits names to 63 chars, but k8s consumes some of those characters, - // so using more than 52 is definitely not safe in some Jobs, and idk if - // other resources have even lower limits.) - return rawName - .trim() - .replace(/([a-z])([A-Z])/g, '$1-$2') - .toLowerCase() - .replace(/[^a-z0-9\-]/g, '-') - .replace(/(^-+)|(-+$)/g, '') - .replace(/-{2,}/g, '-') - .slice(0, maxLength); -} - -/** - * AWS has various restrictions on how resources can be named and what sort of - * values can go in name- or identifier-like fields. This function attempts to - * turn an arbitrary string, using minimal transformations, into a string that - * should be safe in most AWS contexts. - * - * TODO: in future, maybe take the resource type as an arg and set the max - * length automatically? - * - * NB: ALB target group names are capped at 32 characters, while Elasticache - * cluster names are limited to 50 characters (and used to be limited to 20). - * - * @param rawName The name to shorten/transform into a valid resource name. - * @param maxLength An optional limit for the length of the final string, as - * some resource types have especially short limits. - */ -export function toAwsName(rawName: string, maxLength: number = 50) { - return toKubernetesName(rawName, maxLength); -} - -export type NodeJsMemoryOptions = { - youngGenerationSemiSpaceSize?: Quantity; - nodeExternalMemoryPercent?: number; - majorGcInterval?: number; -}; - -/** - * This function that returns command line options to use when starting Node - * within a container, on the assumption that node will be the only thing - * running within the container. The returned options help Node make full use of - * the container's available memory and can configure Node's garbage collection - * and memory allocation settings. - * - * For some of the below to make sense, you should know that v8 uses two - * different garbage collection algorithms. This is v8's attempt to exploit the - * "generational hypothesis", which says that overwhelming majority of - * newly-allocated objects will become garbage almost immediately, while the - * remaining few objects will end up living on for a very long time. - * Accordingly, v8 runs one algorithm on newly-allocated objects (the 'young - * generation'), and this algorithm is optimized under the assumption that most - * of these objects will be garbage. Objects that remain alive after this first - * collection attempt (the 'old generation') get collected with a different - * algorithm in the future, which is optimized under the assumption that the old - * generation will tend to contain less garbage, but be bigger (as it eventually - * comes to contain all of the app's long-lived objects) and more frgamented. - * - * The algorithm that collects the young generation is called a 'minor GC' (aka - * a 'scavenge', which is the name of the main operation involved), because it - * scans only the young generation objects (as opposed to the full heap) and has - * a much simpler memory compaction process. The algorithm that collects the old - * generation is called a 'major GC', or a mark-sweep-compact GC. While a major - * GC does involve more total work, as the name implies, the lower frequency of - * major GCs and the way the work is distributed to background threads means - * that the minor GCs can cause performance issues at least as often. - * - * @param opts.containerMemoryRequest The amount of memory available to the - * container (before Kubernetes may kill it or start using swap). This is - * required because, without it, Node does a pretty crappy job utilizing all - * of the available memory; see https://github.com/nodejs/node/issues/35573. - * When trying to choose a memory limit to use for a Node app, consider that - * the amount of memory the app needs will depend somewhat on its GC settings. - * - * @param opts.nodeExternalMemoryPercent This is the percentage of the - * container's memory to set aside for allocations that Node does that don't - * happen on the v8 heap. (Node calls this memory "external memory".) The - * biggest culprit of such allocations are Buffer objects, but I think some - * types of memory allocated by Node native modules might count too. It should - * be safe to leave the default here unless your app is allocating many/big - * Buffers or you run into issues. - * - * @param opts.youngGenerationSemiSpaceSize Roughly, the number of MB worth of - * new objects that can be allocated before v8 performs a minor GC. This is - * perhaps the most important garbage collection setting to tune when trying - * to get high throughput from a Node server. Reasonable values range from - * 16MB to 256MB, and you should probably just try different values, doubling - * each time. The default value is 16 MB. As the value is raised, a few things - * will happen: - * - * 1. There will be a proportional decrease in the number of minor GCs. - * I.e., if you double `youngGenerationSemiSpaceSize`, the number of - * minor GCs will be cut roughly in half. (The `scavenge-task-trigger` - * flag means that it's not _quite_ right to say that v8 will perform a - * minor GC every time `youngGenerationSemiSpaceSize`-worth of objects - * is allocated, but that's a good mental model.) - * - * 2. Node's memory usage will go up by 3 MB for every 1 MB that this - * value is increased by. This is a fundamental consequence of the - * "semi-space" design that v8 uses for minor GCs (which produces a 2MB - * increase for a 1MB bump in the setting's value), plus the way it - * sizes the "large object space". - * - * 3. Each 'minor GC' will pause the main thread for longer. HOWEVER, the - * time increase may not be proportional to the percentage by which the - * `youngGenerationSize` setting was increased. - * - * This is where there's an opportunity for major throughput wins. - * E.g., you may be able to double this setting's value, which cuts the - * number of minor GCs in half, while each such GC might only take ~10% - * longer, meaning that total GC time is way down. I believe this - * effect is due to finding a value at which the scavenger worker - * threads are able to utilize the CPU most efficiently (which depends - * in turn on the server's available CPU cores etc). At some point, - * increasing this value stops having a positive effect, and total GC - * time starts going back up. - * - * Note that, as this value is increased, you're gaining throughput at - * the cost of increased tail latency (though hopefully that increase - * is negligible), as some requests will be blocked for longer during - * the longer GC pauses. - * - * NB: while a 'minor GC' does involve less work than a 'major GC', it's often - * the 'minor GCs' that cause performance problems, at least in server use - * cases. (v8's garbage collector is, unfortunately, highly tuned for Chrome - * usage patterns.) The reason is that: - * - * 1. By default, 'major GCs' only run when the size taken up by long-lived - * objects (i.e., 'old generation' objects) approaches the configured - * limit. However, after its initial startup, a server is likely to - * allocate few, if any, long-lived objects on each request. (In fact, - * doing so may indicate a memory leak.) There are certainly exceptions -- - * db connections, data in in-memory caches, etc. -- but they truly are - * exceptions. Accordingly, major GCs just don't need to run very - * frequently, relative to minor GCs. - * - * 2. The minor GC's scavenge algorithm requires pausing the main thread while - * the reachability of young generation objects is tested (and while - * still-reachable ones, which should be few, are copied around). Although - * this work is divided among a number of parallel worker threads, and - * there's generally not as much work to do (b/c the young generation size - * is small, relative to the total heap's size), the main thread still must - * be paused during this time. By contrast, the reachability analysis of - * old generation objects in a major GC is done [largely in the - * background](https://v8.dev/blog/trash-talk) (with only a little - * synchronization overhead on the main thread), although the compaction - * step can involve longer main thread pauses. In server use cases, where a - * bunch of objects are allocated per request, minor GCs can become very - * common and the pauses can really add up! - * - * @param opts.majorGcInterval This will force v8 to run a major GC after the - * specified number of allocations. By default v8 only runs major GCs as it's - * approaching the heap's memory limit, so setting this will force v8 to run - * major GCs more frequently. Major GCs also block the main JS thread, though - * primarily when old space objects are being copied around (compaction), - * which shouldn't happen much if a GC runs and there isn't much garbage. - * - * Forcing more frequent major GCs will lower peak memory use and will - * probably result in each GC pausing the main thread for less time (e.g., as - * there'll be less compaction work), which lowers the effect of GC on tail - * latencies, but will increase the total amount of time spent on GC and lower - * throughput. - * - * We've had cases where, unless we enabled this setting, we'd get an OOM - * error. This seemed very strange to me, as v8 is supposed to always do a - * major GC before failing with OOM, and I'd expect that final GC to be able - * reclaim all the same memory that would've been reclaimed earlier by doing - * more frequent GCs; if that's right, then more-frequent GCs shouldn't - * prevent OOM. However, it's possible that there's a v8 bug around this final - * GC not happening or not being complete (which has happened in v8 before), - * or there's actually some part of this major GC that requires allocating new - * memory that I don't know about. More interestingly, though, it may have - * been a weird interaction between Node and kubernetes. I.e., it may have - * been that, when the GC pauses were infrequent, Node's CPU usage was lower - * (excluding the ocassional gc-driven spike, which may have been brief enough - * to not trigger an autoscale?), so kubernetes launched fewer replicas. - * Accordingly, each replica was given more concurrent requests to handle. - * Then, when the final GC kicked in, it may have actually been the case that - * there weren't enough dead objects to collect (thanks to Node having a - * greater number of requests in progress, and each pending request having - * some live objects), leading to a bonafide OOM. I don't know. - */ -export function computeNodeMemoryOptions( - opts: { containerMemoryRequest: Quantity } & NodeJsMemoryOptions, -) { - const { - containerMemoryRequest, - youngGenerationSemiSpaceSize, - nodeExternalMemoryPercent = 0.1, - majorGcInterval, - } = opts; - - if (nodeExternalMemoryPercent >= 1) { - throw new Error( - '`nodeExternalMemoryPercent` should be given as a decimal.', - ); - } - - const containerMemoryRequestMb = - resourceParser.memoryParser(String(containerMemoryRequest.value)) / - 1024 ** 2; - - const youngGenerationSemiSizeMb = youngGenerationSemiSpaceSize - ? resourceParser.memoryParser( - youngGenerationSemiSpaceSize.value.toString(), - ) / - 1024 ** 2 - : 16; // 16 is v8's default - - // Besides the size for the young and old generation objects (and the empty - // semi-space for collecting the young generation), v8 has to store things - // like compiled code, "large objects", various data gathered at runtime for - // faster perf or JIT compilation (e.g., object maps, inline caches), etc. - // While we could inspect the v8 internals to try to figure out the sizes - // reserved for all these things, it's more future proof to just pick some - // conservative numbers. Beyond that, Node stores some stuff outside the v8 - // heap, which it calls external memory; the biggest culprit here are Buffers. - // Finally, we wanna leave some memory for the OS, etc. - const nonOldSpaceMemoryMb = - // Add 2x the young gen semi-space size to account for the other semi-space. - youngGenerationSemiSizeMb * 2 + - // Add in memory for large object space, which v8 defaults to match the - // young gen semi-space size. NB: according to the heap metrics in DD, there - // appear to actually be two large object spaces (one for the old generation - // and one for the new gen), but it looks like the old gen version counts - // against max-old-space-size, according to https://stackoverflow.com/a/76744903 - youngGenerationSemiSizeMb + - // Leave some memory for the OS and its code caches, and for other v8 data - // (including the JS heap's code space, the JS stack, and, mostly, the C++ - // heap that manages v8's memory for its parsers, compilers, inline caches, - // etc.) This seems, in practice, to need a minimum size of 256 MB to - // totally avoid OOMs because the memory usage here is spiky (esp, I think, - // for the C++ heap). - // - // TODO: It'd be much more efficient if we could make this value lower, and - // handle spikes with swap. v8 really is designed with swap in mind (see - // https://github.com/v8/v8/blob/8012409228a1284f86a0b01bbef9456606c8cdfd/src/heap/heap.h#L291), - // and swap generally improves performance a lot in managed languages (see - // https://chrisdown.name/2018/01/02/in-defence-of-swap.html), which is why - // kubernetes added alpha support for swap a few years back - // (https://kubernetes.io/blog/2021/08/09/run-nodes-with-swap-alpha/). - // However, EKS doesn't support swap yet: - // https://github.com/aws/containers-roadmap/issues/1714 - 256 + - containerMemoryRequestMb * nodeExternalMemoryPercent; - - const maxOldSpaceSizeMb = containerMemoryRequestMb - nonOldSpaceMemoryMb; - - if ( - maxOldSpaceSizeMb < nonOldSpaceMemoryMb || - maxOldSpaceSizeMb < youngGenerationSemiSizeMb * 3 - ) { - throw new Error( - 'Invalid memory configuration: this configuration would reserve less ' + - "than half of the container's memory for old-space objects, or would " + - 'reserve less memory for old-space objects than new-space ones, ' + - 'which is usually a bad idea. This could be happening because the ' + - 'container has a low overall memory request relative to the fixed ' + - 'amount of memory this function reserves for non-JS-heap data created ' + - 'by v8, or it could be because the `youngGenerationSemiSpaceSize` ' + - "setting is too large. If you're sure `opts.youngGenerationSemiSpaceSize` " + - "is set correctly, please increase your pod's memory request. You tried " + - `to reserve ${nonOldSpaceMemoryMb}Mi for non-old-space memory, with ` + - `${youngGenerationSemiSizeMb}Mi set aside for each young generation ` + - `semispace, but only ${maxOldSpaceSizeMb}Mi for old-space memory.`, - ); - } - - return [ - // Make GC more aggressive overall, which we've found very useful in our - // server contexts and which is recommended by Heroku; see - // https://blog.heroku.com/node-habits-2016#7-avoid-garbage - // NB: may not do anything anymore in 2023; see - // https://github.com/v8/v8/blob/c051ee8d837aaf5a2863b5eb2c06cb0fb6c52d6c/src/flags/flag-definitions.h#L1579 - // and https://github.com/nodejs/node/blob/89c66ae1ebee70116875017171d2fd7a39bab865/deps/v8/BUILD.gn#L1060C1-L1060C1 - ...(majorGcInterval ? [`--gc_interval=${majorGcInterval}`] : []), - ...(youngGenerationSemiSizeMb > 0 - ? [`--max-semi-space-size=${Math.floor(youngGenerationSemiSizeMb)}`] - : []), - // If the nodeMaxOldSpaceSize <= 0, we'll use the v8 default memory - // management settings, which should give node/v8 about half of the pod's - // memory. I think that's reasonable? - ...(maxOldSpaceSizeMb > 0 - ? [`--max-old-space-size=${Math.round(maxOldSpaceSizeMb)}`] - : []), - ]; -} -/* - * This function returns the annotations that should be added to a pod to enable - * OpenTelemetry tracing and Datadog profiling for that pod. - * - * @param containerName The name of the container that should be instrumented. - */ -export function getInstrumentationPodAnnotations(containerName: string) { - return { - 'instrumentation.opentelemetry.io/inject-nodejs': 'opentelemetry/default', - 'instrumentation.opentelemetry.io/container-names': containerName, - }; -} - -export function getTracingEnvVars( - serviceName: string, - env: DeploymentEnvironmentName, -) { - // We lowercase the env because datadog seems to have a bug where it - // internally lowercases the env when it's provided in DD_ENV but _not_ when - // it reads it from `deployment.environment` in trace spans. The result is - // that we get some weird mismatches/duplication in the DD UI, which this - // should fix. - const normalizedEnv = env.toLowerCase(); - - return [ - { name: 'DD_SERVICE', value: serviceName }, - { name: 'OTEL_SERVICE_NAME', value: serviceName }, - - { name: 'DD_ENV', value: normalizedEnv }, - // TODO: remove this after checking it is included by default. - { - name: 'DD_ENTITY_ID', - // I believe this must be uid for Origin Detection to work - // https://docs.datadoghq.com/developers/dogstatsd/?tab=kubernetes#origin-detection-over-udp - valueFrom: { fieldRef: { fieldPath: 'metadata.uid' } }, - }, - // this is only read by the nodejs sdk. - { - name: 'DD_TRACING_ENABLED', - value: 'false', - }, - { - name: 'POD_NAME', - valueFrom: { fieldRef: { fieldPath: 'metadata.name' } }, - }, - { - name: 'DD_TAGS', - // entity id must be manually set here for some reason - // https://github.com/DataDog/dd-trace-js/issues/2753#issuecomment-1523390329 - - // pod name is not added by default when using origin detection over UDP - value: 'dd.internal.entity_id:$(DD_ENTITY_ID),pod_name:$(POD_NAME)', - }, - { - name: 'OTEL_RESOURCE_ATTRIBUTES', - value: `deployment.environment=${normalizedEnv},service.instance.id=$(POD_NAME)`, - }, - - // Datadog has a feature called "remote configuration" that allows some - // settings on the agent -- like the trace sampling rate! -- to be set - // through the Datadog UI; then the agent will automatically pick up the - // new value without having to be restarted. The pods being traced then - // periodically poll the agent to see if there's a new value. However, this - // remote configuration feature is in private beta, and we don't have access - // to it yet, so the endpoint on the agent that the pods poll is disabled. - // Accordingly, in our traces, we were seeing a bunch of requests to this - // disabled `/v0.7/config` endpoint, which were cluttering up the traces w/ - // 404 spans. So, we tell our pods being traced that we don't have remote - // configuration enabled, so they won't try to poll the agent for updated - // sampling settings. - { - name: 'DD_REMOTE_CONFIGURATION_ENABLED', - value: 'false', - }, - // git repository url and commit sha are used by datadog to profiles to - // source code. - { - name: 'DD_GIT_REPOSITORY_URL', - value: 'github.com/roostorg/coop', - }, - { - name: 'DD_GIT_COMMIT_SHA', - value: process.env.CODEBUILD_RESOLVED_SOURCE_VERSION ?? 'undefined', - }, - // TODO: remove this after checking it is included by default. - { - name: 'DD_AGENT_HOST', - valueFrom: { - fieldRef: { - fieldPath: 'status.hostIP', - }, - }, - }, - { - name: 'HOST_IP', - valueFrom: { - fieldRef: { - fieldPath: 'status.hostIP', - }, - }, - }, - { - name: 'OTEL_EXPORTER_OTLP_ENDPOINT', - value: 'http://default-collector.opentelemetry:4317', - }, - ]; -} - -export function getNodeAffinityForInstanceTypes( - instanceTypes: Readonly>, -): NodeAffinity { - return { - requiredDuringSchedulingIgnoredDuringExecution: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: 'node.kubernetes.io/instance-type', - operator: 'In', - values: instanceTypes.slice(), - }, - ], - }, - ], - }, - }; -} - -export function __throw(error: Error): never { - throw error; -} diff --git a/.devops/aws/tsconfig.json b/.devops/aws/tsconfig.json deleted file mode 100644 index 33f1102..0000000 --- a/.devops/aws/tsconfig.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "module": "NodeNext", - "moduleResolution": "NodeNext", - // Need lib DOM because some of the server code that this package imports - // references ReadableStream, which is currently only defined in the DOM types - // (even though it actually exists in Node) - "lib": ["es2022", "DOM"], - "outDir": "./transpiled", - "declaration": false, - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "noImplicitAny": true, - "strictNullChecks": true, - "noImplicitThis": true, - "alwaysStrict": true, - "noUnusedLocals": false, - "noUnusedParameters": false, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": false, - "strictPropertyInitialization": true, - "typeRoots": ["./node_modules/@types"] - }, - // https://stackoverflow.com/questions/51610583/ts-node-ignores-d-ts-files-while-tsc-successfully-compiles-the-project - "files": ["./typings.d.ts", "../../server/decs.d.ts"], - "include": ["./**/*.ts"], - "ts-node": { - "files": true - }, - "exclude": ["node_modules", "cdk.out"] -} diff --git a/.devops/aws/typings.d.ts b/.devops/aws/typings.d.ts deleted file mode 100644 index cefa222..0000000 --- a/.devops/aws/typings.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'json-to-pretty-yaml' { - function jsonToYaml(json: any): string; - export = { stringify: jsonToYaml }; -} diff --git a/.devops/cdktf/.gitignore b/.devops/cdktf/.gitignore deleted file mode 100644 index 5f20a56..0000000 --- a/.devops/cdktf/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -*.d.ts -*.js -node_modules -cdktf.out -cdktf.log -*terraform.*.tfstate* -.gen -.terraform -tsconfig.tsbuildinfo -!jest.config.js -!setup.js diff --git a/.devops/cdktf/__tests__/main-test.ts b/.devops/cdktf/__tests__/main-test.ts deleted file mode 100644 index 5498de8..0000000 --- a/.devops/cdktf/__tests__/main-test.ts +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) HashiCorp, Inc -// SPDX-License-Identifier: MPL-2.0 -import "cdktf/lib/testing/adapters/jest"; // Load types for expect matchers -// import { Testing } from "cdktf"; - -describe("My CDKTF Application", () => { - // The tests below are example tests, you can find more information at - // https://cdk.tf/testing - it.todo("should be tested"); - - // // All Unit tests test the synthesised terraform code, it does not create real-world resources - // describe("Unit testing using assertions", () => { - // it("should contain a resource", () => { - // // import { Image,Container } from "./.gen/providers/docker" - // expect( - // Testing.synthScope((scope) => { - // new MyApplicationsAbstraction(scope, "my-app", {}); - // }) - // ).toHaveResource(Container); - - // expect( - // Testing.synthScope((scope) => { - // new MyApplicationsAbstraction(scope, "my-app", {}); - // }) - // ).toHaveResourceWithProperties(Image, { name: "ubuntu:latest" }); - // }); - // }); - - // describe("Unit testing using snapshots", () => { - // it("Tests the snapshot", () => { - // const app = Testing.app(); - // const stack = new TerraformStack(app, "test"); - - // new TestProvider(stack, "provider", { - // accessKey: "1", - // }); - - // new TestResource(stack, "test", { - // name: "my-resource", - // }); - - // expect(Testing.synth(stack)).toMatchSnapshot(); - // }); - - // it("Tests a combination of resources", () => { - // expect( - // Testing.synthScope((stack) => { - // new TestDataSource(stack, "test-data-source", { - // name: "foo", - // }); - - // new TestResource(stack, "test-resource", { - // name: "bar", - // }); - // }) - // ).toMatchInlineSnapshot(); - // }); - // }); - - // describe("Checking validity", () => { - // it("check if the produced terraform configuration is valid", () => { - // const app = Testing.app(); - // const stack = new TerraformStack(app, "test"); - - // new TestDataSource(stack, "test-data-source", { - // name: "foo", - // }); - - // new TestResource(stack, "test-resource", { - // name: "bar", - // }); - // expect(Testing.fullSynth(app)).toBeValidTerraform(); - // }); - - // it("check if this can be planned", () => { - // const app = Testing.app(); - // const stack = new TerraformStack(app, "test"); - - // new TestDataSource(stack, "test-data-source", { - // name: "foo", - // }); - - // new TestResource(stack, "test-resource", { - // name: "bar", - // }); - // expect(Testing.fullSynth(app)).toPlanSuccessfully(); - // }); - // }); -}); diff --git a/.devops/cdktf/cdktf.json b/.devops/cdktf/cdktf.json deleted file mode 100644 index 1a53a25..0000000 --- a/.devops/cdktf/cdktf.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "language": "typescript", - "app": "npx ts-node --require dotenv/config src/main.ts", - "projectId": "bc1246cb-e595-4291-b719-40dfb8e9b1c6", - "sendCrashReports": "true", - "terraformProviders": [ - "scylladb/scylladbcloud@~> 1.6" - ], - "terraformModules": [], - "context": {}, - "watchPattern": [ - "./**/*.ts" - ] -} \ No newline at end of file diff --git a/.devops/cdktf/help b/.devops/cdktf/help deleted file mode 100644 index 716be8d..0000000 --- a/.devops/cdktf/help +++ /dev/null @@ -1,51 +0,0 @@ -======================================================================================================== - - Your CDKTF TypeScript project is ready! - - cat help Print this message - - Compile: - npm run get Import/update Terraform providers and modules (you should check-in this directory) - npm run compile Compile typescript code to javascript (or "npm run watch") - npm run watch Watch for changes and compile typescript in the background - npm run build Compile typescript - - Synthesize: - cdktf synth [stack] Synthesize Terraform resources from stacks to cdktf.out/ (ready for 'terraform apply') - - Diff: - cdktf diff [stack] Perform a diff (terraform plan) for the given stack - - Deploy: - cdktf deploy [stack] Deploy the given stack - - Destroy: - cdktf destroy [stack] Destroy the stack - - Test: - npm run test Runs unit tests (edit __tests__/main-test.ts to add your own tests) - npm run test:watch Watches the tests and reruns them on change - - Upgrades: - npm run upgrade Upgrade cdktf modules to latest version - npm run upgrade:next Upgrade cdktf modules to latest "@next" version (last commit) - - Use Providers: - - You can add prebuilt providers (if available) or locally generated ones using the add command: - - cdktf provider add "aws@~>3.0" null kreuzwerker/docker - - You can find all prebuilt providers on npm: https://www.npmjs.com/search?q=keywords:cdktf - You can also install these providers directly through npm: - - npm install @cdktf/provider-aws - npm install @cdktf/provider-google - npm install @cdktf/provider-azurerm - npm install @cdktf/provider-docker - npm install @cdktf/provider-github - npm install @cdktf/provider-null - - You can also build any module or provider locally. Learn more https://cdk.tf/modules-and-providers - -======================================================================================================== diff --git a/.devops/cdktf/jest.config.js b/.devops/cdktf/jest.config.js deleted file mode 100644 index a4052f1..0000000 --- a/.devops/cdktf/jest.config.js +++ /dev/null @@ -1,187 +0,0 @@ -/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ -/* - * For a detailed explanation regarding each configuration property, visit: - * https://jestjs.io/docs/configuration - */ - -module.exports = { - - // All imported modules in your tests should be mocked automatically - // automock: false, - - // Stop running tests after `n` failures - // bail: 0, - - // The directory where Jest should store its cached dependency information - // cacheDirectory: "/private/var/folders/z_/v03l33d55fb57nrr3b1q03ch0000gq/T/jest_dz", - - // Automatically clear mock calls and instances between every test - clearMocks: true, - - // Indicates whether the coverage information should be collected while executing the test - // collectCoverage: false, - - // An array of glob patterns indicating a set of files for which coverage information should be collected - // collectCoverageFrom: undefined, - - // The directory where Jest should output its coverage files - // coverageDirectory: undefined, - - // An array of regexp pattern strings used to skip coverage collection - // coveragePathIgnorePatterns: [ - // "/node_modules/" - // ], - - // Indicates which provider should be used to instrument code for coverage - coverageProvider: "v8", - - // A list of reporter names that Jest uses when writing coverage reports - // coverageReporters: [ - // "json", - // "text", - // "lcov", - // "clover" - // ], - - // An object that configures minimum threshold enforcement for coverage results - // coverageThreshold: undefined, - - // A path to a custom dependency extractor - // dependencyExtractor: undefined, - - // Make calling deprecated APIs throw helpful error messages - // errorOnDeprecated: false, - - // Force coverage collection from ignored files using an array of glob patterns - // forceCoverageMatch: [], - - // A path to a module which exports an async function that is triggered once before all test suites - // globalSetup: undefined, - - // A path to a module which exports an async function that is triggered once after all test suites - // globalTeardown: undefined, - - // A set of global variables that need to be available in all test environments - // globals: {}, - - // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. - // maxWorkers: "50%", - - // An array of directory names to be searched recursively up from the requiring module's location - // moduleDirectories: [ - // "node_modules" - // ], - - // An array of file extensions your modules use - moduleFileExtensions: ["ts", "js", "json", "node"], - - // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module - // moduleNameMapper: {}, - - // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader - // modulePathIgnorePatterns: [], - - // Activates notifications for test results - // notify: false, - - // An enum that specifies notification mode. Requires { notify: true } - // notifyMode: "failure-change", - - // A preset that is used as a base for Jest's configuration - preset: "ts-jest", - - // Run tests from one or more projects - // projects: undefined, - - // Use this configuration option to add custom reporters to Jest - // reporters: undefined, - - // Automatically reset mock state between every test - // resetMocks: false, - - // Reset the module registry before running each individual test - // resetModules: false, - - // A path to a custom resolver - // resolver: undefined, - - // Automatically restore mock state between every test - // restoreMocks: false, - - // The root directory that Jest should scan for tests and modules within - // rootDir: undefined, - - // A list of paths to directories that Jest should use to search for files in - // roots: [ - // "" - // ], - - // Allows you to use a custom runner instead of Jest's default test runner - // runner: "jest-runner", - - // The paths to modules that run some code to configure or set up the testing environment before each test - // setupFiles: [], - - // A list of paths to modules that run some code to configure or set up the testing framework before each test - setupFilesAfterEnv: ["/setup.js"], - - // The number of seconds after which a test is considered as slow and reported as such in the results. - // slowTestThreshold: 5, - - // A list of paths to snapshot serializer modules Jest should use for snapshot testing - // snapshotSerializers: [], - - // The test environment that will be used for testing - testEnvironment: "node", - - // Options that will be passed to the testEnvironment - // testEnvironmentOptions: {}, - - // Adds a location field to test results - // testLocationInResults: false, - - // The glob patterns Jest uses to detect test files - testMatch: [ - "**/__tests__/**/*.ts", - "**/?(*.)+(spec|test).ts" - ], - - // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - testPathIgnorePatterns: ["/node_modules/", ".d.ts", ".js"], - - // The regexp pattern or array of patterns that Jest uses to detect test files - // testRegex: [], - - // This option allows the use of a custom results processor - // testResultsProcessor: undefined, - - // This option allows use of a custom test runner - // testRunner: "jest-circus/runner", - - // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href - // testURL: "http://localhost", - - // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" - // timers: "real", - - // A map from regular expressions to paths to transformers - // transform: undefined, - - // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation - // transformIgnorePatterns: [ - // "/node_modules/", - // "\\.pnp\\.[^\\/]+$" - // ], - - // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them - // unmockedModulePathPatterns: undefined, - - // Indicates whether each individual test should be reported during the run - // verbose: undefined, - - // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode - // watchPathIgnorePatterns: [], - - // Whether to use watchman for file crawling - // watchman: true, -}; diff --git a/.devops/cdktf/package-lock.json b/.devops/cdktf/package-lock.json deleted file mode 100644 index 551d0dc..0000000 --- a/.devops/cdktf/package-lock.json +++ /dev/null @@ -1,10348 +0,0 @@ -{ - "name": "cdktf", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "cdktf", - "version": "1.0.0", - "license": "MPL-2.0", - "dependencies": { - "@cdktf/provider-aws": "^19.15.0", - "cdktf": "^0.20.7", - "constructs": "^10.3.0" - }, - "devDependencies": { - "@types/jest": "^29.5.12", - "@types/node": "^20.12.7", - "cdktf-cli": "^0.20.7", - "dotenv": "^16.4.5", - "jest": "^29.7.0", - "ts-jest": "^29.1.2", - "ts-node": "^10.9.2", - "typescript": "^5.4.5" - }, - "engines": { - "node": ">=18.0" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.24.2", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", - "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.4.tgz", - "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.4", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.24.4", - "@babel/parser": "^7.24.4", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.4.tgz", - "integrity": "sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.0", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.24.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", - "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", - "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.4.tgz", - "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz", - "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz", - "integrity": "sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", - "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", - "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.24.0", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz", - "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.1", - "@babel/generator": "^7.24.1", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.24.1", - "@babel/types": "^7.24.0", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", - "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "node_modules/@cdktf/cli-core": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/cli-core/-/cli-core-0.20.7.tgz", - "integrity": "sha512-KGTRZ68PHUfiW75GkwOIetp2N9tjIdmTHwmt773jwlNFbi+OMaOEm07XQjtIz2AcuvLpx9u4N0u/uI4T+JfwSg==", - "dev": true, - "dependencies": { - "@cdktf/commons": "0.20.7", - "@cdktf/hcl-tools": "0.20.7", - "@cdktf/hcl2cdk": "0.20.7", - "@cdktf/hcl2json": "0.20.7", - "@cdktf/node-pty-prebuilt-multiarch": "0.10.1-pre.11", - "@cdktf/provider-schema": "0.20.7", - "@sentry/node": "7.110.0", - "archiver": "5.3.2", - "cdktf": "0.20.7", - "chalk": "4.1.2", - "chokidar": "3.6.0", - "cli-spinners": "2.9.2", - "codemaker": "1.95.0", - "constructs": "10.1.167", - "cross-fetch": "3.1.8", - "cross-spawn": "7.0.3", - "detect-port": "1.5.1", - "execa": "5.1.1", - "extract-zip": "2.0.1", - "follow-redirects": "1.15.6", - "fs-extra": "8.1.0", - "https-proxy-agent": "5.0.1", - "indent-string": "4.0.0", - "ink": "3.2.0", - "ink-select-input": "4.2.2", - "ink-spinner": "4.0.3", - "ink-testing-library": "2.1.0", - "ink-use-stdout-dimensions": "1.0.5", - "jsii": "5.3.29", - "jsii-pacmak": "1.95.0", - "jsii-srcmak": "0.1.1039", - "lodash.isequal": "4.5.0", - "log4js": "6.9.1", - "minimatch": "5.1.6", - "node-fetch": "2.7.0", - "open": "7.4.2", - "parse-gitignore": "1.0.1", - "pkg-up": "3.1.0", - "semver": "7.6.0", - "sscaff": "1.2.274", - "stream-buffers": "3.0.2", - "strip-ansi": "6.0.1", - "tunnel-agent": "0.6.0", - "uuid": "8.3.2", - "xml-js": "1.6.11", - "xstate": "4.38.3", - "yargs": "17.7.2", - "yoga-layout-prebuilt": "1.10.0", - "zod": "3.22.4" - } - }, - "node_modules/@cdktf/cli-core/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@cdktf/cli-core/node_modules/constructs": { - "version": "10.1.167", - "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.1.167.tgz", - "integrity": "sha512-zGt88EmcJUtWbd/sTM9GKcHRjYWzEx5jzMYuK69vl25Dj01sJAc7uF6AEJgZBtlLAc3VnRUvzgitHwmJkS9BFw==", - "dev": true, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/@cdktf/cli-core/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@cdktf/cli-core/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@cdktf/cli-core/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@cdktf/cli-core/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@cdktf/commons": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/commons/-/commons-0.20.7.tgz", - "integrity": "sha512-X1HnLlJjKyOfoWTOIoUbm5cRxWIqKw2gtHs4QgDlTGZm9kc5lW1IbwMuEOv7B1IHFXFFRFwnYg03V56TuoEvqQ==", - "dev": true, - "dependencies": { - "@sentry/node": "7.109.0", - "cdktf": "0.20.7", - "ci-info": "3.9.0", - "codemaker": "1.95.0", - "cross-spawn": "7.0.3", - "follow-redirects": "1.15.6", - "fs-extra": "11.2.0", - "is-valid-domain": "0.1.6", - "log4js": "6.9.1", - "strip-ansi": "6.0.1", - "uuid": "9.0.1" - } - }, - "node_modules/@cdktf/commons/node_modules/@sentry-internal/tracing": { - "version": "7.109.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.109.0.tgz", - "integrity": "sha512-PzK/joC5tCuh2R/PRh+7dp+uuZl7pTsBIjPhVZHMTtb9+ls65WkdZJ1/uKXPouyz8NOo9Xok7aEvEo9seongyw==", - "dev": true, - "dependencies": { - "@sentry/core": "7.109.0", - "@sentry/types": "7.109.0", - "@sentry/utils": "7.109.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@cdktf/commons/node_modules/@sentry/core": { - "version": "7.109.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.109.0.tgz", - "integrity": "sha512-xwD4U0IlvvlE/x/g/W1I8b4Cfb16SsCMmiEuBf6XxvAa3OfWBxKoqLifb3GyrbxMC4LbIIZCN/SvLlnGJPgszA==", - "dev": true, - "dependencies": { - "@sentry/types": "7.109.0", - "@sentry/utils": "7.109.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@cdktf/commons/node_modules/@sentry/node": { - "version": "7.109.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.109.0.tgz", - "integrity": "sha512-tqMNAES4X/iBl1eZRCmc29p//0id01FBLEiesNo5nk6ECl6/SaGMFAEwu1gsn90h/Bjgr04slwFOS4cR45V2PQ==", - "dev": true, - "dependencies": { - "@sentry-internal/tracing": "7.109.0", - "@sentry/core": "7.109.0", - "@sentry/types": "7.109.0", - "@sentry/utils": "7.109.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@cdktf/commons/node_modules/@sentry/types": { - "version": "7.109.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.109.0.tgz", - "integrity": "sha512-egCBnDv3YpVFoNzRLdP0soVrxVLCQ+rovREKJ1sw3rA2/MFH9WJ+DZZexsX89yeAFzy1IFsCp7/dEqudusml6g==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@cdktf/commons/node_modules/@sentry/utils": { - "version": "7.109.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.109.0.tgz", - "integrity": "sha512-3RjxMOLMBwZ5VSiH84+o/3NY2An4Zldjz0EbfEQNRY9yffRiCPJSQiCJID8EoylCFOh/PAhPimBhqbtWJxX6iw==", - "dev": true, - "dependencies": { - "@sentry/types": "7.109.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@cdktf/commons/node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/@cdktf/commons/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@cdktf/commons/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@cdktf/commons/node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "dev": true, - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/@cdktf/hcl-tools": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/hcl-tools/-/hcl-tools-0.20.7.tgz", - "integrity": "sha512-B/1/UqoCu9V40oV/qLsBRwqp/Q+0wQOcm7WtgZEKNEvNb+5y01E7UbWLoIvs3k7TX8pzHU9Bl1gACXtHbezpsw==", - "dev": true - }, - "node_modules/@cdktf/hcl2cdk": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/hcl2cdk/-/hcl2cdk-0.20.7.tgz", - "integrity": "sha512-xGrVa/SxnLrYM8pSwRfvvAFaj7ak3B3xvuwhj9xTWKZ39f89sX4vPkTuJgoiwIG83iAIlNapUcqMQ0PeqogeBw==", - "dev": true, - "dependencies": { - "@babel/generator": "7.24.4", - "@babel/template": "7.24.0", - "@babel/types": "7.24.0", - "@cdktf/commons": "0.20.7", - "@cdktf/hcl2json": "0.20.7", - "@cdktf/provider-generator": "0.20.7", - "@cdktf/provider-schema": "0.20.7", - "camelcase": "6.3.0", - "cdktf": "0.20.7", - "codemaker": "1.95.0", - "deep-equal": "2.2.3", - "glob": "10.3.12", - "graphology": "0.25.4", - "graphology-types": "0.24.7", - "jsii-rosetta": "5.3.28", - "prettier": "2.8.8", - "reserved-words": "0.1.2", - "zod": "3.22.4" - } - }, - "node_modules/@cdktf/hcl2cdk/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@cdktf/hcl2cdk/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@cdktf/hcl2cdk/node_modules/glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.10.2" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@cdktf/hcl2cdk/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@cdktf/hcl2json": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/hcl2json/-/hcl2json-0.20.7.tgz", - "integrity": "sha512-325Swm3ySUEbscSIXrtrNOt0mJCyVTheD5SNuDTcMYLyTPQNgu/6LgKu36YQt0AKK3zUp+f56pEYMitpR9FmLQ==", - "dev": true, - "dependencies": { - "fs-extra": "11.2.0" - } - }, - "node_modules/@cdktf/hcl2json/node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/@cdktf/hcl2json/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@cdktf/hcl2json/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@cdktf/node-pty-prebuilt-multiarch": { - "version": "0.10.1-pre.11", - "resolved": "https://registry.npmjs.org/@cdktf/node-pty-prebuilt-multiarch/-/node-pty-prebuilt-multiarch-0.10.1-pre.11.tgz", - "integrity": "sha512-qvga/nzEtdCJMu/6jJfDqpzbRejvXtNhWFnbubfuYyN5nMNORNXX+POT4j+mQSDQar5bIQ1a812szw/zr47cfw==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "nan": "^2.14.2", - "prebuild-install": "^7.1.1" - } - }, - "node_modules/@cdktf/provider-aws": { - "version": "19.15.0", - "resolved": "https://registry.npmjs.org/@cdktf/provider-aws/-/provider-aws-19.15.0.tgz", - "integrity": "sha512-zseg9Y+XxPI0OvyPLcitoXt6kAdkV97m6z8aNtDrbjEFR5TEbT/vpAzqNbpRJ7J+6xU0VaMF6oL7E/hmSuzNyQ==", - "engines": { - "node": ">= 18.12.0" - }, - "peerDependencies": { - "cdktf": "^0.20.0", - "constructs": "^10.3.0" - } - }, - "node_modules/@cdktf/provider-generator": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/provider-generator/-/provider-generator-0.20.7.tgz", - "integrity": "sha512-O3ZyDp/q73Kg2zn/axA4V62c3QvaGEO44G94eiyi4z6GRokTVQ4eOlkpoqp3spejizhMkA8Lzq+OQ2cvsQygeA==", - "dev": true, - "dependencies": { - "@cdktf/commons": "0.20.7", - "@cdktf/provider-schema": "0.20.7", - "@types/node": "18.19.30", - "codemaker": "1.95.0", - "fs-extra": "8.1.0", - "glob": "10.3.12", - "jsii-srcmak": "0.1.1039" - } - }, - "node_modules/@cdktf/provider-generator/node_modules/@types/node": { - "version": "18.19.30", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.30.tgz", - "integrity": "sha512-453z1zPuJLVDbyahaa1sSD5C2sht6ZpHp5rgJNs+H8YGqhluCXcuOUmBYsAo0Tos0cHySJ3lVUGbGgLlqIkpyg==", - "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@cdktf/provider-generator/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@cdktf/provider-generator/node_modules/glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.10.2" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@cdktf/provider-generator/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@cdktf/provider-schema": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/@cdktf/provider-schema/-/provider-schema-0.20.7.tgz", - "integrity": "sha512-KVV5YMaMoXgrmT+AsU1y3vCLfyie5/XbSKVVrUnVp5sCrwhsFMl6U59HTDQ52QX3aHWxwTAqEZbljdg6ZUbk9A==", - "dev": true, - "dependencies": { - "@cdktf/commons": "0.20.7", - "@cdktf/hcl2json": "0.20.7", - "deepmerge": "4.3.1", - "fs-extra": "11.2.0" - } - }, - "node_modules/@cdktf/provider-schema/node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/@cdktf/provider-schema/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@cdktf/provider-schema/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@inquirer/checkbox": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-1.5.2.tgz", - "integrity": "sha512-CifrkgQjDkUkWexmgYYNyB5603HhTHI91vLFeQXh6qrTKiCMVASol01Rs1cv6LP/A2WccZSRlJKZhbaBIs/9ZA==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "figures": "^3.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/checkbox/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/checkbox/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/checkbox/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/checkbox/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/confirm": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-2.0.17.tgz", - "integrity": "sha512-EqzhGryzmGpy2aJf6LxJVhndxYmFs+m8cxXzf8nejb1DE3sabf6mUgBcp4J0jAUEiAcYzqmkqRr7LPFh/WdnXA==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/confirm/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/confirm/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/confirm/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/confirm/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/core": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-2.3.1.tgz", - "integrity": "sha512-faYAYnIfdEuns3jGKykaog5oUqFiEVbCx9nXGZfUhyEEpKcHt5bpJfZTb3eOBQKo8I/v4sJkZeBHmFlSZQuBCw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.1", - "@types/mute-stream": "^0.0.1", - "@types/node": "^20.4.2", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.8.0", - "cli-width": "^4.0.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.0.1" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/core/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/editor": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-1.2.15.tgz", - "integrity": "sha512-gQ77Ls09x5vKLVNMH9q/7xvYPT6sIs5f7URksw+a2iJZ0j48tVS6crLqm2ugG33tgXHIwiEqkytY60Zyh5GkJQ==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2", - "external-editor": "^3.1.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/editor/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/editor/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/editor/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/editor/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/expand": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-1.1.16.tgz", - "integrity": "sha512-TGLU9egcuo+s7PxphKUCnJnpCIVY32/EwPCLLuu+gTvYiD8hZgx8Z2niNQD36sa6xcfpdLY6xXDBiL/+g1r2XQ==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2", - "figures": "^3.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/expand/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/expand/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/expand/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/expand/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/input": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-1.2.16.tgz", - "integrity": "sha512-Ou0LaSWvj1ni+egnyQ+NBtfM1885UwhRCMtsRt2bBO47DoC1dwtCa+ZUNgrxlnCHHF0IXsbQHYtIIjFGAavI4g==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/input/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/input/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/input/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/input/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/password": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-1.1.16.tgz", - "integrity": "sha512-aZYZVHLUXZ2gbBot+i+zOJrks1WaiI95lvZCn1sKfcw6MtSSlYC8uDX8sTzQvAsQ8epHoP84UNvAIT0KVGOGqw==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/password/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/password/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/password/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/password/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/prompts": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-2.3.1.tgz", - "integrity": "sha512-YQeBFzIE+6fcec5N/U2mSz+IcKEG4wtGDwF7MBLIDgITWzB3o723JpKJ1rxWqdCvTXkYE+gDXK/seSN6omo3DQ==", - "dev": true, - "dependencies": { - "@inquirer/checkbox": "^1.3.4", - "@inquirer/confirm": "^2.0.5", - "@inquirer/core": "^2.3.1", - "@inquirer/editor": "^1.2.3", - "@inquirer/expand": "^1.1.4", - "@inquirer/input": "^1.2.4", - "@inquirer/password": "^1.1.4", - "@inquirer/rawlist": "^1.2.4", - "@inquirer/select": "^1.2.4" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/rawlist": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-1.2.16.tgz", - "integrity": "sha512-pZ6TRg2qMwZAOZAV6TvghCtkr53dGnK29GMNQ3vMZXSNguvGqtOVc4j/h1T8kqGJFagjyfBZhUPGwNS55O5qPQ==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/rawlist/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/rawlist/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/rawlist/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/rawlist/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/select": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-1.3.3.tgz", - "integrity": "sha512-RzlRISXWqIKEf83FDC9ZtJ3JvuK1l7aGpretf41BCWYrvla2wU8W8MTRNMiPrPJ+1SIqrRC1nZdZ60hD9hRXLg==", - "dev": true, - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "figures": "^3.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/select/node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", - "dev": true, - "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", - "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", - "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/select/node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@inquirer/select/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@inquirer/select/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@inquirer/type": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-1.3.0.tgz", - "integrity": "sha512-RW4Zf6RCTnInRaOZuRHTqAUl+v6VJuQGglir7nW2BkT3OXOphMhkIFhvFRjorBx2l0VwtC/M4No8vYR65TdN9Q==", - "dev": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", - "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", - "dev": true, - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", - "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.6.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", - "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^6.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@jsii/check-node": { - "version": "1.95.0", - "resolved": "https://registry.npmjs.org/@jsii/check-node/-/check-node-1.95.0.tgz", - "integrity": "sha512-E5njkBk6X4WrQHtGeO0ed+cvkMxqinQZY83TJZ9RFEIwrndDfj7asMgWkRkYQRF05AlQXks+Eh8wza7ErIl85Q==", - "dev": true, - "dependencies": { - "chalk": "^4.1.2", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/@jsii/check-node/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@jsii/check-node/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@jsii/check-node/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@jsii/spec": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/@jsii/spec/-/spec-1.97.0.tgz", - "integrity": "sha512-5YIq1fgOtToH6eUyTNlqAXuZzUzTD6wBukE7m5DpsxHjQlbR7TVP750FcPqH9qCitCwaePPl5IdCZJ/AS0IwEA==", - "dev": true, - "dependencies": { - "ajv": "^8.12.0" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@sentry-internal/tracing": { - "version": "7.110.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.110.0.tgz", - "integrity": "sha512-IIHHa9e/mE7uOMJfNELI8adyoELxOy6u6TNCn5t6fphmq84w8FTc9adXkG/FY2AQpglkIvlILojfMROFB2aaAQ==", - "dev": true, - "dependencies": { - "@sentry/core": "7.110.0", - "@sentry/types": "7.110.0", - "@sentry/utils": "7.110.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sentry/core": { - "version": "7.110.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.110.0.tgz", - "integrity": "sha512-g4suCQO94mZsKVaAbyD1zLFC5YSuBQCIPHXx9fdgtfoPib7BWjWWePkllkrvsKAv4u8Oq05RfnKOhOMRHpOKqg==", - "dev": true, - "dependencies": { - "@sentry/types": "7.110.0", - "@sentry/utils": "7.110.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sentry/node": { - "version": "7.110.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.110.0.tgz", - "integrity": "sha512-YPfweCSzo/omnx5q1xOEZfI8Em3jnPqj7OM4ObXmoSKEK+kM1oUF3BTRzw5BJOaOCSTBFY1RAsGyfVIyrwxWnA==", - "dev": true, - "dependencies": { - "@sentry-internal/tracing": "7.110.0", - "@sentry/core": "7.110.0", - "@sentry/types": "7.110.0", - "@sentry/utils": "7.110.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sentry/types": { - "version": "7.110.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.110.0.tgz", - "integrity": "sha512-DqYBLyE8thC5P5MuPn+sj8tL60nCd/f5cerFFPcudn5nJ4Zs1eI6lKlwwyHYTEu5c4KFjCB0qql6kXfwAHmTyA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sentry/utils": { - "version": "7.110.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.110.0.tgz", - "integrity": "sha512-VBsdLLN+5tf73fhf/Cm7JIsUJ6y9DkJj8h4I6Mxx0rszrvOyH6S5px40K+V4jdLBzMEvVinC7q2Cbf1YM18BSw==", - "dev": true, - "dependencies": { - "@sentry/types": "7.110.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", - "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "dev": true, - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.8", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", - "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", - "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "29.5.12", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", - "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", - "dev": true, - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/mute-stream": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.1.tgz", - "integrity": "sha512-0yQLzYhCqGz7CQPE3iDmYjhb7KMBFOP+tBkyw+/Y2YyDI5wpS7itXXxneN1zSsUwWx3Ji6YiVYrhAnpQGS/vkw==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "20.12.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", - "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", - "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true - }, - "node_modules/@types/wrap-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/wrap-ansi/-/wrap-ansi-3.0.0.tgz", - "integrity": "sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==", - "dev": true - }, - "node_modules/@types/yargs": { - "version": "17.0.32", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", - "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true - }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "dev": true, - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/yoga-layout": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/@types/yoga-layout/-/yoga-layout-1.9.2.tgz", - "integrity": "sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw==", - "dev": true - }, - "node_modules/@xmldom/xmldom": { - "version": "0.8.10", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", - "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/archiver": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", - "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==", - "dev": true, - "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^3.2.4", - "buffer-crc32": "^0.2.1", - "readable-stream": "^3.6.0", - "readdir-glob": "^1.1.2", - "tar-stream": "^2.2.0", - "zip-stream": "^4.1.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/archiver-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", - "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", - "dev": true, - "dependencies": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/archiver-utils/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true - }, - "node_modules/archiver-utils/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/archiver-utils/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/archiver-utils/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/arr-rotate": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/arr-rotate/-/arr-rotate-1.0.0.tgz", - "integrity": "sha512-yOzOZcR9Tn7enTF66bqKorGGH0F36vcPaSWg8fO0c0UYb3LX3VMXj5ZxEqQLNOecAhlRJ7wYZja5i4jTlnbIfQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/async": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", - "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", - "dev": true - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/auto-bind": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-4.0.0.tgz", - "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/babel-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", - "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", - "dev": true, - "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", - "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-jest": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", - "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.23.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", - "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001587", - "electron-to-chromium": "^1.4.668", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001611", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001611.tgz", - "integrity": "sha512-19NuN1/3PjA3QI8Eki55N8my4LzfkMCRLgCVfrl/slbSAchQfV0+GwjPrK3rq37As4UCLlM/DHajbKkAqbv92Q==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/case": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/case/-/case-1.6.3.tgz", - "integrity": "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/cdktf": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/cdktf/-/cdktf-0.20.7.tgz", - "integrity": "sha512-7za8QQYM1G0/6JUCYY+5smwNfNfbiZVPCMD7SeX2rTYmOLaGEkHZtMvuUTEKSqsE56fKudnfVd2J2edz2CETFg==", - "bundleDependencies": [ - "archiver", - "json-stable-stringify", - "semver" - ], - "dependencies": { - "archiver": "6.0.2", - "json-stable-stringify": "1.1.1", - "semver": "7.6.0" - }, - "peerDependencies": { - "constructs": "^10.0.25" - } - }, - "node_modules/cdktf-cli": { - "version": "0.20.7", - "resolved": "https://registry.npmjs.org/cdktf-cli/-/cdktf-cli-0.20.7.tgz", - "integrity": "sha512-muEJhxWHZLv1Rayz2t7W3gP1zZbCE4DPFq3gNo4G667TzrwdY7XWreeze8Pj7i3mkQu+K492cSVdWBYKa3AJpg==", - "dev": true, - "dependencies": { - "@cdktf/cli-core": "0.20.7", - "@cdktf/commons": "0.20.7", - "@cdktf/hcl-tools": "0.20.7", - "@cdktf/hcl2cdk": "0.20.7", - "@cdktf/hcl2json": "0.20.7", - "@inquirer/prompts": "2.3.1", - "@sentry/node": "7.110.0", - "cdktf": "0.20.7", - "ci-info": "3.9.0", - "codemaker": "1.95.0", - "constructs": "10.1.167", - "cross-spawn": "7.0.3", - "https-proxy-agent": "5.0.1", - "ink-select-input": "4.2.2", - "ink-table": "3.1.0", - "jsii": "5.3.29", - "jsii-pacmak": "1.95.0", - "minimatch": "5.1.6", - "node-fetch": "2.7.0", - "pidtree": "0.6.0", - "pidusage": "3.0.2", - "tunnel-agent": "0.6.0", - "xml-js": "1.6.11", - "yargs": "17.7.2", - "yoga-layout-prebuilt": "1.10.0", - "zod": "3.22.4" - }, - "bin": { - "cdktf": "bundle/bin/cdktf" - } - }, - "node_modules/cdktf-cli/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/cdktf-cli/node_modules/constructs": { - "version": "10.1.167", - "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.1.167.tgz", - "integrity": "sha512-zGt88EmcJUtWbd/sTM9GKcHRjYWzEx5jzMYuK69vl25Dj01sJAc7uF6AEJgZBtlLAc3VnRUvzgitHwmJkS9BFw==", - "dev": true, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/cdktf-cli/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cdktf/node_modules/archiver": { - "version": "6.0.2", - "inBundle": true, - "license": "MIT", - "dependencies": { - "archiver-utils": "^4.0.1", - "async": "^3.2.4", - "buffer-crc32": "^0.2.1", - "readable-stream": "^3.6.0", - "readdir-glob": "^1.1.2", - "tar-stream": "^3.0.0", - "zip-stream": "^5.0.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/cdktf/node_modules/archiver-utils": { - "version": "4.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "glob": "^8.0.0", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash": "^4.17.15", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/cdktf/node_modules/async": { - "version": "3.2.5", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/b4a": { - "version": "1.6.6", - "inBundle": true, - "license": "Apache-2.0" - }, - "node_modules/cdktf/node_modules/balanced-match": { - "version": "1.0.2", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/bare-events": { - "version": "2.2.1", - "inBundle": true, - "license": "Apache-2.0", - "optional": true - }, - "node_modules/cdktf/node_modules/brace-expansion": { - "version": "2.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/cdktf/node_modules/buffer-crc32": { - "version": "0.2.13", - "inBundle": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/cdktf/node_modules/call-bind": { - "version": "1.0.7", - "inBundle": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/compress-commons": { - "version": "5.0.3", - "inBundle": true, - "license": "MIT", - "dependencies": { - "crc-32": "^1.2.0", - "crc32-stream": "^5.0.0", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/cdktf/node_modules/core-util-is": { - "version": "1.0.3", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/crc-32": { - "version": "1.2.2", - "inBundle": true, - "license": "Apache-2.0", - "bin": { - "crc32": "bin/crc32.njs" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/cdktf/node_modules/crc32-stream": { - "version": "5.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "crc-32": "^1.2.0", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/cdktf/node_modules/define-data-property": { - "version": "1.1.4", - "inBundle": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/es-define-property": { - "version": "1.0.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/cdktf/node_modules/es-errors": { - "version": "1.3.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/cdktf/node_modules/fast-fifo": { - "version": "1.3.2", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/fs.realpath": { - "version": "1.0.0", - "inBundle": true, - "license": "ISC" - }, - "node_modules/cdktf/node_modules/function-bind": { - "version": "1.1.2", - "inBundle": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/get-intrinsic": { - "version": "1.2.4", - "inBundle": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/glob": { - "version": "8.1.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/cdktf/node_modules/gopd": { - "version": "1.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/graceful-fs": { - "version": "4.2.11", - "inBundle": true, - "license": "ISC" - }, - "node_modules/cdktf/node_modules/has-property-descriptors": { - "version": "1.0.2", - "inBundle": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/has-proto": { - "version": "1.0.3", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/has-symbols": { - "version": "1.0.3", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/hasown": { - "version": "2.0.2", - "inBundle": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/cdktf/node_modules/inflight": { - "version": "1.0.6", - "inBundle": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/cdktf/node_modules/inherits": { - "version": "2.0.4", - "inBundle": true, - "license": "ISC" - }, - "node_modules/cdktf/node_modules/isarray": { - "version": "2.0.5", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/json-stable-stringify": { - "version": "1.1.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "isarray": "^2.0.5", - "jsonify": "^0.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/jsonify": { - "version": "0.0.1", - "inBundle": true, - "license": "Public Domain", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/cdktf/node_modules/lazystream": { - "version": "1.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "readable-stream": "^2.0.5" - }, - "engines": { - "node": ">= 0.6.3" - } - }, - "node_modules/cdktf/node_modules/lazystream/node_modules/isarray": { - "version": "1.0.0", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/lazystream/node_modules/readable-stream": { - "version": "2.3.8", - "inBundle": true, - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/cdktf/node_modules/lazystream/node_modules/safe-buffer": { - "version": "5.1.2", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/lazystream/node_modules/string_decoder": { - "version": "1.1.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/cdktf/node_modules/lodash": { - "version": "4.17.21", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/lru-cache": { - "version": "6.0.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cdktf/node_modules/minimatch": { - "version": "5.1.6", - "inBundle": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cdktf/node_modules/normalize-path": { - "version": "3.0.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cdktf/node_modules/object-keys": { - "version": "1.1.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/cdktf/node_modules/once": { - "version": "1.4.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/cdktf/node_modules/process-nextick-args": { - "version": "2.0.1", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/queue-tick": { - "version": "1.0.1", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/readable-stream": { - "version": "3.6.2", - "inBundle": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/cdktf/node_modules/readdir-glob": { - "version": "1.1.3", - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "minimatch": "^5.1.0" - } - }, - "node_modules/cdktf/node_modules/safe-buffer": { - "version": "5.2.1", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/semver": { - "version": "7.6.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cdktf/node_modules/set-function-length": { - "version": "1.2.2", - "inBundle": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/cdktf/node_modules/streamx": { - "version": "2.16.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "fast-fifo": "^1.1.0", - "queue-tick": "^1.0.1" - }, - "optionalDependencies": { - "bare-events": "^2.2.0" - } - }, - "node_modules/cdktf/node_modules/string_decoder": { - "version": "1.3.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/cdktf/node_modules/tar-stream": { - "version": "3.1.7", - "inBundle": true, - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, - "node_modules/cdktf/node_modules/util-deprecate": { - "version": "1.0.2", - "inBundle": true, - "license": "MIT" - }, - "node_modules/cdktf/node_modules/wrappy": { - "version": "1.0.2", - "inBundle": true, - "license": "ISC" - }, - "node_modules/cdktf/node_modules/yallist": { - "version": "4.0.0", - "inBundle": true, - "license": "ISC" - }, - "node_modules/cdktf/node_modules/zip-stream": { - "version": "5.0.2", - "inBundle": true, - "license": "MIT", - "dependencies": { - "archiver-utils": "^4.0.1", - "compress-commons": "^5.0.1", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "dev": true - }, - "node_modules/cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-spinners": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", - "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-width": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", - "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", - "dev": true, - "engines": { - "node": ">= 12" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/code-excerpt": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-3.0.0.tgz", - "integrity": "sha512-VHNTVhd7KsLGOqfX3SyeO8RyYPMp1GJOg194VITk04WMYCv4plV68YWe6TJZxd9MhobjtpMRnVky01gqZsalaw==", - "dev": true, - "dependencies": { - "convert-to-spaces": "^1.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/codemaker": { - "version": "1.95.0", - "resolved": "https://registry.npmjs.org/codemaker/-/codemaker-1.95.0.tgz", - "integrity": "sha512-q/U2NeZSaKnVMarOi+BR8MbaHEFKVmBefTSSXj/0W4OBarw/uUT2qCPojYF16gJtfFz7qCkJeuP+zYDq+xNEpg==", - "dev": true, - "dependencies": { - "camelcase": "^6.3.0", - "decamelize": "^5.0.1", - "fs-extra": "^10.1.0" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/codemaker/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/codemaker/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/codemaker/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/codemaker/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/commonmark": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.30.0.tgz", - "integrity": "sha512-j1yoUo4gxPND1JWV9xj5ELih0yMv1iCWDG6eEQIPLSWLxzCXiFoyS7kvB+WwU+tZMf4snwJMMtaubV0laFpiBA==", - "dev": true, - "dependencies": { - "entities": "~2.0", - "mdurl": "~1.0.1", - "minimist": ">=1.2.2", - "string.prototype.repeat": "^0.2.0" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, - "node_modules/compress-commons": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz", - "integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==", - "dev": true, - "dependencies": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^4.0.2", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/constructs": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.3.0.tgz", - "integrity": "sha512-vbK8i3rIb/xwZxSpTjz3SagHn1qq9BChLEfy5Hf6fB3/2eFbrwt2n9kHwQcS0CPTRBesreeAcsJfMq2229FnbQ==", - "engines": { - "node": ">= 16.14.0" - } - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/convert-to-spaces": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz", - "integrity": "sha512-cj09EBuObp9gZNQCzc7hByQyrs6jVGE+o9kSJmeUoj+GiPiJvi5LYqEH/Hmme4+MTLHM+Ejtq+FChpjjEnsPdQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true - }, - "node_modules/crc-32": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", - "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", - "dev": true, - "bin": { - "crc32": "bin/crc32.njs" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/crc32-stream": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz", - "integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==", - "dev": true, - "dependencies": { - "crc-32": "^1.2.0", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "node_modules/cross-fetch": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", - "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", - "dev": true, - "dependencies": { - "node-fetch": "^2.6.12" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/date-format": { - "version": "4.0.14", - "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", - "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", - "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "dev": true, - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/dedent": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", - "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", - "dev": true, - "peerDependencies": { - "babel-plugin-macros": "^3.1.0" - }, - "peerDependenciesMeta": { - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/deep-equal": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz", - "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.5", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.2", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.1", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/detect-indent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", - "integrity": "sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/detect-libc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", - "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/detect-port": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.5.1.tgz", - "integrity": "sha512-aBzdj76lueB6uUst5iAs7+0H/oOjqI5D16XUWxlWMIMROhcM0rfsNVk93zTngq1dDNpoXRr++Sus7ETAExppAQ==", - "dev": true, - "dependencies": { - "address": "^1.0.1", - "debug": "4" - }, - "bin": { - "detect": "bin/detect-port.js", - "detect-port": "bin/detect-port.js" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "node_modules/downlevel-dts": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/downlevel-dts/-/downlevel-dts-0.11.0.tgz", - "integrity": "sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw==", - "dev": true, - "dependencies": { - "semver": "^7.3.2", - "shelljs": "^0.8.3", - "typescript": "next" - }, - "bin": { - "downlevel-dts": "index.js" - } - }, - "node_modules/downlevel-dts/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/downlevel-dts/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/downlevel-dts/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/electron-to-chromium": { - "version": "1.4.744", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.744.tgz", - "integrity": "sha512-nAGcF0yeKKfrP13LMFr5U1eghfFSvFLg302VUFzWlcjPOnUYd52yU5x6PBYrujhNbc4jYmZFrGZFK+xasaEzVA==", - "dev": true - }, - "node_modules/emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/entities": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz", - "integrity": "sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==", - "dev": true - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-object-atoms": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", - "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", - "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.4", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", - "dev": true, - "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "dev": true, - "dependencies": { - "pend": "~1.2.0" - } - }, - "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/figures/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true - }, - "node_modules/follow-redirects": { - "version": "1.15.6", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", - "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true - }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "dev": true - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/graphology": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/graphology/-/graphology-0.25.4.tgz", - "integrity": "sha512-33g0Ol9nkWdD6ulw687viS8YJQBxqG5LWII6FI6nul0pq6iM2t5EKquOTFDbyTblRB3O9I+7KX4xI8u5ffekAQ==", - "dev": true, - "dependencies": { - "events": "^3.3.0", - "obliterator": "^2.0.2" - }, - "peerDependencies": { - "graphology-types": ">=0.24.0" - } - }, - "node_modules/graphology-types": { - "version": "0.24.7", - "resolved": "https://registry.npmjs.org/graphology-types/-/graphology-types-0.24.7.tgz", - "integrity": "sha512-tdcqOOpwArNjEr0gNQKCXwaNCWnQJrog14nJNQPeemcLnXQUUGrsCWpWkVKt46zLjcS6/KGoayeJfHHyPDlvwA==", - "dev": true - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "node_modules/ink": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ink/-/ink-3.2.0.tgz", - "integrity": "sha512-firNp1q3xxTzoItj/eOOSZQnYSlyrWks5llCTVX37nJ59K3eXbQ8PtzCguqo8YI19EELo5QxaKnJd4VxzhU8tg==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.2.1", - "auto-bind": "4.0.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.0", - "cli-cursor": "^3.1.0", - "cli-truncate": "^2.1.0", - "code-excerpt": "^3.0.0", - "indent-string": "^4.0.0", - "is-ci": "^2.0.0", - "lodash": "^4.17.20", - "patch-console": "^1.0.0", - "react-devtools-core": "^4.19.1", - "react-reconciler": "^0.26.2", - "scheduler": "^0.20.2", - "signal-exit": "^3.0.2", - "slice-ansi": "^3.0.0", - "stack-utils": "^2.0.2", - "string-width": "^4.2.2", - "type-fest": "^0.12.0", - "widest-line": "^3.1.0", - "wrap-ansi": "^6.2.0", - "ws": "^7.5.5", - "yoga-layout-prebuilt": "^1.9.6" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@types/react": ">=16.8.0", - "react": ">=16.8.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/ink-select-input": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/ink-select-input/-/ink-select-input-4.2.2.tgz", - "integrity": "sha512-E5AS2Vnd4CSzEa7Rm+hG47wxRQo1ASfh4msKxO7FHmn/ym+GKSSsFIfR+FonqjKNDPXYJClw8lM47RdN3Pi+nw==", - "dev": true, - "dependencies": { - "arr-rotate": "^1.0.0", - "figures": "^3.2.0", - "lodash.isequal": "^4.5.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "ink": "^3.0.5", - "react": "^16.5.2 || ^17.0.0" - } - }, - "node_modules/ink-spinner": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/ink-spinner/-/ink-spinner-4.0.3.tgz", - "integrity": "sha512-uJ4nbH00MM9fjTJ5xdw0zzvtXMkeGb0WV6dzSWvFv2/+ks6FIhpkt+Ge/eLdh0Ah6Vjw5pLMyNfoHQpRDRVFbQ==", - "dev": true, - "dependencies": { - "cli-spinners": "^2.3.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "ink": ">=3.0.5", - "react": ">=16.8.2" - } - }, - "node_modules/ink-table": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/ink-table/-/ink-table-3.1.0.tgz", - "integrity": "sha512-qxVb4DIaEaJryvF9uZGydnmP9Hkmas3DCKVpEcBYC0E4eJd3qNgNe+PZKuzgCERFe9LfAS1TNWxCr9+AU4v3YA==", - "dev": true, - "dependencies": { - "object-hash": "^2.0.3" - }, - "peerDependencies": { - "ink": ">=3.0.0", - "react": ">=16.8.0" - } - }, - "node_modules/ink-testing-library": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ink-testing-library/-/ink-testing-library-2.1.0.tgz", - "integrity": "sha512-7TNlOjJlJXB33vG7yVa+MMO7hCjaC1bCn+zdpSjknWoLbOWMaFdKc7LJvqVkZ0rZv2+akhjXPrcR/dbxissjUw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@types/react": ">=16.8.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/ink-use-stdout-dimensions": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/ink-use-stdout-dimensions/-/ink-use-stdout-dimensions-1.0.5.tgz", - "integrity": "sha512-rVsqnw4tQEAJUoknU09+zHdDf30GJdkumkHr0iz/TOYMYEZJkYqziQSGJAM+Z+M603EDfO89+Nxyn/Ko2Zknfw==", - "dev": true, - "peerDependencies": { - "ink": ">=2.0.0", - "react": ">=16.0.0" - } - }, - "node_modules/ink/node_modules/type-fest": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", - "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ink/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "node_modules/is-ci/node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", - "dev": true, - "dependencies": { - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", - "dev": true, - "dependencies": { - "which-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-valid-domain": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-valid-domain/-/is-valid-domain-0.1.6.tgz", - "integrity": "sha512-ZKtq737eFkZr71At8NxOFcP9O1K89gW3DkdrGMpp1upr/ueWjj+Weh4l9AI4rN0Gt8W2M1w7jrG2b/Yv83Ljpg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - } - }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", - "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz", - "integrity": "sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.23.9", - "@babel/parser": "^7.23.9", - "@istanbuljs/schema": "^0.1.3", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", - "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", - "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", - "dev": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", - "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", - "dev": true, - "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", - "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-cli": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", - "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", - "dev": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-diff": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", - "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-docblock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", - "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", - "dev": true, - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", - "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-environment-node": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", - "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-haste-map": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", - "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", - "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", - "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", - "dev": true, - "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runtime": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", - "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", - "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", - "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "leven": "^3.1.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watcher": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", - "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", - "dev": true, - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jsii": { - "version": "5.3.29", - "resolved": "https://registry.npmjs.org/jsii/-/jsii-5.3.29.tgz", - "integrity": "sha512-vEEOtjD8s/C8ORHvN87Bt9jHcY1diJoC1sS+TVnCkeb4V9q5fOEVr4gl/FsU5ea8dSWZHdd7VqCtr0jYAwKleg==", - "dev": true, - "dependencies": { - "@jsii/check-node": "1.95.0", - "@jsii/spec": "^1.95.0", - "case": "^1.6.3", - "chalk": "^4", - "downlevel-dts": "^0.11.0", - "fast-deep-equal": "^3.1.3", - "log4js": "^6.9.1", - "semver": "^7.6.0", - "semver-intersect": "^1.5.0", - "sort-json": "^2.0.1", - "spdx-license-list": "^6.9.0", - "typescript": "~5.3", - "yargs": "^17.7.2" - }, - "bin": { - "jsii": "bin/jsii" - }, - "engines": { - "node": ">= 18.12.0" - } - }, - "node_modules/jsii-pacmak": { - "version": "1.95.0", - "resolved": "https://registry.npmjs.org/jsii-pacmak/-/jsii-pacmak-1.95.0.tgz", - "integrity": "sha512-h/eo3p3jG4/Wtb9WdavvcgXzyN5QXZck3k0xvIWp5SKxFLorQ+TWhY7BHG0e+VXl+mxcni6BuQ5wFLavq65RQQ==", - "dev": true, - "dependencies": { - "@jsii/check-node": "1.95.0", - "@jsii/spec": "^1.95.0", - "clone": "^2.1.2", - "codemaker": "^1.95.0", - "commonmark": "^0.30.0", - "escape-string-regexp": "^4.0.0", - "fs-extra": "^10.1.0", - "jsii-reflect": "^1.95.0", - "jsii-rosetta": "^1.95.0", - "semver": "^7.5.4", - "spdx-license-list": "^6.8.0", - "xmlbuilder": "^15.1.1", - "yargs": "^16.2.0" - }, - "bin": { - "jsii-pacmak": "bin/jsii-pacmak" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-pacmak/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/jsii-pacmak/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jsii-pacmak/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-pacmak/node_modules/jsii": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/jsii/-/jsii-1.97.0.tgz", - "integrity": "sha512-C3GA2Q50DkHnFozg7HKel7ZaBMCUKb/dzgH2ykfrbuJ/C/KebkPkqY/XRf95zGB42mzagPfawSLDFQiGGueQ9w==", - "dev": true, - "dependencies": { - "@jsii/check-node": "1.97.0", - "@jsii/spec": "^1.97.0", - "case": "^1.6.3", - "chalk": "^4", - "fast-deep-equal": "^3.1.3", - "fs-extra": "^10.1.0", - "log4js": "^6.9.1", - "semver": "^7.5.4", - "semver-intersect": "^1.4.0", - "sort-json": "^2.0.1", - "spdx-license-list": "^6.8.0", - "typescript": "~3.9.10", - "yargs": "^16.2.0" - }, - "bin": { - "jsii": "bin/jsii" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-pacmak/node_modules/jsii-rosetta": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-1.97.0.tgz", - "integrity": "sha512-cxHGvwMrH7lt+O24afEI2ljMbCOtTBCRwQU7Bia87nLkYNpysfFrrz+vUGZ1yi/7DOxhQShm1i4VGJJ8UhvEAg==", - "dev": true, - "dependencies": { - "@jsii/check-node": "1.97.0", - "@jsii/spec": "1.97.0", - "@xmldom/xmldom": "^0.8.10", - "commonmark": "^0.30.0", - "fast-glob": "^3.3.2", - "jsii": "1.97.0", - "semver": "^7.5.4", - "semver-intersect": "^1.4.0", - "stream-json": "^1.8.0", - "typescript": "~3.9.10", - "workerpool": "^6.5.1", - "yargs": "^16.2.0" - }, - "bin": { - "jsii-rosetta": "bin/jsii-rosetta" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-pacmak/node_modules/jsii-rosetta/node_modules/@jsii/check-node": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/@jsii/check-node/-/check-node-1.97.0.tgz", - "integrity": "sha512-n7t4p2JNyr6iBkAv/+9pDPU6hV/sa3Kqdp6oPw5v4/TqNyopGSGtxyOtNXtsBcN6zMibAVXmvhzZA+OBaX1FiQ==", - "dev": true, - "dependencies": { - "chalk": "^4.1.2", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-pacmak/node_modules/jsii/node_modules/@jsii/check-node": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/@jsii/check-node/-/check-node-1.97.0.tgz", - "integrity": "sha512-n7t4p2JNyr6iBkAv/+9pDPU6hV/sa3Kqdp6oPw5v4/TqNyopGSGtxyOtNXtsBcN6zMibAVXmvhzZA+OBaX1FiQ==", - "dev": true, - "dependencies": { - "chalk": "^4.1.2", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-pacmak/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsii-pacmak/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-pacmak/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-pacmak/node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/jsii-pacmak/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsii-pacmak/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/jsii-pacmak/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-pacmak/node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/jsii-reflect/-/jsii-reflect-1.97.0.tgz", - "integrity": "sha512-E1oV/kliliFiqR9TxX2H5jgUObtq300Jk0kXBJKq06A/kXQk1rmCIoxnV5VFAxyhnPkmhgudpUIuzWh6STUdJg==", - "dev": true, - "dependencies": { - "@jsii/check-node": "1.97.0", - "@jsii/spec": "^1.97.0", - "chalk": "^4", - "fs-extra": "^10.1.0", - "oo-ascii-tree": "^1.97.0", - "yargs": "^16.2.0" - }, - "bin": { - "jsii-tree": "bin/jsii-tree" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-reflect/node_modules/@jsii/check-node": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/@jsii/check-node/-/check-node-1.97.0.tgz", - "integrity": "sha512-n7t4p2JNyr6iBkAv/+9pDPU6hV/sa3Kqdp6oPw5v4/TqNyopGSGtxyOtNXtsBcN6zMibAVXmvhzZA+OBaX1FiQ==", - "dev": true, - "dependencies": { - "chalk": "^4.1.2", - "semver": "^7.5.4" - }, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/jsii-reflect/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/jsii-reflect/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsii-reflect/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsii-reflect/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsii-reflect/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/jsii-reflect/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-reflect/node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-rosetta": { - "version": "5.3.28", - "resolved": "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-5.3.28.tgz", - "integrity": "sha512-pvfaaMYJhsGz9BXmQenlC+aey2HTRiPwlTr7FcH4wr0THkKbIwChPpS26YWSGyNLmTqDZUvmQv+xDtMx5qFXGg==", - "dev": true, - "dependencies": { - "@jsii/check-node": "1.95.0", - "@jsii/spec": "^1.95.0", - "@xmldom/xmldom": "^0.8.10", - "chalk": "^4", - "commonmark": "^0.31.0", - "fast-glob": "^3.3.2", - "jsii": "~5.3.0", - "semver": "^7.6.0", - "semver-intersect": "^1.5.0", - "stream-json": "^1.8.0", - "typescript": "~5.3", - "workerpool": "^6.5.1", - "yargs": "^17.7.2" - }, - "bin": { - "jsii-rosetta": "bin/jsii-rosetta" - }, - "engines": { - "node": ">= 18.12.0" - } - }, - "node_modules/jsii-rosetta/node_modules/commonmark": { - "version": "0.31.0", - "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.31.0.tgz", - "integrity": "sha512-nuDsQ34gjmgAqjyIz6mbRWBW/XPE9wsBempAMBk2V/AA88ekztjTM46oi07J6c6Y/2Y8TdYCZi9L0pIBt/oMZw==", - "dev": true, - "dependencies": { - "entities": "~3.0.1", - "mdurl": "~1.0.1", - "minimist": "~1.2.5", - "string.prototype.repeat": "^1.0.0" - }, - "bin": { - "commonmark": "bin/commonmark" - }, - "engines": { - "node": "*" - } - }, - "node_modules/jsii-rosetta/node_modules/entities": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz", - "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==", - "dev": true, - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/jsii-rosetta/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-rosetta/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-rosetta/node_modules/string.prototype.repeat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", - "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "node_modules/jsii-rosetta/node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/jsii-rosetta/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/jsii-srcmak": { - "version": "0.1.1039", - "resolved": "https://registry.npmjs.org/jsii-srcmak/-/jsii-srcmak-0.1.1039.tgz", - "integrity": "sha512-3lBjyxBy5UpPGK8bXFmVRzaoK6caDQ5DO40Qbyv3LOWtrsuUQmuVI2/5wRwNtfg6sFzOFD3+kE3LZuNXo7QE/Q==", - "dev": true, - "dependencies": { - "fs-extra": "^9.1.0", - "jsii": "~5.3.18", - "jsii-pacmak": "^1.94.0", - "ncp": "^2.0.0", - "yargs": "^15.4.1" - }, - "bin": { - "jsii-srcmak": "bin/jsii-srcmak" - } - }, - "node_modules/jsii-srcmak/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/jsii-srcmak/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jsii-srcmak/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii-srcmak/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsii-srcmak/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsii-srcmak/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsii-srcmak/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/jsii-srcmak/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsii-srcmak/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsii/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jsii/node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/jsii/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/lazystream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", - "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "dev": true, - "dependencies": { - "readable-stream": "^2.0.5" - }, - "engines": { - "node": ">= 0.6.3" - } - }, - "node_modules/lazystream/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true - }, - "node_modules/lazystream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/lazystream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/lazystream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", - "dev": true - }, - "node_modules/lodash.difference": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==", - "dev": true - }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", - "dev": true - }, - "node_modules/lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", - "dev": true - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "dev": true - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true - }, - "node_modules/lodash.union": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", - "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==", - "dev": true - }, - "node_modules/log4js": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.9.1.tgz", - "integrity": "sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==", - "dev": true, - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "flatted": "^3.2.7", - "rfdc": "^1.3.0", - "streamroller": "^3.1.5" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "dev": true - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", - "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/mute-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", - "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/nan": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", - "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==", - "dev": true - }, - "node_modules/napi-build-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", - "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/ncp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", - "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", - "dev": true, - "bin": { - "ncp": "bin/ncp" - } - }, - "node_modules/node-abi": { - "version": "3.60.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.60.0.tgz", - "integrity": "sha512-zcGgwoXbzw9NczqbGzAWL/ToDYAxv1V8gL1D67ClbdkIfeeDBbY0GelZtC25ayLvVjr2q2cloHeQV1R0QAWqRQ==", - "dev": true, - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-abi/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-abi/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-abi/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-hash": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz", - "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-is": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", - "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/obliterator": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/oo-ascii-tree": { - "version": "1.97.0", - "resolved": "https://registry.npmjs.org/oo-ascii-tree/-/oo-ascii-tree-1.97.0.tgz", - "integrity": "sha512-LVwQ1J6icSJ2buccnLCWdDtxxTwB0HXoB7PLPap4u90T9pAs2HqE35DpV6nV/6O1aVEO4OzwDeE2gLCUCkoGWQ==", - "dev": true, - "engines": { - "node": ">= 14.17.0" - } - }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-gitignore": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-gitignore/-/parse-gitignore-1.0.1.tgz", - "integrity": "sha512-UGyowyjtx26n65kdAMWhm6/3uy5uSrpcuH7tt+QEVudiBoVS+eqHxD5kbi9oWVRwj7sCzXqwuM+rUGw7earl6A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/patch-console": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/patch-console/-/patch-console-1.0.0.tgz", - "integrity": "sha512-nxl9nrnLQmh64iTzMfyylSlRozL7kAXIaxw1fVcLYdyhNkJCRUzirRZTikXGJsg+hc4fqpneTK6iU2H1Q8THSA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-scurry": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz", - "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", - "dev": true, - "engines": { - "node": "14 || >=16.14" - } - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "dev": true, - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/pidusage": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pidusage/-/pidusage-3.0.2.tgz", - "integrity": "sha512-g0VU+y08pKw5M8EZ2rIGiEBaB8wrQMjYGFfW2QVIfyT8V+fq8YFLkvlz4bz5ljvFDJYNFCWT3PWqcRr2FKO81w==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dev": true, - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/prebuild-install": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz", - "integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==", - "dev": true, - "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^1.0.1", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/pure-rand": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", - "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ] - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "dev": true, - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-devtools-core": { - "version": "4.28.5", - "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.28.5.tgz", - "integrity": "sha512-cq/o30z9W2Wb4rzBefjv5fBalHU0rJGZCHAkf/RHSBWSSYwh8PlQTqqOJmgIIbBtpj27T6FIPXeomIjZtCNVqA==", - "dev": true, - "dependencies": { - "shell-quote": "^1.6.1", - "ws": "^7" - } - }, - "node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/react-reconciler": { - "version": "0.26.2", - "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.26.2.tgz", - "integrity": "sha512-nK6kgY28HwrMNwDnMui3dvm3rCFjZrcGiuwLc5COUipBK5hWHLOxMJhSnSomirqWwjPBJKV1QcbkI0VJr7Gl1Q==", - "dev": true, - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "scheduler": "^0.20.2" - }, - "engines": { - "node": ">=0.10.0" - }, - "peerDependencies": { - "react": "^17.0.2" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdir-glob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", - "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", - "dev": true, - "dependencies": { - "minimatch": "^5.1.0" - } - }, - "node_modules/readdir-glob/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/readdir-glob/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dev": true, - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", - "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.6", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "node_modules/reserved-words": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz", - "integrity": "sha512-0S5SrIUJ9LfpbVl4Yzij6VipUdafHrOTzvmfazSw/jeZrZtQK303OPZW+obtkaw7jQlTQppy0UvZWm9872PbRw==", - "dev": true - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfdc": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz", - "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==", - "dev": true - }, - "node_modules/run-async": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz", - "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-regex": "^1.1.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/sax": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", - "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==", - "dev": true - }, - "node_modules/scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", - "dev": true, - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/semver-intersect": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/semver-intersect/-/semver-intersect-1.5.0.tgz", - "integrity": "sha512-BDjWX7yCC0haX4W/zrnV2JaMpVirwaEkGOBmgRQtH++F1N3xl9v7k9H44xfTqwl+yLNNSbMKosoVSTIiJVQ2Pw==", - "dev": true, - "dependencies": { - "semver": "^6.3.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-get": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", - "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/sort-json": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/sort-json/-/sort-json-2.0.1.tgz", - "integrity": "sha512-s8cs2bcsQCzo/P2T/uoU6Js4dS/jnX8+4xunziNoq9qmSpZNCrRIAIvp4avsz0ST18HycV4z/7myJ7jsHWB2XQ==", - "dev": true, - "dependencies": { - "detect-indent": "^5.0.0", - "detect-newline": "^2.1.0", - "minimist": "^1.2.0" - }, - "bin": { - "sort-json": "app/cmd.js" - } - }, - "node_modules/sort-json/node_modules/detect-newline": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", - "integrity": "sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/spdx-license-list": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/spdx-license-list/-/spdx-license-list-6.9.0.tgz", - "integrity": "sha512-L2jl5vc2j6jxWcNCvcVj/BW9A8yGIG02Dw+IUw0ZxDM70f7Ylf5Hq39appV1BI9yxyWQRpq2TQ1qaXvf+yjkqA==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/sscaff": { - "version": "1.2.274", - "resolved": "https://registry.npmjs.org/sscaff/-/sscaff-1.2.274.tgz", - "integrity": "sha512-sztRa50SL1LVxZnF1au6QT1SC2z0S1oEOyi2Kpnlg6urDns93aL32YxiJcNkLcY+VHFtVqm/SRv4cb+6LeoBQA==", - "dev": true, - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "dependencies": { - "internal-slot": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/stream-buffers": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.2.tgz", - "integrity": "sha512-DQi1h8VEBA/lURbSwFtEHnSTb9s2/pwLEaFuNhXwy1Dx3Sa0lOuYT2yNUr4/j2fs8oCAMANtrZ5OrPZtyVs3MQ==", - "dev": true, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/stream-chain": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", - "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", - "dev": true - }, - "node_modules/stream-json": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.8.0.tgz", - "integrity": "sha512-HZfXngYHUAr1exT4fxlbc1IOce1RYxp2ldeaf97LYCOPSoOqY/1Psp7iGvpb+6JIOgkra9zDYnPX01hGAHzEPw==", - "dev": true, - "dependencies": { - "stream-chain": "^2.2.5" - } - }, - "node_modules/streamroller": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", - "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", - "dev": true, - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "fs-extra": "^8.1.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.repeat": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", - "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==", - "dev": true - }, - "node_modules/string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "dev": true, - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "dev": true, - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true - }, - "node_modules/ts-jest": { - "version": "29.1.2", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", - "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", - "dev": true, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^29.0.0", - "json5": "^2.2.3", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "^7.5.3", - "yargs-parser": "^21.0.1" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^16.10.0 || ^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@jest/types": "^29.0.0", - "babel-jest": "^29.0.0", - "jest": "^29.0.0", - "typescript": ">=4.3 <6" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@jest/types": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/ts-jest/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", - "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true - }, - "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "node_modules/v8-to-istanbul": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", - "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dev": true, - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true - }, - "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "dev": true, - "dependencies": { - "string-width": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/workerpool": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-js": { - "version": "1.6.11", - "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", - "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", - "dev": true, - "dependencies": { - "sax": "^1.2.4" - }, - "bin": { - "xml-js": "bin/cli.js" - } - }, - "node_modules/xmlbuilder": { - "version": "15.1.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", - "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", - "dev": true, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/xstate": { - "version": "4.38.3", - "resolved": "https://registry.npmjs.org/xstate/-/xstate-4.38.3.tgz", - "integrity": "sha512-SH7nAaaPQx57dx6qvfcIgqKRXIh4L0A1iYEqim4s1u7c9VoCgzZc+63FY90AKU4ZzOC2cfJzTnpO4zK7fCUzzw==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/xstate" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yoga-layout-prebuilt": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/yoga-layout-prebuilt/-/yoga-layout-prebuilt-1.10.0.tgz", - "integrity": "sha512-YnOmtSbv4MTf7RGJMK0FvZ+KD8OEe/J5BNnR0GHhD8J/XcG/Qvxgszm0Un6FTHWW4uHlTgP0IztiXQnGyIR45g==", - "dev": true, - "dependencies": { - "@types/yoga-layout": "1.9.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/zip-stream": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz", - "integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==", - "dev": true, - "dependencies": { - "archiver-utils": "^3.0.4", - "compress-commons": "^4.1.2", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/zip-stream/node_modules/archiver-utils": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.4.tgz", - "integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==", - "dev": true, - "dependencies": { - "glob": "^7.2.3", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/zod": { - "version": "3.22.4", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", - "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - } - } -} diff --git a/.devops/cdktf/package.json b/.devops/cdktf/package.json deleted file mode 100644 index 3f0351c..0000000 --- a/.devops/cdktf/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "cdktf", - "version": "1.0.0", - "main": "main.js", - "types": "main.ts", - "license": "MPL-2.0", - "private": true, - "scripts": { - "get": "cdktf get", - "build": "tsc", - "synth": "cdktf synth", - "compile": "tsc --pretty", - "watch": "tsc -w", - "test": "jest", - "test:watch": "jest --watch", - "upgrade": "npm i cdktf@latest cdktf-cli@latest", - "upgrade:next": "npm i cdktf@next cdktf-cli@next" - }, - "engines": { - "node": ">=20.0" - }, - "dependencies": { - "@cdktf/provider-aws": "^19.15.0", - "cdktf": "^0.20.7", - "constructs": "^10.3.0" - }, - "devDependencies": { - "@types/jest": "^29.5.12", - "@types/node": "^20.12.7", - "cdktf-cli": "^0.20.7", - "dotenv": "^16.4.5", - "jest": "^29.7.0", - "ts-jest": "^29.1.2", - "ts-node": "^10.9.2", - "typescript": "^5.4.5" - } -} diff --git a/.devops/cdktf/setup.js b/.devops/cdktf/setup.js deleted file mode 100644 index 0b7e72f..0000000 --- a/.devops/cdktf/setup.js +++ /dev/null @@ -1,2 +0,0 @@ -const cdktf = require("cdktf"); -cdktf.Testing.setupJest(); diff --git a/.devops/cdktf/src/buildspec.yaml b/.devops/cdktf/src/buildspec.yaml deleted file mode 100644 index 03e8874..0000000 --- a/.devops/cdktf/src/buildspec.yaml +++ /dev/null @@ -1,17 +0,0 @@ -version: 0.2 -phases: - install: - runtime-versions: - nodejs: 18 - commands: - - wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg - - echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list - - sudo apt update && sudo apt install terraform - pre_build: - commands: - - cd .devops/cdktf - - npm ci - - npx cdktf get - build: - commands: - - npx cdktf deploy ${stackId} --auto-approve diff --git a/.devops/cdktf/src/deployment-pipeline.ts b/.devops/cdktf/src/deployment-pipeline.ts deleted file mode 100644 index 925fd04..0000000 --- a/.devops/cdktf/src/deployment-pipeline.ts +++ /dev/null @@ -1,309 +0,0 @@ -import { - CodebuildProject, - type CodebuildProjectEnvironmentEnvironmentVariable, -} from '@cdktf/provider-aws/lib/codebuild-project'; -import { Codepipeline } from '@cdktf/provider-aws/lib/codepipeline'; -import { DataAwsCodestarconnectionsConnection } from '@cdktf/provider-aws/lib/data-aws-codestarconnections-connection'; -import { DataAwsIamPolicyDocument } from '@cdktf/provider-aws/lib/data-aws-iam-policy-document'; -import { DataAwsKmsAlias } from '@cdktf/provider-aws/lib/data-aws-kms-alias'; -import { DataAwsS3Bucket } from '@cdktf/provider-aws/lib/data-aws-s3-bucket'; -import { IamRole } from '@cdktf/provider-aws/lib/iam-role'; -import { IamRolePolicy } from '@cdktf/provider-aws/lib/iam-role-policy'; -import { S3Bucket } from '@cdktf/provider-aws/lib/s3-bucket'; -import { AssetType, Fn, TerraformAsset } from 'cdktf'; -import { Construct } from 'constructs'; - -type DeploymentPipelineProps = { - pipelineName: string; - environmentVariables: CodebuildProjectEnvironmentEnvironmentVariable[]; - stateBucket: string; - targetStackId: string; - sourceDirectory: string; - sourceBranch: string; -}; - -export class DeploymentPipeline extends Construct { - constructor(scope: Construct, id: string, props: DeploymentPipelineProps) { - super(scope, id); - - const bucket = new S3Bucket(this, 'bucket', {}); - - const codeStarConnection = new DataAwsCodestarconnectionsConnection( - this, - 'codestar-connection', - { - // TODO don't hardcode the connection ARN - arn: 'arn:aws:codestar-connections:us-east-2:361188080279:connection/dae8a93b-a690-4eeb-8464-74932b3ca612', - }, - ); - - const codepipelinePermissionPolicyDocument = new DataAwsIamPolicyDocument( - this, - 'policy-document', - { - statement: [ - { - effect: 'Allow', - actions: [ - 's3:GetObject', - 's3:GetObjectVersion', - 's3:GetBucketVersioning', - 's3:PutObjectAcl', - 's3:PutObject', - ], - resources: [bucket.arn, `${bucket.arn}/*`], - }, - { - actions: ['codestar-connections:UseConnection'], - effect: 'Allow', - resources: [codeStarConnection.arn], - }, - { - actions: ['codebuild:BatchGetBuilds', 'codebuild:StartBuild'], - effect: 'Allow', - resources: ['*'], - }, - ], - }, - ); - - const codepipelineAssumeRolePolicy = new DataAwsIamPolicyDocument( - this, - 'assume-role-policy', - { - statement: [ - { - effect: 'Allow', - principals: [ - { - type: 'Service', - identifiers: ['codepipeline.amazonaws.com'], - }, - ], - actions: ['sts:AssumeRole'], - }, - ], - }, - ); - - const codepipelineRole = new IamRole(this, 'codepipeline-role', { - assumeRolePolicy: codepipelineAssumeRolePolicy.json, - }); - - new IamRolePolicy(this, 'codepipeline-policy', { - role: codepipelineRole.id, - policy: codepipelinePermissionPolicyDocument.json, - }); - - const kmsAlias = new DataAwsKmsAlias(this, 'kms-alias', { - name: 'alias/aws/s3', - }); - - const codebuildAssumeRolePolicyDocument = new DataAwsIamPolicyDocument( - this, - 'codebuild-assume-role-policy-document', - { - statement: [ - { - actions: ['sts:AssumeRole'], - effect: 'Allow', - principals: [ - { - identifiers: ['codebuild.amazonaws.com'], - type: 'Service', - }, - ], - }, - ], - }, - ); - - const stateBucket = new DataAwsS3Bucket(this, 'state-bucket', { - bucket: props.stateBucket, - }); - - const codebuildIamRole = new IamRole(this, 'codebuild-role', { - assumeRolePolicy: codebuildAssumeRolePolicyDocument.json, - }); - - const codebuildIamPolicyDocument = new DataAwsIamPolicyDocument( - this, - 'codebuild-iam-policy-document', - { - statement: [ - { - actions: [ - 'logs:CreateLogGroup', - 'logs:CreateLogStream', - 'logs:PutLogEvents', - ], - effect: 'Allow', - resources: ['*'], - }, - { - actions: ['s3:*'], - effect: 'Allow', - resources: [bucket.arn, `${bucket.arn}/*`], - }, - { - actions: [ - 's3:GetObject', - 's3:GetObjectVersion', - 's3:GetBucketVersioning', - 's3:PutObjectAcl', - 's3:PutObject', - 's3:ListBucket', - ], - effect: 'Allow', - resources: [stateBucket.arn, `${stateBucket.arn}/*`], - }, - { - actions: ['secretsmanager:GetSecretValue'], - effect: 'Allow', - resources: [ - 'arn:aws:secretsmanager:us-east-2:361188080279:secret:CI/scylla-UdkHbh', - ], - }, - { - actions: ['codestar-connections:*'], - effect: 'Allow', - resources: [codeStarConnection.arn], - }, - { - actions: ['kms:ListAliases'], - effect: 'Allow', - resources: ['*'], - }, - { - actions: ['codebuild:BatchGetProjects', 'codepipeline:*'], - effect: 'Allow', - resources: ['*'], - }, - { - actions: ['*'], - effect: 'Allow', - resources: [codepipelineRole.arn, codebuildIamRole.arn], - }, - { - actions: ['kms:DescribeKey'], - effect: 'Allow', - resources: [kmsAlias.targetKeyArn], - }, - ], - }, - ); - - new IamRolePolicy(this, 'codebuild-policy', { - policy: codebuildIamPolicyDocument.json, - role: codebuildIamRole.name, - }); - - const buildspecAsset = new TerraformAsset(this, 'buildspec', { - path: './src/buildspec.yaml', - type: AssetType.FILE, - }); - - const buildspec = Fn.templatefile(buildspecAsset.path, { - stackId: props.targetStackId, - }); - - const codebuildProject = new CodebuildProject(this, 'codebuild', { - name: 'scylla-codebuild', - buildTimeout: 60, - serviceRole: codebuildIamRole.arn, - artifacts: { - type: 'CODEPIPELINE', - }, - environment: { - computeType: 'BUILD_GENERAL1_SMALL', - image: 'aws/codebuild/standard:7.0', - type: 'LINUX_CONTAINER', - environmentVariable: [ - { - name: 'CODEBUILD_CONFIG_AUTO_discover', - type: 'PLAINTEXT', - value: 'true', - }, - ...props.environmentVariables, - ], - }, - source: { - type: 'CODEPIPELINE', - buildspec: buildspec, - }, - }); - - const sourceActionName = 'Source'; - - new Codepipeline(this, 'codepipeline', { - name: props.pipelineName, - roleArn: codepipelineRole.arn, - pipelineType: 'V2', - trigger: [ - { - providerType: 'CodeStarSourceConnection', - gitConfiguration: { - sourceActionName, - push: [ - { - branches: { - includes: [props.sourceBranch], - }, - filePaths: { - includes: [`.devops/cdktf/src/${props.sourceDirectory}`], - }, - }, - ], - }, - }, - ], - artifactStore: [ - { - location: bucket.bucket, - type: 'S3', - encryptionKey: { - id: kmsAlias.arn, - type: 'KMS', - }, - }, - ], - stage: [ - { - name: 'Source', - action: [ - { - name: sourceActionName, - category: 'Source', - owner: 'AWS', - provider: 'CodeStarSourceConnection', - version: '1', - outputArtifacts: ['source_output'], - configuration: { - ConnectionArn: codeStarConnection.arn, - FullRepositoryId: 'coopapi/coop-monorepo', - BranchName: props.sourceBranch, - }, - }, - ], - }, - { - action: [ - { - category: 'Build', - configuration: { - ProjectName: codebuildProject.name, - }, - inputArtifacts: ['source_output'], - name: 'Build', - outputArtifacts: ['build_output'], - owner: 'AWS', - provider: 'CodeBuild', - version: '1', - }, - ], - name: 'Build', - }, - ], - }); - } -} diff --git a/.devops/cdktf/src/main.ts b/.devops/cdktf/src/main.ts deleted file mode 100644 index 8ef178b..0000000 --- a/.devops/cdktf/src/main.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { App } from 'cdktf'; - -import { ScyllaStack } from './scylla/scylla'; -import { StateBackendStack } from './state-backend'; -import type { StackProps } from './types'; - -export type StateBackendStackProps = StackProps & {}; - -const app = new App(); - -export type EnvironmentProps = StackProps & { - scylla: { - clusterName: string; - nodeType: string; - scyllaVersion: string; - nodeCount: number; - nodeDiskSize: number; - }; - sourceBranch: string; - lifecycle: { - preventDestroy: boolean; - }; -}; - -function deployEnvironment(props: EnvironmentProps) { - new StateBackendStack(app, `${props.environment}-state-backends`, { - ...props, - }); - new ScyllaStack(app, `${props.environment}-scylla`, { - ...props, - }); -} - -deployEnvironment({ - region: 'us-east-2', - environment: 'staging', - sourceBranch: 'staging', - lifecycle: { - preventDestroy: false, - }, - scylla: { - clusterName: 'Coop Staging', - nodeType: 't3.micro', - nodeCount: 3, - nodeDiskSize: 60, - scyllaVersion: '2024.1.4', - }, -}); - -deployEnvironment({ - region: 'us-east-2', - environment: 'production', - sourceBranch: 'main', - lifecycle: { - preventDestroy: true, - }, - scylla: { - clusterName: 'Coop Prod', - nodeType: 'i3en.large', - scyllaVersion: '2024.1.4', - nodeCount: 9, - nodeDiskSize: 1250, - }, -}); - -app.synth(); diff --git a/.devops/cdktf/src/scylla/scylla.ts b/.devops/cdktf/src/scylla/scylla.ts deleted file mode 100644 index 8070dc0..0000000 --- a/.devops/cdktf/src/scylla/scylla.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { S3Backend, TerraformStack } from 'cdktf'; -import type { Construct } from 'constructs'; - -import { Cluster } from '../../.gen/providers/scylladbcloud/cluster/index'; -import { ScylladbcloudProvider } from '../../.gen/providers/scylladbcloud/provider/index'; -import { DeploymentPipeline } from '../deployment-pipeline'; -import { type EnvironmentProps } from '../main'; -import { makeAwsProvider, makeStateBucketName } from '../utils'; - -import path = require('path'); - -export class ScyllaStack extends TerraformStack { - constructor(scope: Construct, id: string, props: EnvironmentProps) { - super(scope, id); - const stateBucket = makeStateBucketName(props); - new S3Backend(this, { - bucket: stateBucket, - key: `${id}.tfstate`, - region: props.region, - }); - - if (!process.env.SCYLLA_CLOUD_TOKEN) { - throw new Error('SCYLLA_CLOUD_TOKEN environment variable must be set.'); - } - - new ScylladbcloudProvider(this, 'scylladbcloud', { - token: process.env.SCYLLA_CLOUD_TOKEN, - }); - - makeAwsProvider(this, props.region, props.environment); - - new Cluster(this, 'cluster', { - // this has to be an empty string since leaving it undefined defaults to - // the wrong value - alternatorWriteIsolation: '', - cidrBlock: '172.31.0.0/16', - cloud: 'AWS', - enableDns: true, - enableVpcPeering: true, - name: props.scylla.clusterName, - nodeCount: props.scylla.nodeCount, - nodeDiskSize: props.scylla.nodeDiskSize, - nodeType: props.scylla.nodeType, - region: props.region, - scyllaVersion: props.scylla.scyllaVersion, - userApiInterface: 'CQL', - lifecycle: props.lifecycle, - }); - - new DeploymentPipeline(this, 'deployment-pipeline', { - pipelineName: id, - stateBucket, - targetStackId: id, - sourceBranch: props.sourceBranch, - sourceDirectory: path.basename(__dirname), - environmentVariables: [ - { - name: 'SCYLLA_CLOUD_TOKEN', - type: 'SECRETS_MANAGER', - value: 'CI/scylla:token', - }, - ], - }); - } -} diff --git a/.devops/cdktf/src/state-backend.ts b/.devops/cdktf/src/state-backend.ts deleted file mode 100644 index 05bf0fe..0000000 --- a/.devops/cdktf/src/state-backend.ts +++ /dev/null @@ -1,19 +0,0 @@ -import * as Aws from '@cdktf/provider-aws'; -import { TerraformStack } from 'cdktf'; -import { Construct } from 'constructs'; - -import { StateBackendStackProps } from './main'; -import { makeAwsProvider, makeStateBucketName } from './utils'; - -export class StateBackendStack extends TerraformStack { - constructor(scope: Construct, id: string, props: StateBackendStackProps) { - super(scope, id); - const { region, environment } = props; - - makeAwsProvider(this, region, environment); - - new Aws.s3Bucket.S3Bucket(this, 'backend-bucket', { - bucket: makeStateBucketName(props), - }); - } -} diff --git a/.devops/cdktf/src/types.ts b/.devops/cdktf/src/types.ts deleted file mode 100644 index ce8fecf..0000000 --- a/.devops/cdktf/src/types.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type StackProps = { - region: string; - environment: 'staging' | 'production'; -}; diff --git a/.devops/cdktf/src/utils.ts b/.devops/cdktf/src/utils.ts deleted file mode 100644 index ea86acf..0000000 --- a/.devops/cdktf/src/utils.ts +++ /dev/null @@ -1,46 +0,0 @@ -import * as Aws from '@cdktf/provider-aws'; -import { S3Backend } from 'cdktf'; -import type { Construct } from 'constructs'; - -import type { StackProps } from './types'; - -export function makeStateBucketName(stackProps: StackProps) { - return `coop-${stackProps.environment}-${stackProps.region}-terraform-backend`; -} - -export function toTitleCase(input: string): string { - return input - .toLowerCase() // Convert the entire string to lowercase first - .split(' ') // Split the string into words - .map((word) => word.charAt(0).toUpperCase() + word.substring(1)) // Capitalize the first letter of each word - .join(' '); // Join the words back into a single string -} - -export function makeS3Backend( - scope: Construct, - stackId: string, - props: StackProps, -) { - const stateBucket = makeStateBucketName(props); - return new S3Backend(scope, { - bucket: stateBucket, - key: `${stackId}.tfstate`, - region: props.region, - }); -} -export function makeAwsProvider( - scope: Construct, - region: string, - environment: string, -) { - return new Aws.provider.AwsProvider(scope, 'aws-provider', { - region, - defaultTags: [ - { - tags: { - environment, - }, - }, - ], - }); -} diff --git a/.devops/cdktf/tsconfig.json b/.devops/cdktf/tsconfig.json deleted file mode 100644 index 8ac02f8..0000000 --- a/.devops/cdktf/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "alwaysStrict": true, - "declaration": true, - "experimentalDecorators": true, - "inlineSourceMap": true, - "inlineSources": true, - "lib": ["es2018"], - "module": "CommonJS", - "noEmitOnError": true, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "strict": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, - "stripInternal": true, - "target": "ES2018", - "incremental": true, - "skipLibCheck": true - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules", "cdktf.out"] -} diff --git a/.devops/charts/app/.helmignore b/.devops/charts/app/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/.devops/charts/app/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/.devops/charts/app/Chart.yaml b/.devops/charts/app/Chart.yaml deleted file mode 100644 index 9c5d298..0000000 --- a/.devops/charts/app/Chart.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v2 -name: app -description: A Helm chart for Coop apps. - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: '1.16.0' diff --git a/.devops/charts/app/templates/NOTES.txt b/.devops/charts/app/templates/NOTES.txt deleted file mode 100644 index 01a7d7b..0000000 --- a/.devops/charts/app/templates/NOTES.txt +++ /dev/null @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "app.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "app.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "app.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "app.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} diff --git a/.devops/charts/app/templates/_helpers.tpl b/.devops/charts/app/templates/_helpers.tpl deleted file mode 100644 index 6e13b3a..0000000 --- a/.devops/charts/app/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "app.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "app.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "app.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "app.labels" -}} -helm.sh/chart: {{ include "app.chart" . }} -{{ include "app.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "app.selectorLabels" -}} -app.kubernetes.io/name: {{ include "app.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "app.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "app.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} diff --git a/.devops/charts/app/templates/deployment.yaml b/.devops/charts/app/templates/deployment.yaml deleted file mode 100644 index 7e5f5dd..0000000 --- a/.devops/charts/app/templates/deployment.yaml +++ /dev/null @@ -1,78 +0,0 @@ -{{- if eq .Values.mode "deployment" }} -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "app.fullname" . }} - {{- with .Values.deploymentAnnotations }} - annotations: - {{- toYaml .Values.deploymentAnnotations | nindent 4 }} - {{- end }} - labels: - {{- include "app.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "app.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "app.labels" . | nindent 8 }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "app.serviceAccountName" . }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- with .Values.env }} - env: - {{- toYaml . | nindent 12 }} - {{- end }} - ports: - - name: http - containerPort: {{ .Values.service.port }} - protocol: TCP - livenessProbe: - {{- toYaml .Values.livenessProbe | nindent 12 }} - readinessProbe: - {{- toYaml .Values.readinessProbe | nindent 12 }} - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} - volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.volumes }} - volumes: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} -{{- end }} diff --git a/.devops/charts/app/templates/hpa.yaml b/.devops/charts/app/templates/hpa.yaml deleted file mode 100644 index 6b3b031..0000000 --- a/.devops/charts/app/templates/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "app.fullname" . }} - labels: - {{- include "app.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: argoproj.io/v1alpha1 - kind: Rollout - name: {{ include "app.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/.devops/charts/app/templates/ingress.yaml b/.devops/charts/app/templates/ingress.yaml deleted file mode 100644 index ced20f9..0000000 --- a/.devops/charts/app/templates/ingress.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "app.fullname" . -}} -{{- $svcPort := .Values.service.port -}} -{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} - {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} - {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} - {{- end }} -{{- end }} -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1 -{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - {{- include "app.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} - ingressClassName: {{ .Values.ingress.className }} - {{- end }} - {{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} - {{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ .path }} - {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: {{ .pathType }} - {{- end }} - backend: - {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} - service: - name: {{ $fullName }} - port: - number: {{ $svcPort }} - {{- else }} - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/.devops/charts/app/templates/rollout.yaml b/.devops/charts/app/templates/rollout.yaml deleted file mode 100644 index 1131d11..0000000 --- a/.devops/charts/app/templates/rollout.yaml +++ /dev/null @@ -1,84 +0,0 @@ -{{- if eq .Values.mode "rollout" }} -apiVersion: argoproj.io/v1alpha1 -kind: Rollout -metadata: - name: {{ include "app.fullname" . }} - {{- with .Values.rolloutAnnotations }} - annotations: - {{- toYaml .Values.rolloutAnnotations | nindent 4 }} - {{- end }} - labels: - {{- include "app.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - strategy: - canary: - steps: - - setWeight: 20 - - pause: - duration: 10s - selector: - matchLabels: - {{- include "app.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "app.labels" . | nindent 8 }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "app.serviceAccountName" . }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- with .Values.env }} - env: - {{- toYaml . | nindent 12 }} - {{- end }} - ports: - - name: http - containerPort: {{ .Values.service.port }} - protocol: TCP - livenessProbe: - {{- toYaml .Values.livenessProbe | nindent 12 }} - readinessProbe: - {{- toYaml .Values.readinessProbe | nindent 12 }} - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.volumeMounts }} - volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - {{- with .Values.volumes }} - volumes: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} -{{- end }} diff --git a/.devops/charts/app/templates/secretproviderclass.yaml b/.devops/charts/app/templates/secretproviderclass.yaml deleted file mode 100644 index aa0896f..0000000 --- a/.devops/charts/app/templates/secretproviderclass.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: secrets-store.csi.x-k8s.io/v1alpha1 -kind: SecretProviderClass -metadata: - name: {{ .Values.secretProviderClassName | default .Release.Name }} -spec: - provider: aws - parameters: - objects: | - {{- range .Values.secrets }} - - objectName: "{{ .objectName }}" - {{- if .objectAlias }} - objectAlias: "{{ .objectAlias }}" - {{- end }} - {{- if .jmesPath }} - jmesPath: - {{- range .jmesPath }} - - path: "{{ .path }}" - objectAlias: "{{ .objectAlias }}" - {{- end }} - {{- end }} - {{- end }} - secretObjects: - - secretName: {{ .Release.Name }}-secret - type: Opaque - data: - {{- range .Values.secrets }} - {{- if .objectAlias }} - - key: "{{ .objectAlias }}" - objectName: "{{ .objectAlias }}" - {{- end }} - {{- if .jmesPath }} - {{- range .jmesPath }} - - key: "{{ .objectAlias }}" - objectName: "{{ .objectAlias }}" - {{- end }} - {{- end }} - {{- end }} diff --git a/.devops/charts/app/templates/service.yaml b/.devops/charts/app/templates/service.yaml deleted file mode 100644 index a3164fc..0000000 --- a/.devops/charts/app/templates/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "app.fullname" . }} - labels: - {{- include "app.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: http - protocol: TCP - name: http - selector: - {{- include "app.selectorLabels" . | nindent 4 }} diff --git a/.devops/charts/app/templates/serviceaccount.yaml b/.devops/charts/app/templates/serviceaccount.yaml deleted file mode 100644 index 925cb72..0000000 --- a/.devops/charts/app/templates/serviceaccount.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "app.serviceAccountName" . }} - labels: - {{- include "app.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -automountServiceAccountToken: {{ .Values.serviceAccount.automount }} -{{- end }} diff --git a/.devops/charts/app/templates/tests/test-connection.yaml b/.devops/charts/app/templates/tests/test-connection.yaml deleted file mode 100644 index 61b5ae9..0000000 --- a/.devops/charts/app/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "app.fullname" . }}-test-connection" - labels: - {{- include "app.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "app.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/.devops/charts/app/values.yaml b/.devops/charts/app/values.yaml deleted file mode 100644 index c6ad9d1..0000000 --- a/.devops/charts/app/values.yaml +++ /dev/null @@ -1,128 +0,0 @@ -# Default values for app. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 2 - -mode: deployment - -image: - repository: nginx - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: '' - -imagePullSecrets: [] -nameOverride: '' -fullnameOverride: '' - -serviceAccount: - # Specifies whether a service account should be created - create: true - # Automatically mount a ServiceAccount's API credentials? - automount: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: '' - -secretProviderClassName: '' -# secrets: -# - objectName: 'arn:aws:secretsmanager:REGION:ACCOUNT_ID:secret:env/Api/SecretName-SUFFIX' -# objectAlias: 'SECRET_ENV_VAR_NAME' -# - objectName: 'arn:aws:secretsmanager:REGION:ACCOUNT_ID:secret:env/Api/AnotherSecret-SUFFIX' -# jmesPath: -# - path: 'password' -# objectAlias: 'PASSWORD_ENV_VAR' - -podAnnotations: - linkerd.io/inject: disabled -podLabels: {} - -podSecurityContext: - {} - # fsGroup: 2000 - -securityContext: - {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 - -env: [] -# - name: HELLO -# value: 'world' - -ingress: - enabled: false - className: 'alb' - annotations: - alb.ingress.kubernetes.io/target-type: ip - alb.ingress.kubernetes.io/healthcheck-path: /api/v1/ready - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - hosts: - - host: content-staging.example.com - paths: - - path: / - pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local - -resources: - {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -# livenessProbe: -# httpGet: -# path: / -# port: http -# readinessProbe: -# httpGet: -# path: / -# port: http - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -# Additional volumes on the output Rollout definition. -volumes: [] -# - name: foo -# secret: -# secretName: mysecret -# optional: false - -# Additional volumeMounts on the output Rollout definition. -volumeMounts: [] -# - name: foo -# mountPath: "/etc/foo" -# readOnly: true - -nodeSelector: {} - -tolerations: [] - -affinity: {} diff --git a/.devops/pulumi/.gitignore b/.devops/pulumi/.gitignore deleted file mode 100644 index c695889..0000000 --- a/.devops/pulumi/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/bin/ -/node_modules/ diff --git a/.devops/pulumi/Pulumi.production.yaml b/.devops/pulumi/Pulumi.production.yaml deleted file mode 100644 index c66ff4c..0000000 --- a/.devops/pulumi/Pulumi.production.yaml +++ /dev/null @@ -1,13 +0,0 @@ -config: - aws:region: us-east-1 - aws:defaultTags: - tags: - env: production - peerVpc: - vpcId: PipelineStack-Prod-Vpc-vpc-id-export - region: PipelineStack-Prod-Vpc-vpc-region-export - cidrBlock: PipelineStack-Prod-Vpc-vpc-cidr-export - subnet0Id: PipelineStack-Prod-Vpc-vpc-subnet-0-id-export - routeTable0Id: PipelineStack-Prod-Vpc-vpc-subnet-0-route-table-id-export - subnet1Id: PipelineStack-Prod-Vpc-vpc-subnet-1-id-export - routeTable1Id: PipelineStack-Prod-Vpc-vpc-subnet-1-route-table-id-export diff --git a/.devops/pulumi/Pulumi.staging.yaml b/.devops/pulumi/Pulumi.staging.yaml deleted file mode 100644 index 0a7d2cd..0000000 --- a/.devops/pulumi/Pulumi.staging.yaml +++ /dev/null @@ -1,13 +0,0 @@ -config: - aws:region: us-east-1 - aws:defaultTags: - tags: - env: staging - peerVpc: - vpcId: 'StagingPipelineStack-Staging-Vpc-vpc-id-export' - region: 'StagingPipelineStack-Staging-Vpc-vpc-region-export' - cidrBlock: 'StagingPipelineStack-Staging-Vpc-vpc-cidr-export' - subnet0Id: 'StagingPipelineStack-Staging-Vpc-vpc-subnet-0-id-export' - routeTable0Id: 'StagingPipelineStack-Staging-Vpc-vpc-subnet-0-route-table-id-export' - subnet1Id: 'StagingPipelineStack-Staging-Vpc-vpc-subnet-1-id-export' - routeTable1Id: 'StagingPipelineStack-Staging-Vpc-vpc-subnet-1-route-table-id-export' diff --git a/.devops/pulumi/Pulumi.yaml b/.devops/pulumi/Pulumi.yaml deleted file mode 100644 index 0d6f881..0000000 --- a/.devops/pulumi/Pulumi.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: coop -runtime: - name: nodejs - options: - packagemanager: npm -description: A minimal AWS TypeScript Pulumi program -config: - pulumi:tags: - value: - pulumi:template: aws-typescript diff --git a/.devops/pulumi/index.ts b/.devops/pulumi/index.ts deleted file mode 100644 index bd5ba4c..0000000 --- a/.devops/pulumi/index.ts +++ /dev/null @@ -1,276 +0,0 @@ -import * as aws from '@pulumi/aws'; -import { Route, VpcEndpoint, VpcPeeringConnection } from '@pulumi/aws/ec2'; -import { RecordType } from '@pulumi/aws/route53'; -import * as awsx from '@pulumi/awsx'; -import { - SubnetAllocationStrategy, - SubnetType, - type Vpc, -} from '@pulumi/awsx/ec2'; -import * as pulumi from '@pulumi/pulumi'; - -const awsUsEast2Provider = new aws.Provider('us-east-2', { - region: 'us-east-2', - defaultTags: { - tags: { - env: pulumi.getStack(), - }, - }, -}); - -type vpcProps = { - vpcId: string; - region: string; - cidrBlock: string; - subnet0Id: string; - routeTable0Id: string; - subnet1Id: string; - routeTable1Id: string; -}; - -type ExportedVpcProps = { - vpcId: Promise; - region: Promise; - cidrBlock: Promise; - subnet0Id: Promise; - routeTable0Id: Promise; - subnet1Id: Promise; - routeTable1Id: Promise; -}; - -function getVpc(props: vpcProps): ExportedVpcProps { - return { - vpcId: aws.cloudformation.getExport( - { - name: props.vpcId, - }, - { provider: awsUsEast2Provider }, - ), - region: aws.cloudformation.getExport( - { - name: props.region, - }, - { provider: awsUsEast2Provider }, - ), - cidrBlock: aws.cloudformation.getExport( - { - name: props.cidrBlock, - }, - { provider: awsUsEast2Provider }, - ), - subnet0Id: aws.cloudformation.getExport( - { - name: props.subnet0Id, - }, - { provider: awsUsEast2Provider }, - ), - routeTable0Id: aws.cloudformation.getExport( - { - name: props.routeTable0Id, - }, - { provider: awsUsEast2Provider }, - ), - subnet1Id: aws.cloudformation.getExport( - { - name: props.subnet1Id, - }, - { provider: awsUsEast2Provider }, - ), - routeTable1Id: aws.cloudformation.getExport( - { - name: props.routeTable1Id, - }, - { provider: awsUsEast2Provider }, - ), - }; -} - -function createDatadogPrivateEndpoint( - zoneName: string, - serviceName: string, - vpc: Vpc, - peerVpc: ExportedVpcProps, -) { - const securityGroup = new aws.ec2.SecurityGroup(zoneName, { - vpcId: vpc.vpcId, - }); - - new aws.vpc.SecurityGroupIngressRule(`${zoneName}-allow_all_tcp_ipv4`, { - securityGroupId: securityGroup.id, - ipProtocol: '-1', - cidrIpv4: '0.0.0.0/0', - }); - - new aws.vpc.SecurityGroupEgressRule(`${zoneName}-allow_all_tcp_ipv4`, { - securityGroupId: securityGroup.id, - ipProtocol: '-1', - cidrIpv4: '0.0.0.0/0', - }); - - const privateEndpoint = new VpcEndpoint(zoneName, { - vpcId: vpc.vpcId, - vpcEndpointType: 'Interface', - serviceName: serviceName, - privateDnsEnabled: false, - subnetIds: vpc.privateSubnetIds, - securityGroupIds: [securityGroup.id], - }); - - const zone = new aws.route53.Zone(zoneName, { - name: zoneName, - vpcs: [ - { vpcId: vpc.vpcId }, - { - vpcId: peerVpc.vpcId.then((v) => v.value), - vpcRegion: peerVpc.region.then((r) => r.value), - }, - ], - }); - - const privateEndpointDnsRecord = privateEndpoint.dnsEntries[0]; - - new aws.route53.Record(zoneName, { - zoneId: zone.zoneId, - name: zone.name, - aliases: [ - { - name: privateEndpointDnsRecord.dnsName, - zoneId: privateEndpointDnsRecord.hostedZoneId, - evaluateTargetHealth: true, - }, - ], - type: RecordType.A, - }); -} - -class DatadogPrivateLinkStack extends pulumi.ComponentResource { - constructor(name: string, opts?: pulumi.ComponentResourceOptions) { - super('pkg:index:DatadogPrivateLink', name, {}, opts); - const config = new pulumi.Config(); - const peerVpcProps = config.requireObject('peerVpc'); - - const vpc = new awsx.ec2.Vpc('datadog-vpc', { - natGateways: { - strategy: 'None', - }, - numberOfAvailabilityZones: 2, - cidrBlock: '172.16.0.0/26', - subnetStrategy: SubnetAllocationStrategy.Auto, - subnetSpecs: [ - { - type: SubnetType.Private, - }, - ], - enableDnsHostnames: true, - enableDnsSupport: true, - }); - - const peerVpc = getVpc(peerVpcProps); - - // traces - createDatadogPrivateEndpoint( - 'trace.agent.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-0355bb1880dfa09c2', - vpc, - peerVpc, - ); - - // profiles - createDatadogPrivateEndpoint( - 'intake.profile.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-022ae36a7b2472029', - vpc, - peerVpc, - ); - - // metrics - createDatadogPrivateEndpoint( - 'metrics.agent.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-09a8006e245d1e7b8', - vpc, - peerVpc, - ); - - // logs - createDatadogPrivateEndpoint( - 'agent-http-intake.logs.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-025a56b9187ac1f63', - vpc, - peerVpc, - ); - - // api - createDatadogPrivateEndpoint( - 'api.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-064ea718f8d0ead77', - vpc, - peerVpc, - ); - - // process - createDatadogPrivateEndpoint( - 'process.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-0ed1f789ac6b0bde1', - vpc, - peerVpc, - ); - - // containers - createDatadogPrivateEndpoint( - 'orchestrator.datadoghq.com', - 'com.amazonaws.vpce.us-east-1.vpce-svc-0ad5fb9e71f85fe99', - vpc, - peerVpc, - ); - - const peeringConnection = new VpcPeeringConnection( - `datadog-vpc-peering`, - { - peerVpcId: peerVpc.vpcId.then((v) => v.value), - vpcId: vpc.vpcId, - peerRegion: peerVpc.region.then((r) => r.value), - }, - { deleteBeforeReplace: true }, - ); - - new aws.ec2.VpcPeeringConnectionAccepter( - `peering-connection-accepter`, - { - vpcPeeringConnectionId: peeringConnection.id, - autoAccept: true, - }, - { provider: awsUsEast2Provider, deleteBeforeReplace: true }, - ); - - [peerVpc.routeTable0Id, peerVpc.routeTable1Id].forEach( - (routeTableId, index) => { - new Route( - `peer-to-vpc-route-${index}`, - { - routeTableId: routeTableId.then((r) => r.value), - destinationCidrBlock: vpc.vpc.cidrBlock, - vpcPeeringConnectionId: peeringConnection.id, - }, - { provider: awsUsEast2Provider, deleteBeforeReplace: true }, - ); - }, - ); - - vpc.privateSubnetIds.apply((subnets) => { - subnets.forEach((subnet, index) => { - new Route( - `vpc-to-peer-route-${index}`, - { - routeTableId: aws.ec2.getRouteTableOutput({ subnetId: subnet }) - .routeTableId, - destinationCidrBlock: peerVpc.cidrBlock.then((c) => c.value), - vpcPeeringConnectionId: peeringConnection.id, - }, - { deleteBeforeReplace: true }, - ); - }); - }); - } -} - -new DatadogPrivateLinkStack('datadog-private-link', {}); diff --git a/.devops/pulumi/package-lock.json b/.devops/pulumi/package-lock.json deleted file mode 100644 index fd226b5..0000000 --- a/.devops/pulumi/package-lock.json +++ /dev/null @@ -1,4949 +0,0 @@ -{ - "name": "coop", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "coop", - "dependencies": { - "@pulumi/aws": "^6.0.0", - "@pulumi/awsx": "^2.0.2", - "@pulumi/pulumi": "^3.113.0" - }, - "devDependencies": { - "@types/node": "^18", - "typescript": "^5.0.0" - } - }, - "node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", - "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", - "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", - "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", - "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", - "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-crypto/util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", - "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", - "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", - "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-ecs": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ecs/-/client-ecs-3.675.0.tgz", - "integrity": "sha512-NWB8FNLVxN1tAopZgFSQwhkoKUZV5zKsuh4UI5tYzm4Ug+qFNcjnt3CwH9yAABciHPQFl4H3kC1qZwu8Qntisw==", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.675.0", - "@aws-sdk/client-sts": "3.675.0", - "@aws-sdk/core": "3.667.0", - "@aws-sdk/credential-provider-node": "3.675.0", - "@aws-sdk/middleware-host-header": "3.667.0", - "@aws-sdk/middleware-logger": "3.667.0", - "@aws-sdk/middleware-recursion-detection": "3.667.0", - "@aws-sdk/middleware-user-agent": "3.669.0", - "@aws-sdk/region-config-resolver": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@aws-sdk/util-endpoints": "3.667.0", - "@aws-sdk/util-user-agent-browser": "3.675.0", - "@aws-sdk/util-user-agent-node": "3.669.0", - "@smithy/config-resolver": "^3.0.9", - "@smithy/core": "^2.4.8", - "@smithy/fetch-http-handler": "^3.2.9", - "@smithy/hash-node": "^3.0.7", - "@smithy/invalid-dependency": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.9", - "@smithy/middleware-endpoint": "^3.1.4", - "@smithy/middleware-retry": "^3.0.23", - "@smithy/middleware-serde": "^3.0.7", - "@smithy/middleware-stack": "^3.0.7", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/node-http-handler": "^3.2.4", - "@smithy/protocol-http": "^4.1.4", - "@smithy/smithy-client": "^3.4.0", - "@smithy/types": "^3.5.0", - "@smithy/url-parser": "^3.0.7", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.23", - "@smithy/util-defaults-mode-node": "^3.0.23", - "@smithy/util-endpoints": "^2.1.3", - "@smithy/util-middleware": "^3.0.7", - "@smithy/util-retry": "^3.0.7", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.6", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-sso": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.675.0.tgz", - "integrity": "sha512-2goBCEr4acZJ1YJ69eWPTsIfZUbO7enog+lBA5kZShDiwovqzwYSHSlf6OGz4ETs2xT1n7n+QfKY0p+TluTfEw==", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.667.0", - "@aws-sdk/middleware-host-header": "3.667.0", - "@aws-sdk/middleware-logger": "3.667.0", - "@aws-sdk/middleware-recursion-detection": "3.667.0", - "@aws-sdk/middleware-user-agent": "3.669.0", - "@aws-sdk/region-config-resolver": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@aws-sdk/util-endpoints": "3.667.0", - "@aws-sdk/util-user-agent-browser": "3.675.0", - "@aws-sdk/util-user-agent-node": "3.669.0", - "@smithy/config-resolver": "^3.0.9", - "@smithy/core": "^2.4.8", - "@smithy/fetch-http-handler": "^3.2.9", - "@smithy/hash-node": "^3.0.7", - "@smithy/invalid-dependency": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.9", - "@smithy/middleware-endpoint": "^3.1.4", - "@smithy/middleware-retry": "^3.0.23", - "@smithy/middleware-serde": "^3.0.7", - "@smithy/middleware-stack": "^3.0.7", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/node-http-handler": "^3.2.4", - "@smithy/protocol-http": "^4.1.4", - "@smithy/smithy-client": "^3.4.0", - "@smithy/types": "^3.5.0", - "@smithy/url-parser": "^3.0.7", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.23", - "@smithy/util-defaults-mode-node": "^3.0.23", - "@smithy/util-endpoints": "^2.1.3", - "@smithy/util-middleware": "^3.0.7", - "@smithy/util-retry": "^3.0.7", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.675.0.tgz", - "integrity": "sha512-4kEcaa2P/BFz+xy5tagbtzM08gbjHXyYqW+n6SJuUFK7N6bZNnA4cu1hVgHcqOqk8Dbwv7fiseGT0x3Hhqjwqg==", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.667.0", - "@aws-sdk/credential-provider-node": "3.675.0", - "@aws-sdk/middleware-host-header": "3.667.0", - "@aws-sdk/middleware-logger": "3.667.0", - "@aws-sdk/middleware-recursion-detection": "3.667.0", - "@aws-sdk/middleware-user-agent": "3.669.0", - "@aws-sdk/region-config-resolver": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@aws-sdk/util-endpoints": "3.667.0", - "@aws-sdk/util-user-agent-browser": "3.675.0", - "@aws-sdk/util-user-agent-node": "3.669.0", - "@smithy/config-resolver": "^3.0.9", - "@smithy/core": "^2.4.8", - "@smithy/fetch-http-handler": "^3.2.9", - "@smithy/hash-node": "^3.0.7", - "@smithy/invalid-dependency": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.9", - "@smithy/middleware-endpoint": "^3.1.4", - "@smithy/middleware-retry": "^3.0.23", - "@smithy/middleware-serde": "^3.0.7", - "@smithy/middleware-stack": "^3.0.7", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/node-http-handler": "^3.2.4", - "@smithy/protocol-http": "^4.1.4", - "@smithy/smithy-client": "^3.4.0", - "@smithy/types": "^3.5.0", - "@smithy/url-parser": "^3.0.7", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.23", - "@smithy/util-defaults-mode-node": "^3.0.23", - "@smithy/util-endpoints": "^2.1.3", - "@smithy/util-middleware": "^3.0.7", - "@smithy/util-retry": "^3.0.7", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.675.0" - } - }, - "node_modules/@aws-sdk/client-sts": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.675.0.tgz", - "integrity": "sha512-zgjyR4GyuONeDGJBKNt9lFJ8HfDX7rpxZZVR7LSXr9lUkjf6vUGgD2k/K4UAoOTWCKKCor6TA562ezGlA8su6Q==", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.675.0", - "@aws-sdk/core": "3.667.0", - "@aws-sdk/credential-provider-node": "3.675.0", - "@aws-sdk/middleware-host-header": "3.667.0", - "@aws-sdk/middleware-logger": "3.667.0", - "@aws-sdk/middleware-recursion-detection": "3.667.0", - "@aws-sdk/middleware-user-agent": "3.669.0", - "@aws-sdk/region-config-resolver": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@aws-sdk/util-endpoints": "3.667.0", - "@aws-sdk/util-user-agent-browser": "3.675.0", - "@aws-sdk/util-user-agent-node": "3.669.0", - "@smithy/config-resolver": "^3.0.9", - "@smithy/core": "^2.4.8", - "@smithy/fetch-http-handler": "^3.2.9", - "@smithy/hash-node": "^3.0.7", - "@smithy/invalid-dependency": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.9", - "@smithy/middleware-endpoint": "^3.1.4", - "@smithy/middleware-retry": "^3.0.23", - "@smithy/middleware-serde": "^3.0.7", - "@smithy/middleware-stack": "^3.0.7", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/node-http-handler": "^3.2.4", - "@smithy/protocol-http": "^4.1.4", - "@smithy/smithy-client": "^3.4.0", - "@smithy/types": "^3.5.0", - "@smithy/url-parser": "^3.0.7", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.23", - "@smithy/util-defaults-mode-node": "^3.0.23", - "@smithy/util-endpoints": "^2.1.3", - "@smithy/util-middleware": "^3.0.7", - "@smithy/util-retry": "^3.0.7", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/core": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.667.0.tgz", - "integrity": "sha512-pMcDVI7Tmdsc8R3sDv0Omj/4iRParGY+uJtAfF669WnZfDfaBQaix2Mq7+Mu08vdjqO9K3gicFvjk9S1VLmOKA==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/core": "^2.4.8", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.4", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.0", - "@smithy/types": "^3.5.0", - "@smithy/util-middleware": "^3.0.7", - "fast-xml-parser": "4.4.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.667.0.tgz", - "integrity": "sha512-zZbrkkaPc54WXm+QAnpuv0LPNfsts0HPPd+oCECGs7IQRaFsGj187cwvPg9RMWDFZqpm64MdBDoA8OQHsqzYCw==", - "dependencies": { - "@aws-sdk/core": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.667.0.tgz", - "integrity": "sha512-sjtybFfERZWiqTY7fswBxKQLvUkiCucOWyqh3IaPo/4nE1PXRnaZCVG0+kRBPrYIxWqiVwytvZzMJy8sVZcG0A==", - "dependencies": { - "@aws-sdk/core": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/fetch-http-handler": "^3.2.9", - "@smithy/node-http-handler": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.4", - "@smithy/smithy-client": "^3.4.0", - "@smithy/types": "^3.5.0", - "@smithy/util-stream": "^3.1.9", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.675.0.tgz", - "integrity": "sha512-kCBlC6grpbpCvgowk9T4JHZxJ88VfN0r77bDZClcadFRAKQ8UHyO02zhgFCfUdnU1lNv1mr3ngEcGN7XzJlYWA==", - "dependencies": { - "@aws-sdk/core": "3.667.0", - "@aws-sdk/credential-provider-env": "3.667.0", - "@aws-sdk/credential-provider-http": "3.667.0", - "@aws-sdk/credential-provider-process": "3.667.0", - "@aws-sdk/credential-provider-sso": "3.675.0", - "@aws-sdk/credential-provider-web-identity": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.675.0" - } - }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.675.0.tgz", - "integrity": "sha512-VO1WVZCDmAYu4sY/6qIBzdm5vJTxLhWKJWvL5kVFfSe8WiNNoHlTqYYUK9vAm/JYpIgFLTefPbIc5W4MK7o6Pg==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.667.0", - "@aws-sdk/credential-provider-http": "3.667.0", - "@aws-sdk/credential-provider-ini": "3.675.0", - "@aws-sdk/credential-provider-process": "3.667.0", - "@aws-sdk/credential-provider-sso": "3.675.0", - "@aws-sdk/credential-provider-web-identity": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.667.0.tgz", - "integrity": "sha512-HZHnvop32fKgsNHkdhVaul7UzQ25sEc0j9yqA4bjhtbk0ECl42kj3f1pJ+ZU/YD9ut8lMJs/vVqiOdNThVdeBw==", - "dependencies": { - "@aws-sdk/core": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.675.0.tgz", - "integrity": "sha512-p/EE2c0ebSgRhg1Fe1OH2+xNl7j1P4DTc7kZy1mX1NJ72fkqnGgBuf1vk5J9RmiRpbauPNMlm+xohjkGS7iodA==", - "dependencies": { - "@aws-sdk/client-sso": "3.675.0", - "@aws-sdk/core": "3.667.0", - "@aws-sdk/token-providers": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.667.0.tgz", - "integrity": "sha512-t8CFlZMD/1p/8Cli3rvRiTJpjr/8BO64gw166AHgFZYSN2h95L2l1tcW0jpsc3PprA32nLg1iQVKYt4WGM4ugw==", - "dependencies": { - "@aws-sdk/core": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.667.0" - } - }, - "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.667.0.tgz", - "integrity": "sha512-Z7fIAMQnPegs7JjAQvlOeWXwpMRfegh5eCoIP6VLJIeR6DLfYKbP35JBtt98R6DXslrN2RsbTogjbxPEDQfw1w==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/protocol-http": "^4.1.4", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/middleware-logger": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.667.0.tgz", - "integrity": "sha512-PtTRNpNm/5c746jRgZCNg4X9xEJIwggkGJrF0GP9AB1ANg4pc/sF2Fvn1NtqPe9wtQ2stunJprnm5WkCHN7QiA==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.667.0.tgz", - "integrity": "sha512-U5glWD3ehFohzpUpopLtmqAlDurGWo2wRGPNgi4SwhWU7UDt6LS7E/UvJjqC0CUrjlzOw+my2A+Ncf+fisMhxQ==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/protocol-http": "^4.1.4", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.669.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.669.0.tgz", - "integrity": "sha512-K8ScPi45zjJrj5Y2gRqVsvKKQCQbvQBfYGcBw9ZOx9TTavH80bOCBjWg/GFnvs4f37tqVc1wMN2oGvcTF6HveQ==", - "dependencies": { - "@aws-sdk/core": "3.667.0", - "@aws-sdk/types": "3.667.0", - "@aws-sdk/util-endpoints": "3.667.0", - "@smithy/core": "^2.4.8", - "@smithy/protocol-http": "^4.1.4", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.667.0.tgz", - "integrity": "sha512-iNr+JhhA902JMKHG9IwT9YdaEx6KGl6vjAL5BRNeOjfj4cZYMog6Lz/IlfOAltMtT0w88DAHDEFrBd2uO0l2eg==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/types": "^3.5.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.7", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/token-providers": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.667.0.tgz", - "integrity": "sha512-ZecJlG8p6D4UTYlBHwOWX6nknVtw/OBJ3yPXTSajBjhUlj9lE2xvejI8gl4rqkyLXk7z3bki+KR4tATbMaM9yg==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.667.0" - } - }, - "node_modules/@aws-sdk/types": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.667.0.tgz", - "integrity": "sha512-gYq0xCsqFfQaSL/yT1Gl1vIUjtsg7d7RhnUfsXaHt8xTxOKRTdH9GjbesBjXOzgOvB0W0vfssfreSNGFlOOMJg==", - "dependencies": { - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/util-endpoints": { - "version": "3.667.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.667.0.tgz", - "integrity": "sha512-X22SYDAuQJWnkF1/q17pkX3nGw5XMD9YEUbmt87vUnRq7iyJ3JOpl6UKOBeUBaL838wA5yzdbinmCITJ/VZ1QA==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/types": "^3.5.0", - "@smithy/util-endpoints": "^2.1.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.568.0.tgz", - "integrity": "sha512-3nh4TINkXYr+H41QaPelCceEB2FXP3fxp93YZXB/kqJvX0U9j0N0Uk45gvsjmEPzG8XxkPEeLIfT2I1M7A6Lig==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.675.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.675.0.tgz", - "integrity": "sha512-HW4vGfRiX54RLcsYjLuAhcBBJ6lRVEZd7njfGpAwBB9s7BH8t48vrpYbyA5XbbqbTvXfYBnugQCUw9HWjEa1ww==", - "dependencies": { - "@aws-sdk/types": "3.667.0", - "@smithy/types": "^3.5.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.669.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.669.0.tgz", - "integrity": "sha512-9jxCYrgggy2xd44ZASqI7AMiRVaSiFp+06Kg8BQSU0ijKpBJlwcsqIS8pDT/n6LxuOw2eV5ipvM2C0r1iKzrGA==", - "dependencies": { - "@aws-sdk/middleware-user-agent": "3.669.0", - "@aws-sdk/types": "3.667.0", - "@smithy/node-config-provider": "^3.1.8", - "@smithy/types": "^3.5.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "node_modules/@grpc/grpc-js": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.12.2.tgz", - "integrity": "sha512-bgxdZmgTrJZX50OjyVwz3+mNEnCTNkh3cIqGPWVNeW9jX6bn1ZkU80uPd+67/ZpIJIjRQ9qaHCjhavyoWYxumg==", - "dependencies": { - "@grpc/proto-loader": "^0.7.13", - "@js-sdsl/ordered-map": "^4.4.2" - }, - "engines": { - "node": ">=12.10.0" - } - }, - "node_modules/@grpc/proto-loader": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", - "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "long": "^5.0.0", - "protobufjs": "^7.2.5", - "yargs": "^17.7.2" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/string-locale-compare": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz", - "integrity": "sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==" - }, - "node_modules/@js-sdsl/ordered-map": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", - "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, - "node_modules/@logdna/tail-file": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@logdna/tail-file/-/tail-file-2.2.0.tgz", - "integrity": "sha512-XGSsWDweP80Fks16lwkAUIr54ICyBs6PsI4mpfTLQaWgEJRtY9xEV+PeyDpJ+sJEGZxqINlpmAwe/6tS1pP8Ng==", - "engines": { - "node": ">=10.3.0" - } - }, - "node_modules/@npmcli/agent": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@npmcli/agent/-/agent-2.2.2.tgz", - "integrity": "sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og==", - "dependencies": { - "agent-base": "^7.1.0", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.1", - "lru-cache": "^10.0.1", - "socks-proxy-agent": "^8.0.3" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/arborist": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-7.5.4.tgz", - "integrity": "sha512-nWtIc6QwwoUORCRNzKx4ypHqCk3drI+5aeYdMTQQiRCcn4lOOgfQh7WyZobGYTxXPSq1VwV53lkpN/BRlRk08g==", - "dependencies": { - "@isaacs/string-locale-compare": "^1.1.0", - "@npmcli/fs": "^3.1.1", - "@npmcli/installed-package-contents": "^2.1.0", - "@npmcli/map-workspaces": "^3.0.2", - "@npmcli/metavuln-calculator": "^7.1.1", - "@npmcli/name-from-folder": "^2.0.0", - "@npmcli/node-gyp": "^3.0.0", - "@npmcli/package-json": "^5.1.0", - "@npmcli/query": "^3.1.0", - "@npmcli/redact": "^2.0.0", - "@npmcli/run-script": "^8.1.0", - "bin-links": "^4.0.4", - "cacache": "^18.0.3", - "common-ancestor-path": "^1.0.1", - "hosted-git-info": "^7.0.2", - "json-parse-even-better-errors": "^3.0.2", - "json-stringify-nice": "^1.1.4", - "lru-cache": "^10.2.2", - "minimatch": "^9.0.4", - "nopt": "^7.2.1", - "npm-install-checks": "^6.2.0", - "npm-package-arg": "^11.0.2", - "npm-pick-manifest": "^9.0.1", - "npm-registry-fetch": "^17.0.1", - "pacote": "^18.0.6", - "parse-conflict-json": "^3.0.0", - "proc-log": "^4.2.0", - "proggy": "^2.0.0", - "promise-all-reject-late": "^1.0.0", - "promise-call-limit": "^3.0.1", - "read-package-json-fast": "^3.0.2", - "semver": "^7.3.7", - "ssri": "^10.0.6", - "treeverse": "^3.0.0", - "walk-up-path": "^3.0.1" - }, - "bin": { - "arborist": "bin/index.js" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/arborist/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@npmcli/fs": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.1.tgz", - "integrity": "sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/fs/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@npmcli/git": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.8.tgz", - "integrity": "sha512-liASfw5cqhjNW9UFd+ruwwdEf/lbOAQjLL2XY2dFW/bkJheXDYZgOyul/4gVvEV4BWkTXjYGmDqMw9uegdbJNQ==", - "dependencies": { - "@npmcli/promise-spawn": "^7.0.0", - "ini": "^4.1.3", - "lru-cache": "^10.0.1", - "npm-pick-manifest": "^9.0.0", - "proc-log": "^4.0.0", - "promise-inflight": "^1.0.1", - "promise-retry": "^2.0.1", - "semver": "^7.3.5", - "which": "^4.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/git/node_modules/ini": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz", - "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/git/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@npmcli/installed-package-contents": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-2.1.0.tgz", - "integrity": "sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w==", - "dependencies": { - "npm-bundled": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, - "bin": { - "installed-package-contents": "bin/index.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/map-workspaces": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@npmcli/map-workspaces/-/map-workspaces-3.0.6.tgz", - "integrity": "sha512-tkYs0OYnzQm6iIRdfy+LcLBjcKuQCeE5YLb8KnrIlutJfheNaPvPpgoFEyEFgbjzl5PLZ3IA/BWAwRU0eHuQDA==", - "dependencies": { - "@npmcli/name-from-folder": "^2.0.0", - "glob": "^10.2.2", - "minimatch": "^9.0.0", - "read-package-json-fast": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/metavuln-calculator": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@npmcli/metavuln-calculator/-/metavuln-calculator-7.1.1.tgz", - "integrity": "sha512-Nkxf96V0lAx3HCpVda7Vw4P23RILgdi/5K1fmj2tZkWIYLpXAN8k2UVVOsW16TsS5F8Ws2I7Cm+PU1/rsVF47g==", - "dependencies": { - "cacache": "^18.0.0", - "json-parse-even-better-errors": "^3.0.0", - "pacote": "^18.0.0", - "proc-log": "^4.1.0", - "semver": "^7.3.5" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/metavuln-calculator/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@npmcli/name-from-folder": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz", - "integrity": "sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/node-gyp": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz", - "integrity": "sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/package-json": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/@npmcli/package-json/-/package-json-5.2.1.tgz", - "integrity": "sha512-f7zYC6kQautXHvNbLEWgD/uGu1+xCn9izgqBfgItWSx22U0ZDekxN08A1vM8cTxj/cRVe0Q94Ode+tdoYmIOOQ==", - "dependencies": { - "@npmcli/git": "^5.0.0", - "glob": "^10.2.2", - "hosted-git-info": "^7.0.0", - "json-parse-even-better-errors": "^3.0.0", - "normalize-package-data": "^6.0.0", - "proc-log": "^4.0.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/package-json/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@npmcli/promise-spawn": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-7.0.2.tgz", - "integrity": "sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ==", - "dependencies": { - "which": "^4.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/query": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/query/-/query-3.1.0.tgz", - "integrity": "sha512-C/iR0tk7KSKGldibYIB9x8GtO/0Bd0I2mhOaDb8ucQL/bQVTmGoeREaFj64Z5+iCBRf3dQfed0CjJL7I8iTkiQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/redact": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-2.0.1.tgz", - "integrity": "sha512-YgsR5jCQZhVmTJvjduTOIHph0L73pK8xwMVaDY0PatySqVM9AZj93jpoXYSJqfHFxFkN9dmqTw6OiqExsS3LPw==", - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/run-script": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-8.1.0.tgz", - "integrity": "sha512-y7efHHwghQfk28G2z3tlZ67pLG0XdfYbcVG26r7YIXALRsrVQcTq4/tdenSmdOrEsNahIYA/eh8aEVROWGFUDg==", - "dependencies": { - "@npmcli/node-gyp": "^3.0.0", - "@npmcli/package-json": "^5.0.0", - "@npmcli/promise-spawn": "^7.0.0", - "node-gyp": "^10.0.0", - "proc-log": "^4.0.0", - "which": "^4.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@opentelemetry/api": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", - "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@opentelemetry/api-logs": { - "version": "0.52.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.52.1.tgz", - "integrity": "sha512-qnSqB2DQ9TPP96dl8cDubDvrUyWc0/sK81xHTK8eSUspzDM3bsewX903qclQFvVhgStjRWdC5bLb3kQqMkfV5A==", - "dependencies": { - "@opentelemetry/api": "^1.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@opentelemetry/context-async-hooks": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-1.26.0.tgz", - "integrity": "sha512-HedpXXYzzbaoutw6DFLWLDket2FwLkLpil4hGCZ1xYEIMTcivdfwEOISgdbLEWyG3HW52gTq2V9mOVJrONgiwg==", - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/core": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.26.0.tgz", - "integrity": "sha512-1iKxXXE8415Cdv0yjG3G6hQnB5eVEsJce3QaawX8SjDn0mAS0ZM8fAbZZJD4ajvhC15cePvosSCut404KrIIvQ==", - "dependencies": { - "@opentelemetry/semantic-conventions": "1.27.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/exporter-zipkin": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-zipkin/-/exporter-zipkin-1.26.0.tgz", - "integrity": "sha512-PW5R34n3SJHO4t0UetyHKiXL6LixIqWN6lWncg3eRXhKuT30x+b7m5sDJS0kEWRfHeS+kG7uCw2vBzmB2lk3Dw==", - "dependencies": { - "@opentelemetry/core": "1.26.0", - "@opentelemetry/resources": "1.26.0", - "@opentelemetry/sdk-trace-base": "1.26.0", - "@opentelemetry/semantic-conventions": "1.27.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.0.0" - } - }, - "node_modules/@opentelemetry/instrumentation": { - "version": "0.52.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.52.1.tgz", - "integrity": "sha512-uXJbYU/5/MBHjMp1FqrILLRuiJCs3Ofk0MeRDk8g1S1gD47U8X3JnSwcMO1rtRo1x1a7zKaQHaoYu49p/4eSKw==", - "dependencies": { - "@opentelemetry/api-logs": "0.52.1", - "@types/shimmer": "^1.0.2", - "import-in-the-middle": "^1.8.1", - "require-in-the-middle": "^7.1.1", - "semver": "^7.5.2", - "shimmer": "^1.2.1" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.3.0" - } - }, - "node_modules/@opentelemetry/instrumentation-grpc": { - "version": "0.52.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-grpc/-/instrumentation-grpc-0.52.1.tgz", - "integrity": "sha512-EdSDiDSAO+XRXk/ZN128qQpBo1I51+Uay/LUPcPQhSRGf7fBPIEUBeOLQiItguGsug5MGOYjql2w/1wCQF3fdQ==", - "dependencies": { - "@opentelemetry/instrumentation": "0.52.1", - "@opentelemetry/semantic-conventions": "1.25.1" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.3.0" - } - }, - "node_modules/@opentelemetry/instrumentation-grpc/node_modules/@opentelemetry/semantic-conventions": { - "version": "1.25.1", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.25.1.tgz", - "integrity": "sha512-ZDjMJJQRlyk8A1KZFCc+bCbsyrn1wTwdNt56F7twdfUfnHUZUq77/WfONCj8p72NZOyP7pNTdUWSTYC3GTbuuQ==", - "engines": { - "node": ">=14" - } - }, - "node_modules/@opentelemetry/instrumentation/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@opentelemetry/propagator-b3": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-b3/-/propagator-b3-1.26.0.tgz", - "integrity": "sha512-vvVkQLQ/lGGyEy9GT8uFnI047pajSOVnZI2poJqVGD3nJ+B9sFGdlHNnQKophE3lHfnIH0pw2ubrCTjZCgIj+Q==", - "dependencies": { - "@opentelemetry/core": "1.26.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/propagator-jaeger": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-jaeger/-/propagator-jaeger-1.26.0.tgz", - "integrity": "sha512-DelFGkCdaxA1C/QA0Xilszfr0t4YbGd3DjxiCDPh34lfnFr+VkkrjV9S8ZTJvAzfdKERXhfOxIKBoGPJwoSz7Q==", - "dependencies": { - "@opentelemetry/core": "1.26.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/resources": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.26.0.tgz", - "integrity": "sha512-CPNYchBE7MBecCSVy0HKpUISEeJOniWqcHaAHpmasZ3j9o6V3AyBzhRc90jdmemq0HOxDr6ylhUbDhBqqPpeNw==", - "dependencies": { - "@opentelemetry/core": "1.26.0", - "@opentelemetry/semantic-conventions": "1.27.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/sdk-trace-base": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.26.0.tgz", - "integrity": "sha512-olWQldtvbK4v22ymrKLbIcBi9L2SpMO84sCPY54IVsJhP9fRsxJT194C/AVaAuJzLE30EdhhM1VmvVYR7az+cw==", - "dependencies": { - "@opentelemetry/core": "1.26.0", - "@opentelemetry/resources": "1.26.0", - "@opentelemetry/semantic-conventions": "1.27.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/sdk-trace-node": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-1.26.0.tgz", - "integrity": "sha512-Fj5IVKrj0yeUwlewCRwzOVcr5avTuNnMHWf7GPc1t6WaT78J6CJyF3saZ/0RkZfdeNO8IcBl/bNcWMVZBMRW8Q==", - "dependencies": { - "@opentelemetry/context-async-hooks": "1.26.0", - "@opentelemetry/core": "1.26.0", - "@opentelemetry/propagator-b3": "1.26.0", - "@opentelemetry/propagator-jaeger": "1.26.0", - "@opentelemetry/sdk-trace-base": "1.26.0", - "semver": "^7.5.2" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" - } - }, - "node_modules/@opentelemetry/sdk-trace-node/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@opentelemetry/semantic-conventions": { - "version": "1.27.0", - "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz", - "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==", - "engines": { - "node": ">=14" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, - "node_modules/@pulumi/aws": { - "version": "6.56.1", - "resolved": "https://registry.npmjs.org/@pulumi/aws/-/aws-6.56.1.tgz", - "integrity": "sha512-fnYs39xUPjT0cipdl28Eiw7B5ZLlHyXBd8lV7dOedKCrrfDLr/nwsh6FMPgj5nUDklR3RAzMFPUW37gMaznPoA==", - "dependencies": { - "@pulumi/pulumi": "^3.136.0", - "builtin-modules": "3.0.0", - "mime": "^2.0.0", - "resolve": "^1.7.1" - } - }, - "node_modules/@pulumi/awsx": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/@pulumi/awsx/-/awsx-2.16.1.tgz", - "integrity": "sha512-mQEz+2XdaqkXxDNmkfkqdiU7DAUkD3uNkBFN15q2vsnvZQCjUxZ8WxAJQmLabj/zYV1zl/X4ckf3lMy8Z3Dbcg==", - "hasInstallScript": true, - "dependencies": { - "@aws-sdk/client-ecs": "^3.405.0", - "@pulumi/aws": "^6.47.0", - "@pulumi/docker": "^4.5.1", - "@pulumi/pulumi": "^3.134.1", - "@types/aws-lambda": "^8.10.23", - "aws-sdk": "^2.1450.0", - "docker-classic": "npm:@pulumi/docker@3.6.1", - "mime": "^2.0.0" - } - }, - "node_modules/@pulumi/docker": { - "version": "4.5.7", - "resolved": "https://registry.npmjs.org/@pulumi/docker/-/docker-4.5.7.tgz", - "integrity": "sha512-z0rr1PoJXemafrNl0oPjQJlGRNbMKN0z50cKhmcuMVsiNTt36cDLXw7kpclgddgdwkM6ZU5zMRyaA1rcNuXTlg==", - "dependencies": { - "@pulumi/pulumi": "^3.136.0", - "semver": "^5.4.0" - } - }, - "node_modules/@pulumi/pulumi": { - "version": "3.137.0", - "resolved": "https://registry.npmjs.org/@pulumi/pulumi/-/pulumi-3.137.0.tgz", - "integrity": "sha512-YgvcPKxuE3X1Yi93W2qZuM43nELT1FEvz7J5IK1hAJPo+v9m2oAh5Vag1lNDPjM0+y7WDfFe0ODI+2way3quRw==", - "dependencies": { - "@grpc/grpc-js": "^1.10.1", - "@logdna/tail-file": "^2.0.6", - "@npmcli/arborist": "^7.3.1", - "@opentelemetry/api": "^1.9", - "@opentelemetry/exporter-zipkin": "^1.25", - "@opentelemetry/instrumentation": "^0.52", - "@opentelemetry/instrumentation-grpc": "^0.52", - "@opentelemetry/resources": "^1.25", - "@opentelemetry/sdk-trace-base": "^1.25", - "@opentelemetry/sdk-trace-node": "^1.25", - "@opentelemetry/semantic-conventions": "^1.25", - "@pulumi/query": "^0.3.0", - "@types/google-protobuf": "^3.15.5", - "@types/semver": "^7.5.6", - "@types/tmp": "^0.2.6", - "execa": "^5.1.0", - "fdir": "^6.1.1", - "google-protobuf": "^3.5.0", - "got": "^11.8.6", - "ini": "^2.0.0", - "js-yaml": "^3.14.0", - "minimist": "^1.2.6", - "normalize-package-data": "^6.0.0", - "picomatch": "^3.0.1", - "pkg-dir": "^7.0.0", - "require-from-string": "^2.0.1", - "semver": "^7.5.2", - "source-map-support": "^0.5.6", - "tmp": "^0.2.1", - "upath": "^1.1.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "ts-node": ">= 7.0.1 < 12", - "typescript": ">= 3.8.3 < 6" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - }, - "typescript": { - "optional": true - } - } - }, - "node_modules/@pulumi/pulumi/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@pulumi/query": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@pulumi/query/-/query-0.3.0.tgz", - "integrity": "sha512-xfo+yLRM2zVjVEA4p23IjQWzyWl1ZhWOGobsBqRpIarzLvwNH/RAGaoehdxlhx4X92302DrpdIFgTICMN4P38w==" - }, - "node_modules/@sigstore/bundle": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-2.3.2.tgz", - "integrity": "sha512-wueKWDk70QixNLB363yHc2D2ItTgYiMTdPwK8D9dKQMR3ZQ0c35IxP5xnwQ8cNLoCgCRcHf14kE+CLIvNX1zmA==", - "dependencies": { - "@sigstore/protobuf-specs": "^0.3.2" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@sigstore/core": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@sigstore/core/-/core-1.1.0.tgz", - "integrity": "sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg==", - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@sigstore/protobuf-specs": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.3.2.tgz", - "integrity": "sha512-c6B0ehIWxMI8wiS/bj6rHMPqeFvngFV7cDU/MY+B16P9Z3Mp9k8L93eYZ7BYzSickzuqAQqAq0V956b3Ju6mLw==", - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@sigstore/sign": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@sigstore/sign/-/sign-2.3.2.tgz", - "integrity": "sha512-5Vz5dPVuunIIvC5vBb0APwo7qKA4G9yM48kPWJT+OEERs40md5GoUR1yedwpekWZ4m0Hhw44m6zU+ObsON+iDA==", - "dependencies": { - "@sigstore/bundle": "^2.3.2", - "@sigstore/core": "^1.0.0", - "@sigstore/protobuf-specs": "^0.3.2", - "make-fetch-happen": "^13.0.1", - "proc-log": "^4.2.0", - "promise-retry": "^2.0.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@sigstore/tuf": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/@sigstore/tuf/-/tuf-2.3.4.tgz", - "integrity": "sha512-44vtsveTPUpqhm9NCrbU8CWLe3Vck2HO1PNLw7RIajbB7xhtn5RBPm1VNSCMwqGYHhDsBJG8gDF0q4lgydsJvw==", - "dependencies": { - "@sigstore/protobuf-specs": "^0.3.2", - "tuf-js": "^2.2.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@sigstore/verify": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@sigstore/verify/-/verify-1.2.1.tgz", - "integrity": "sha512-8iKx79/F73DKbGfRf7+t4dqrc0bRr0thdPrxAtCKWRm/F0tG71i6O1rvlnScncJLLBZHn3h8M3c1BSUAb9yu8g==", - "dependencies": { - "@sigstore/bundle": "^2.3.2", - "@sigstore/core": "^1.1.0", - "@sigstore/protobuf-specs": "^0.3.2" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@smithy/abort-controller": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.6.tgz", - "integrity": "sha512-0XuhuHQlEqbNQZp7QxxrFTdVWdwxch4vjxYgfInF91hZFkPxf9QDrdQka0KfxFMPqLNzSw0b95uGTrLliQUavQ==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/config-resolver": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.10.tgz", - "integrity": "sha512-Uh0Sz9gdUuz538nvkPiyv1DZRX9+D15EKDtnQP5rYVAzM/dnYk3P8cg73jcxyOitPgT3mE3OVj7ky7sibzHWkw==", - "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/core": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.1.tgz", - "integrity": "sha512-DujtuDA7BGEKExJ05W5OdxCoyekcKT3Rhg1ZGeiUWaz2BJIWXjZmsG/DIP4W48GHno7AQwRsaCb8NcBgH3QZpg==", - "dependencies": { - "@smithy/middleware-serde": "^3.0.8", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-stream": "^3.2.1", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/credential-provider-imds": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.5.tgz", - "integrity": "sha512-4FTQGAsuwqTzVMmiRVTn0RR9GrbRfkP0wfu/tXWVHd2LgNpTY0uglQpIScXK4NaEyXbB3JmZt8gfVqO50lP8wg==", - "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.8", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/fetch-http-handler": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", - "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", - "dependencies": { - "@smithy/protocol-http": "^4.1.4", - "@smithy/querystring-builder": "^3.0.7", - "@smithy/types": "^3.5.0", - "@smithy/util-base64": "^3.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/hash-node": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.8.tgz", - "integrity": "sha512-tlNQYbfpWXHimHqrvgo14DrMAgUBua/cNoz9fMYcDmYej7MAmUcjav/QKQbFc3NrcPxeJ7QClER4tWZmfwoPng==", - "dependencies": { - "@smithy/types": "^3.6.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/invalid-dependency": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.8.tgz", - "integrity": "sha512-7Qynk6NWtTQhnGTTZwks++nJhQ1O54Mzi7fz4PqZOiYXb4Z1Flpb2yRvdALoggTS8xjtohWUM+RygOtB30YL3Q==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", - "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-content-length": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.10.tgz", - "integrity": "sha512-T4dIdCs1d/+/qMpwhJ1DzOhxCZjZHbHazEPJWdB4GDi2HjIZllVzeBEcdJUN0fomV8DURsgOyrbEUzg3vzTaOg==", - "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-endpoint": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.1.tgz", - "integrity": "sha512-wWO3xYmFm6WRW8VsEJ5oU6h7aosFXfszlz3Dj176pTij6o21oZnzkCLzShfmRaaCHDkBXWBdO0c4sQAvLFP6zA==", - "dependencies": { - "@smithy/core": "^2.5.1", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-middleware": "^3.0.8", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-retry": { - "version": "3.0.25", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.25.tgz", - "integrity": "sha512-m1F70cPaMBML4HiTgCw5I+jFNtjgz5z5UdGnUbG37vw6kh4UvizFYjqJGHvicfgKMkDL6mXwyPp5mhZg02g5sg==", - "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/protocol-http": "^4.1.5", - "@smithy/service-error-classification": "^3.0.8", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "tslib": "^2.6.2", - "uuid": "^9.0.1" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-serde": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.8.tgz", - "integrity": "sha512-Xg2jK9Wc/1g/MBMP/EUn2DLspN8LNt+GMe7cgF+Ty3vl+Zvu+VeZU5nmhveU+H8pxyTsjrAkci8NqY6OuvZnjA==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/middleware-stack": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.8.tgz", - "integrity": "sha512-d7ZuwvYgp1+3682Nx0MD3D/HtkmZd49N3JUndYWQXfRZrYEnCWYc8BHcNmVsPAp9gKvlurdg/mubE6b/rPS9MA==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/node-http-handler": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.2.5.tgz", - "integrity": "sha512-PkOwPNeKdvX/jCpn0A8n9/TyoxjGZB8WVoJmm9YzsnAgggTj4CrjpRHlTQw7dlLZ320n1mY1y+nTRUDViKi/3w==", - "dependencies": { - "@smithy/abort-controller": "^3.1.6", - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/property-provider": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.8.tgz", - "integrity": "sha512-ukNUyo6rHmusG64lmkjFeXemwYuKge1BJ8CtpVKmrxQxc6rhUX0vebcptFA9MmrGsnLhwnnqeH83VTU9hwOpjA==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/protocol-http": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.5.tgz", - "integrity": "sha512-hsjtwpIemmCkm3ZV5fd/T0bPIugW1gJXwZ/hpuVubt2hEUApIoUTrf6qIdh9MAWlw0vjMrA1ztJLAwtNaZogvg==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/querystring-builder": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.8.tgz", - "integrity": "sha512-btYxGVqFUARbUrN6VhL9c3dnSviIwBYD9Rz1jHuN1hgh28Fpv2xjU1HeCeDJX68xctz7r4l1PBnFhGg1WBBPuA==", - "dependencies": { - "@smithy/types": "^3.6.0", - "@smithy/util-uri-escape": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/querystring-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.8.tgz", - "integrity": "sha512-BtEk3FG7Ks64GAbt+JnKqwuobJNX8VmFLBsKIwWr1D60T426fGrV2L3YS5siOcUhhp6/Y6yhBw1PSPxA5p7qGg==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/service-error-classification": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.8.tgz", - "integrity": "sha512-uEC/kCCFto83bz5ZzapcrgGqHOh/0r69sZ2ZuHlgoD5kYgXJEThCoTuw/y1Ub3cE7aaKdznb+jD9xRPIfIwD7g==", - "dependencies": { - "@smithy/types": "^3.6.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/signature-v4": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.1.tgz", - "integrity": "sha512-NsV1jF4EvmO5wqmaSzlnTVetemBS3FZHdyc5CExbDljcyJCEEkJr8ANu2JvtNbVg/9MvKAWV44kTrGS+Pi4INg==", - "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/smithy-client": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.4.2.tgz", - "integrity": "sha512-dxw1BDxJiY9/zI3cBqfVrInij6ShjpV4fmGHesGZZUiP9OSE/EVfdwdRz0PgvkEvrZHpsj2htRaHJfftE8giBA==", - "dependencies": { - "@smithy/core": "^2.5.1", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/types": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.6.0.tgz", - "integrity": "sha512-8VXK/KzOHefoC65yRgCn5vG1cysPJjHnOVt9d0ybFQSmJgQj152vMn4EkYhGuaOmnnZvCPav/KnYyE6/KsNZ2w==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/url-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.8.tgz", - "integrity": "sha512-4FdOhwpTW7jtSFWm7SpfLGKIBC9ZaTKG5nBF0wK24aoQKQyDIKUw3+KFWCQ9maMzrgTJIuOvOnsV2lLGW5XjTg==", - "dependencies": { - "@smithy/querystring-parser": "^3.0.8", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/util-base64": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz", - "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-body-length-browser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", - "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/util-body-length-node": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", - "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", - "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", - "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-config-provider": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", - "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.25", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.25.tgz", - "integrity": "sha512-fRw7zymjIDt6XxIsLwfJfYUfbGoO9CmCJk6rjJ/X5cd20+d2Is7xjU5Kt/AiDt6hX8DAf5dztmfP5O82gR9emA==", - "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.25", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.25.tgz", - "integrity": "sha512-H3BSZdBDiVZGzt8TG51Pd2FvFO0PAx/A0mJ0EH8a13KJ6iUCdYnw/Dk/MdC1kTd0eUuUGisDFaxXVXo4HHFL1g==", - "dependencies": { - "@smithy/config-resolver": "^3.0.10", - "@smithy/credential-provider-imds": "^3.2.5", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.8", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-endpoints": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.4.tgz", - "integrity": "sha512-kPt8j4emm7rdMWQyL0F89o92q10gvCUa6sBkBtDJ7nV2+P7wpXczzOfoDJ49CKXe5CCqb8dc1W+ZdLlrKzSAnQ==", - "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", - "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-middleware": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.8.tgz", - "integrity": "sha512-p7iYAPaQjoeM+AKABpYWeDdtwQNxasr4aXQEA/OmbOaug9V0odRVDy3Wx4ci8soljE/JXQo+abV0qZpW8NX0yA==", - "dependencies": { - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-retry": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.8.tgz", - "integrity": "sha512-TCEhLnY581YJ+g1x0hapPz13JFqzmh/pMWL2KEFASC51qCfw3+Y47MrTmea4bUE5vsdxQ4F6/KFbUeSz22Q1ow==", - "dependencies": { - "@smithy/service-error-classification": "^3.0.8", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-stream": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.2.1.tgz", - "integrity": "sha512-R3ufuzJRxSJbE58K9AEnL/uSZyVdHzud9wLS8tIbXclxKzoe09CRohj2xV8wpx5tj7ZbiJaKYcutMm1eYgz/0A==", - "dependencies": { - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", - "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@smithy/util-uri-escape": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-3.0.0.tgz", - "integrity": "sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-utf8": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", - "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@smithy/util-waiter": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.7.tgz", - "integrity": "sha512-d5yGlQtmN/z5eoTtIYgkvOw27US2Ous4VycnXatyoImIF9tzlcpnKqQ/V7qhvJmb2p6xZne1NopCLakdTnkBBQ==", - "dependencies": { - "@smithy/abort-controller": "^3.1.6", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@szmarczak/http-timer": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", - "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", - "dependencies": { - "defer-to-connect": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@tufjs/canonical-json": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz", - "integrity": "sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==", - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@tufjs/models": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-2.0.1.tgz", - "integrity": "sha512-92F7/SFyufn4DXsha9+QfKnN03JGqtMFMXgSHbZOo8JG59WkTni7UzAouNQDf7AuP9OAMxVOPQcqG3sB7w+kkg==", - "dependencies": { - "@tufjs/canonical-json": "2.0.0", - "minimatch": "^9.0.4" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/@types/aws-lambda": { - "version": "8.10.145", - "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.145.tgz", - "integrity": "sha512-dtByW6WiFk5W5Jfgz1VM+YPA21xMXTuSFoLYIDY0L44jDLLflVPtZkYuu3/YxpGcvjzKFBZLU+GyKjR0HOYtyw==" - }, - "node_modules/@types/cacheable-request": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", - "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", - "dependencies": { - "@types/http-cache-semantics": "*", - "@types/keyv": "^3.1.4", - "@types/node": "*", - "@types/responselike": "^1.0.0" - } - }, - "node_modules/@types/google-protobuf": { - "version": "3.15.12", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.12.tgz", - "integrity": "sha512-40um9QqwHjRS92qnOaDpL7RmDK15NuZYo9HihiJRbYkMQZlWnuH8AdvbMy8/o6lgLmKbDUKa+OALCltHdbOTpQ==" - }, - "node_modules/@types/http-cache-semantics": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", - "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==" - }, - "node_modules/@types/keyv": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", - "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "18.19.57", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.57.tgz", - "integrity": "sha512-I2ioBd/IPrYDMv9UNR5NlPElOZ68QB7yY5V2EsLtSrTO0LM0PnCEFF9biLWHf5k+sIy4ohueCV9t4gk1AEdlVA==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/responselike": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", - "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/semver": { - "version": "7.5.8", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==" - }, - "node_modules/@types/shimmer": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@types/shimmer/-/shimmer-1.2.0.tgz", - "integrity": "sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==" - }, - "node_modules/@types/tmp": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@types/tmp/-/tmp-0.2.6.tgz", - "integrity": "sha512-chhaNf2oKHlRkDGt+tiKE2Z5aJ6qalm7Z9rlLdBwmOiAAf09YQvvoLXjWK4HWPF1xU/fqvMgfNfpVoBscA/tKA==" - }, - "node_modules/@types/uuid": { - "version": "9.0.8", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", - "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==" - }, - "node_modules/abbrev": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", - "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/acorn": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz", - "integrity": "sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-attributes": { - "version": "1.9.5", - "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", - "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", - "peerDependencies": { - "acorn": "^8" - } - }, - "node_modules/agent-base": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/aws-sdk": { - "version": "2.1691.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1691.0.tgz", - "integrity": "sha512-/F2YC+DlsY3UBM2Bdnh5RLHOPNibS/+IcjUuhP8XuctyrN+MlL+fWDAiela32LTDk7hMy4rx8MTgvbJ+0blO5g==", - "hasInstallScript": true, - "dependencies": { - "buffer": "4.9.2", - "events": "1.1.1", - "ieee754": "1.1.13", - "jmespath": "0.16.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "util": "^0.12.4", - "uuid": "8.0.0", - "xml2js": "0.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/aws-sdk/node_modules/uuid": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", - "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/bin-links": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/bin-links/-/bin-links-4.0.4.tgz", - "integrity": "sha512-cMtq4W5ZsEwcutJrVId+a/tjt8GSbS+h0oNkdl6+6rBuEv8Ot33Bevj5KPm40t309zuhVic8NjpuL42QCiJWWA==", - "dependencies": { - "cmd-shim": "^6.0.0", - "npm-normalize-package-bin": "^3.0.0", - "read-cmd-shim": "^4.0.0", - "write-file-atomic": "^5.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/bowser": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", - "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" - }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/builtin-modules": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.0.0.tgz", - "integrity": "sha512-hMIeU4K2ilbXV6Uv93ZZ0Avg/M91RaKXucQ+4me2Do1txxBDyDZWCBa5bJSLqoNTRpXTLwEzIk1KmloenDDjhg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/cacache": { - "version": "18.0.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-18.0.4.tgz", - "integrity": "sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ==", - "dependencies": { - "@npmcli/fs": "^3.1.0", - "fs-minipass": "^3.0.0", - "glob": "^10.2.2", - "lru-cache": "^10.0.1", - "minipass": "^7.0.3", - "minipass-collect": "^2.0.1", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "p-map": "^4.0.0", - "ssri": "^10.0.0", - "tar": "^6.1.11", - "unique-filename": "^3.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/cacheable-lookup": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", - "engines": { - "node": ">=10.6.0" - } - }, - "node_modules/cacheable-request": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", - "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz", - "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==" - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cmd-shim": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-6.0.3.tgz", - "integrity": "sha512-FMabTRlc5t5zjdenF6mS0MBeFZm0XqHqeOkcskKFb/LYCcRQ5fVgLOHVc4Lq9CqABd9zhjwPjMBCJvMCziSVtA==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/common-ancestor-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz", - "integrity": "sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==" - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cross-spawn/node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/cross-spawn/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "engines": { - "node": ">=10" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/docker-classic": { - "name": "@pulumi/docker", - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/@pulumi/docker/-/docker-3.6.1.tgz", - "integrity": "sha512-BZME50QkT556v+LvmTXPT8ssB2xxNkp9+msB5xYFEnUnWcdGAx5yUysQw70RJCb+U0GbkJSbxtlgMJgOQf/now==", - "hasInstallScript": true, - "dependencies": { - "@pulumi/pulumi": "^3.0.0", - "semver": "^5.4.0" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "optional": true, - "dependencies": { - "iconv-lite": "^0.6.2" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/err-code": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", - "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==" - }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/events": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", - "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exponential-backoff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", - "integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==" - }, - "node_modules/fast-xml-parser": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", - "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/fdir": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.2.tgz", - "integrity": "sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/find-up": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", - "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", - "dependencies": { - "locate-path": "^7.1.0", - "path-exists": "^5.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/fs-minipass": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", - "integrity": "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/google-protobuf": { - "version": "3.21.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz", - "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==" - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/got": { - "version": "11.8.6", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", - "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", - "dependencies": { - "@sindresorhus/is": "^4.0.0", - "@szmarczak/http-timer": "^4.0.5", - "@types/cacheable-request": "^6.0.1", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^5.0.3", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "http2-wrapper": "^1.0.0-beta.5.2", - "lowercase-keys": "^2.0.0", - "p-cancelable": "^2.0.0", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=10.19.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hosted-git-info": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", - "integrity": "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==", - "dependencies": { - "lru-cache": "^10.0.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, - "node_modules/http-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", - "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/http2-wrapper": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", - "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "optional": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" - }, - "node_modules/ignore-walk": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-6.0.5.tgz", - "integrity": "sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A==", - "dependencies": { - "minimatch": "^9.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/import-in-the-middle": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.11.2.tgz", - "integrity": "sha512-gK6Rr6EykBcc6cVWRSBR5TWf8nn6hZMYSRYqCcHa0l0d1fPK7JSYo6+Mlmck76jIX9aL/IZ71c06U2VpFwl1zA==", - "dependencies": { - "acorn": "^8.8.2", - "acorn-import-attributes": "^1.9.5", - "cjs-module-lexer": "^1.2.2", - "module-details-from-path": "^1.0.3" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ini": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", - "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/ip-address": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/ip-address/node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-lambda": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", - "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==" - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", - "dependencies": { - "which-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/isexe": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", - "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", - "engines": { - "node": ">=16" - } - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jmespath": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", - "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" - }, - "node_modules/json-parse-even-better-errors": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz", - "integrity": "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/json-stringify-nice": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz", - "integrity": "sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==", - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", - "engines": [ - "node >= 0.2.0" - ] - }, - "node_modules/just-diff": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/just-diff/-/just-diff-6.0.2.tgz", - "integrity": "sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==" - }, - "node_modules/just-diff-apply": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/just-diff-apply/-/just-diff-apply-5.5.0.tgz", - "integrity": "sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/locate-path": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", - "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", - "dependencies": { - "p-locate": "^6.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" - }, - "node_modules/make-fetch-happen": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz", - "integrity": "sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA==", - "dependencies": { - "@npmcli/agent": "^2.0.0", - "cacache": "^18.0.0", - "http-cache-semantics": "^4.1.1", - "is-lambda": "^1.0.1", - "minipass": "^7.0.2", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "proc-log": "^4.2.0", - "promise-retry": "^2.0.1", - "ssri": "^10.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minipass-collect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-2.0.1.tgz", - "integrity": "sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minipass-fetch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.5.tgz", - "integrity": "sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==", - "dependencies": { - "minipass": "^7.0.3", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, - "node_modules/minipass-flush": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", - "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-flush/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-pipeline": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", - "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-pipeline/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", - "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/module-details-from-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", - "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==" - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/negotiator": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", - "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/node-gyp": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-10.2.0.tgz", - "integrity": "sha512-sp3FonBAaFe4aYTcFdZUn2NYkbP7xroPGYvQmP4Nl5PxamznItBnNCgjrVTKrEfQynInMsJvZrdmqUnysCJ8rw==", - "dependencies": { - "env-paths": "^2.2.0", - "exponential-backoff": "^3.1.1", - "glob": "^10.3.10", - "graceful-fs": "^4.2.6", - "make-fetch-happen": "^13.0.0", - "nopt": "^7.0.0", - "proc-log": "^4.1.0", - "semver": "^7.3.5", - "tar": "^6.2.1", - "which": "^4.0.0" - }, - "bin": { - "node-gyp": "bin/node-gyp.js" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/node-gyp/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/nopt": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-7.2.1.tgz", - "integrity": "sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==", - "dependencies": { - "abbrev": "^2.0.0" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/normalize-package-data": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-6.0.2.tgz", - "integrity": "sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==", - "dependencies": { - "hosted-git-info": "^7.0.0", - "semver": "^7.3.5", - "validate-npm-package-license": "^3.0.4" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-bundled": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-3.0.1.tgz", - "integrity": "sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ==", - "dependencies": { - "npm-normalize-package-bin": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm-install-checks": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.3.0.tgz", - "integrity": "sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==", - "dependencies": { - "semver": "^7.1.1" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm-install-checks/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/npm-normalize-package-bin": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz", - "integrity": "sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm-package-arg": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-11.0.3.tgz", - "integrity": "sha512-sHGJy8sOC1YraBywpzQlIKBE4pBbGbiF95U6Auspzyem956E0+FtDtsx1ZxlOJkQCZ1AFXAY/yuvtFYrOxF+Bw==", - "dependencies": { - "hosted-git-info": "^7.0.0", - "proc-log": "^4.0.0", - "semver": "^7.3.5", - "validate-npm-package-name": "^5.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm-package-arg/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/npm-packlist": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-8.0.2.tgz", - "integrity": "sha512-shYrPFIS/JLP4oQmAwDyk5HcyysKW8/JLTEA32S0Z5TzvpaeeX2yMFfoK1fjEBnCBvVyIB/Jj/GBFdm0wsgzbA==", - "dependencies": { - "ignore-walk": "^6.0.4" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm-pick-manifest": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-9.1.0.tgz", - "integrity": "sha512-nkc+3pIIhqHVQr085X9d2JzPzLyjzQS96zbruppqC9aZRm/x8xx6xhI98gHtsfELP2bE+loHq8ZaHFHhe+NauA==", - "dependencies": { - "npm-install-checks": "^6.0.0", - "npm-normalize-package-bin": "^3.0.0", - "npm-package-arg": "^11.0.0", - "semver": "^7.3.5" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm-pick-manifest/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/npm-registry-fetch": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-17.1.0.tgz", - "integrity": "sha512-5+bKQRH0J1xG1uZ1zMNvxW0VEyoNWgJpY9UDuluPFLKDfJ9u2JmmjmTJV1srBGQOROfdBMiVvnH2Zvpbm+xkVA==", - "dependencies": { - "@npmcli/redact": "^2.0.0", - "jsonparse": "^1.3.1", - "make-fetch-happen": "^13.0.0", - "minipass": "^7.0.2", - "minipass-fetch": "^3.0.0", - "minizlib": "^2.1.2", - "npm-package-arg": "^11.0.0", - "proc-log": "^4.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-cancelable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", - "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/p-limit": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", - "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", - "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", - "dependencies": { - "p-limit": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==" - }, - "node_modules/pacote": { - "version": "18.0.6", - "resolved": "https://registry.npmjs.org/pacote/-/pacote-18.0.6.tgz", - "integrity": "sha512-+eK3G27SMwsB8kLIuj4h1FUhHtwiEUo21Tw8wNjmvdlpOEr613edv+8FUsTj/4F/VN5ywGE19X18N7CC2EJk6A==", - "dependencies": { - "@npmcli/git": "^5.0.0", - "@npmcli/installed-package-contents": "^2.0.1", - "@npmcli/package-json": "^5.1.0", - "@npmcli/promise-spawn": "^7.0.0", - "@npmcli/run-script": "^8.0.0", - "cacache": "^18.0.0", - "fs-minipass": "^3.0.0", - "minipass": "^7.0.2", - "npm-package-arg": "^11.0.0", - "npm-packlist": "^8.0.0", - "npm-pick-manifest": "^9.0.0", - "npm-registry-fetch": "^17.0.0", - "proc-log": "^4.0.0", - "promise-retry": "^2.0.1", - "sigstore": "^2.2.0", - "ssri": "^10.0.0", - "tar": "^6.1.11" - }, - "bin": { - "pacote": "bin/index.js" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/parse-conflict-json": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/parse-conflict-json/-/parse-conflict-json-3.0.1.tgz", - "integrity": "sha512-01TvEktc68vwbJOtWZluyWeVGWjP+bZwXtPDMQVbBKzbJ/vZBif0L69KH1+cHv1SZ6e0FKLvjyHe8mqsIqYOmw==", - "dependencies": { - "json-parse-even-better-errors": "^3.0.0", - "just-diff": "^6.0.0", - "just-diff-apply": "^5.2.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/path-exists": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", - "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/picomatch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz", - "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkg-dir": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-7.0.0.tgz", - "integrity": "sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==", - "dependencies": { - "find-up": "^6.3.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", - "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/proc-log": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.2.0.tgz", - "integrity": "sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/proggy": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/proggy/-/proggy-2.0.0.tgz", - "integrity": "sha512-69agxLtnI8xBs9gUGqEnK26UfiexpHy+KUpBQWabiytQjnn5wFY8rklAi7GRfABIuPNnQ/ik48+LGLkYYJcy4A==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/promise-all-reject-late": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", - "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/promise-call-limit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.2.tgz", - "integrity": "sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==", - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==" - }, - "node_modules/promise-retry": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", - "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", - "dependencies": { - "err-code": "^2.0.2", - "retry": "^0.12.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/protobufjs": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", - "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" - }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-cmd-shim": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-4.0.0.tgz", - "integrity": "sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/read-package-json-fast": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", - "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", - "dependencies": { - "json-parse-even-better-errors": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-in-the-middle": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.4.0.tgz", - "integrity": "sha512-X34iHADNbNDfr6OTStIAHWSAvvKQRYgLO6duASaVf7J2VA3lvmNYboAHOuLC2huav1IwgZJtyEcJCKVzFxOSMQ==", - "dependencies": { - "debug": "^4.3.5", - "module-details-from-path": "^1.0.3", - "resolve": "^1.22.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-alpn": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" - }, - "node_modules/responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "optional": true - }, - "node_modules/sax": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", - "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" - }, - "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/shimmer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz", - "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/sigstore": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-2.3.1.tgz", - "integrity": "sha512-8G+/XDU8wNsJOQS5ysDVO0Etg9/2uA5gR9l4ZwijjlwxBcrU6RPfwi2+jJmbP+Ap1Hlp/nVAaEO4Fj22/SL2gQ==", - "dependencies": { - "@sigstore/bundle": "^2.3.2", - "@sigstore/core": "^1.0.0", - "@sigstore/protobuf-specs": "^0.3.2", - "@sigstore/sign": "^2.3.2", - "@sigstore/tuf": "^2.3.4", - "@sigstore/verify": "^1.2.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", - "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", - "dependencies": { - "ip-address": "^9.0.5", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz", - "integrity": "sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==", - "dependencies": { - "agent-base": "^7.1.1", - "debug": "^4.3.4", - "socks": "^2.8.3" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", - "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==" - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.20", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.20.tgz", - "integrity": "sha512-jg25NiDV/1fLtSgEgyvVyDunvaNHbuwF9lfNV17gSmPFAlYzdfNBlLtLzXTevwkPj7DhGbmN9VnmJIgLnhvaBw==" - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/ssri": { - "version": "10.0.6", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.6.tgz", - "integrity": "sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/strnum": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", - "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/tar/node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/tmp": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", - "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", - "engines": { - "node": ">=14.14" - } - }, - "node_modules/treeverse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/treeverse/-/treeverse-3.0.0.tgz", - "integrity": "sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==" - }, - "node_modules/tuf-js": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-2.2.1.tgz", - "integrity": "sha512-GwIJau9XaA8nLVbUXsN3IlFi7WmQ48gBUrl3FTkkL/XLu/POhBzfmX9hd33FNMX1qAsfl6ozO1iMmW9NC8YniA==", - "dependencies": { - "@tufjs/models": "2.0.1", - "debug": "^4.3.4", - "make-fetch-happen": "^13.0.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", - "devOptional": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/unique-filename": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-3.0.0.tgz", - "integrity": "sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==", - "dependencies": { - "unique-slug": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/unique-slug": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-4.0.0.tgz", - "integrity": "sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==", - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "engines": { - "node": ">=4", - "yarn": "*" - } - }, - "node_modules/url": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", - "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/validate-npm-package-name": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz", - "integrity": "sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==" - }, - "node_modules/which": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz", - "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==", - "dependencies": { - "isexe": "^3.1.1" - }, - "bin": { - "node-which": "bin/which.js" - }, - "engines": { - "node": "^16.13.0 || >=18.0.0" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/write-file-atomic": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", - "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/write-file-atomic/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/xml2js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", - "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yocto-queue": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz", - "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/.devops/pulumi/package.json b/.devops/pulumi/package.json deleted file mode 100644 index 3b76de5..0000000 --- a/.devops/pulumi/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "coop", - "main": "index.ts", - "devDependencies": { - "@types/node": "^18", - "typescript": "^5.0.0" - }, - "dependencies": { - "@pulumi/aws": "^6.0.0", - "@pulumi/awsx": "^2.0.2", - "@pulumi/pulumi": "^3.113.0" - } -} diff --git a/.devops/pulumi/tsconfig.json b/.devops/pulumi/tsconfig.json deleted file mode 100644 index 424ba6e..0000000 --- a/.devops/pulumi/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "strict": true, - "outDir": "bin", - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "sourceMap": true, - "experimentalDecorators": true, - "pretty": true, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "forceConsistentCasingInFileNames": true - }, - "files": ["index.ts"] -} diff --git a/.dockerignore b/.dockerignore index 41d8b21..6ad08b7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,5 @@ .betterer.results .betterer.ts -.devops/ .dockerignore .env.example .git diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b4a312f..cb8843b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,13 +5,6 @@ version: 2 updates: - # Enable version updates for npm - - package-ecosystem: 'npm' # See documentation for possible values - directories: - - '/.devops/aws' # Location of package manifests - schedule: - interval: 'weekly' - # Enable version updates for Docker - package-ecosystem: "docker" directory: "/" diff --git a/.github/workflows/apply_pr_checks.yaml b/.github/workflows/apply_pr_checks.yaml index 17723ff..4d12d6c 100644 --- a/.github/workflows/apply_pr_checks.yaml +++ b/.github/workflows/apply_pr_checks.yaml @@ -76,12 +76,12 @@ jobs: # this is needed to fetch the main branch ref: ${{ github.base_ref || 'main' }} fetch-depth: 1 - sparse-checkout: '.devops/migrator/src/scripts' + sparse-checkout: 'db/src/scripts' - uses: actions/checkout@v4 with: # this is needed to fetch the main branch fetch-depth: 1 - sparse-checkout: '.devops/migrator/src/scripts' + sparse-checkout: 'db/src/scripts' - name: Check changed migration files id: check-changed-migration-files @@ -115,7 +115,7 @@ jobs: fi } - SCRIPTS_DIR=".devops/migrator/src/scripts/" + SCRIPTS_DIR="db/src/scripts/" # Checkout main so that we're correctly identifying the existing migrations # in the loop below. diff --git a/.github/workflows/checklistConfig.json b/.github/workflows/checklistConfig.json index aef8107..a3ad1da 100644 --- a/.github/workflows/checklistConfig.json +++ b/.github/workflows/checklistConfig.json @@ -10,7 +10,7 @@ ] }, { - "paths": [".devops/migrator/src/scripts/**"], + "paths": ["db/src/scripts/**"], "triggers": ["create table", "add column", "alter column"], "items": [ "Are as many columns marked NOT NULL as possible? If some columns can sometimes be null, but _not_ when another column is filled in, have you considered normalizing the schema further (see https://www.guru99.com/database-normalization.html)? If that's not viable/desirable, are there adequate SQL CHECK constraints to capture the relationships between column values (e.g., which can be null together), and are these also captured using unions in the associated kysely types?" diff --git a/.gitignore b/.gitignore index 50cd604..c47ea67 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,7 @@ yarn-debug.log* yarn-error.log* .vscode/ -.devops/migrator/build +db/build .idea/ transpiled diff --git a/.prettierignore b/.prettierignore index ba68c63..cdc942c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,3 @@ -.devops/aws/cdk.out/ .mypy_cache/ client/build/ server/signals/text_matching/fuzzy_matching/homoglyphReplacements.* diff --git a/README.md b/README.md index 2279eb9..3506b3a 100644 --- a/README.md +++ b/README.md @@ -42,14 +42,14 @@ and then follow the steps below: Make sure all backing services (`postgres`, `clickhouse`, `scylla`, etc.) are up and running. (Scylla is needed for user data.) -2. Install dependencies for the root, `client`, `server`, and `.devops/migrator` packages: +2. Install dependencies for the root, `client`, `server`, and `db` packages: ```bash npm install (cd client && npm install) (cd server && npm install) - (cd .devops/migrator && npm install) + (cd db && npm install) ``` -3. Make sure the `.env` files for `/server` and `.devops/migrator` are populated (including ClickHouse credentials). Run database migrations: +3. Make sure the `.env` files for `/server` and `db` are populated (including ClickHouse credentials). Run database migrations: ```bash npm run db:update -- --env staging --db api-server-pg npm run db:update -- --env staging --db scylla @@ -63,7 +63,7 @@ You can combine the dependency installation and database migrations into a singl npm install \ && (cd client && npm install) \ && (cd server && npm install) \ - && (cd .devops/migrator && npm install) \ + && (cd db && npm install) \ && npm run db:update -- --env staging --db api-server-pg \ && npm run db:update -- --env staging --db clickhouse ``` @@ -85,7 +85,7 @@ Please note that the initial page load may take a while. ### **Database Structure and Migrations** -All of the data around the database tables ( SQL/Schema ) exist under the `.devops/migrator/src/scripts` folder where there is a folder for each service (for example `api-server-pg`, `clickhouse`, `scylla`). +All of the data around the database tables ( SQL/Schema ) exist under the `db/src/scripts` folder where there is a folder for each service (for example `api-server-pg`, `clickhouse`, `scylla`). ### **Management Scripts** @@ -139,6 +139,10 @@ Detailed analytics on moderation effectiveness, rule performance, and content tr ### Scalable Architecture Built on modern cloud infrastructure with horizontal scaling, caching, and performance optimization. +## Deployment + +For historical reference, AWS infrastructure code (CDK, Helm charts, Pulumi, CDKTF) that was previously used for production deployments is available on the [`0.1` branch](https://github.com/roostorg/coop/tree/0.1/.devops). That infrastructure code may have drifted from the current application architecture and is no longer maintained, but can serve as a reference for your own deployment. + ## Documentation The `/docs` folder includes detailed guides on the UI, architecture, key concepts, how signals in Coop work, and how to get started. diff --git a/.devops/migrator/.dockerignore b/db/.dockerignore similarity index 100% rename from .devops/migrator/.dockerignore rename to db/.dockerignore diff --git a/.devops/migrator/.env.example b/db/.env.example similarity index 100% rename from .devops/migrator/.env.example rename to db/.env.example diff --git a/.devops/migrator/.gitignore b/db/.gitignore similarity index 100% rename from .devops/migrator/.gitignore rename to db/.gitignore diff --git a/.devops/migrator/Dockerfile b/db/Dockerfile similarity index 100% rename from .devops/migrator/Dockerfile rename to db/Dockerfile diff --git a/.devops/migrator/README.md b/db/README.md similarity index 88% rename from .devops/migrator/README.md rename to db/README.md index b0d8e56..9a75904 100644 --- a/.devops/migrator/README.md +++ b/db/README.md @@ -22,4 +22,4 @@ Copy `.env.example` and configure your database connection settings. These match node --loader ts-node/esm index.ts generate:migration --db api-server-pg --name "add_users_table" ``` -See `migrator/README.md` for concepts on migrations vs seeds. \ No newline at end of file +See the root `migrator/README.md` for concepts on migrations vs seeds. \ No newline at end of file diff --git a/.devops/migrator/package-lock.json b/db/package-lock.json similarity index 100% rename from .devops/migrator/package-lock.json rename to db/package-lock.json diff --git a/.devops/migrator/package.json b/db/package.json similarity index 100% rename from .devops/migrator/package.json rename to db/package.json diff --git a/.devops/migrator/src/configs/api-server-pg.ts b/db/src/configs/api-server-pg.ts similarity index 100% rename from .devops/migrator/src/configs/api-server-pg.ts rename to db/src/configs/api-server-pg.ts diff --git a/.devops/migrator/src/configs/clickhouse.ts b/db/src/configs/clickhouse.ts similarity index 100% rename from .devops/migrator/src/configs/clickhouse.ts rename to db/src/configs/clickhouse.ts diff --git a/.devops/migrator/src/configs/pg-base.ts b/db/src/configs/pg-base.ts similarity index 100% rename from .devops/migrator/src/configs/pg-base.ts rename to db/src/configs/pg-base.ts diff --git a/.devops/migrator/src/configs/scylla.ts b/db/src/configs/scylla.ts similarity index 100% rename from .devops/migrator/src/configs/scylla.ts rename to db/src/configs/scylla.ts diff --git a/.devops/migrator/src/index.ts b/db/src/index.ts similarity index 100% rename from .devops/migrator/src/index.ts rename to db/src/index.ts diff --git a/.devops/migrator/src/scripts/api-server-pg/2025.12.01T00.00.00.initial-schema.sql b/db/src/scripts/api-server-pg/2025.12.01T00.00.00.initial-schema.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2025.12.01T00.00.00.initial-schema.sql rename to db/src/scripts/api-server-pg/2025.12.01T00.00.00.initial-schema.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2025.12.01T00.00.01.initial-test-data.seed.staging.sql b/db/src/scripts/api-server-pg/2025.12.01T00.00.01.initial-test-data.seed.staging.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2025.12.01T00.00.01.initial-test-data.seed.staging.sql rename to db/src/scripts/api-server-pg/2025.12.01T00.00.01.initial-test-data.seed.staging.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2026.01.24T22.37.12.create_hash_banks_table.sql b/db/src/scripts/api-server-pg/2026.01.24T22.37.12.create_hash_banks_table.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2026.01.24T22.37.12.create_hash_banks_table.sql rename to db/src/scripts/api-server-pg/2026.01.24T22.37.12.create_hash_banks_table.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2026.02.09T00.00.00.add_google_content_safety.sql b/db/src/scripts/api-server-pg/2026.02.09T00.00.00.add_google_content_safety.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2026.02.09T00.00.00.add_google_content_safety.sql rename to db/src/scripts/api-server-pg/2026.02.09T00.00.00.add_google_content_safety.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2026.02.10T00.00.00.add_default_ncmec_queue_to_ncmec_org_settings.sql b/db/src/scripts/api-server-pg/2026.02.10T00.00.00.add_default_ncmec_queue_to_ncmec_org_settings.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2026.02.10T00.00.00.add_default_ncmec_queue_to_ncmec_org_settings.sql rename to db/src/scripts/api-server-pg/2026.02.10T00.00.00.add_default_ncmec_queue_to_ncmec_org_settings.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2026.02.16T00.00.00.add_default_internet_detail_type_to_ncmec_org_settings.sql b/db/src/scripts/api-server-pg/2026.02.16T00.00.00.add_default_internet_detail_type_to_ncmec_org_settings.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2026.02.16T00.00.00.add_default_internet_detail_type_to_ncmec_org_settings.sql rename to db/src/scripts/api-server-pg/2026.02.16T00.00.00.add_default_internet_detail_type_to_ncmec_org_settings.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2026.02.18T00.00.00.add_zentropi_signal.sql b/db/src/scripts/api-server-pg/2026.02.18T00.00.00.add_zentropi_signal.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2026.02.18T00.00.00.add_zentropi_signal.sql rename to db/src/scripts/api-server-pg/2026.02.18T00.00.00.add_zentropi_signal.sql diff --git a/.devops/migrator/src/scripts/api-server-pg/2026.02.23T00.00.00.add_generic_integration_configs.sql b/db/src/scripts/api-server-pg/2026.02.23T00.00.00.add_generic_integration_configs.sql similarity index 100% rename from .devops/migrator/src/scripts/api-server-pg/2026.02.23T00.00.00.add_generic_integration_configs.sql rename to db/src/scripts/api-server-pg/2026.02.23T00.00.00.add_generic_integration_configs.sql diff --git a/.devops/migrator/src/scripts/clickhouse/2025.11.22T00.00.00.initial-schema.sql b/db/src/scripts/clickhouse/2025.11.22T00.00.00.initial-schema.sql similarity index 100% rename from .devops/migrator/src/scripts/clickhouse/2025.11.22T00.00.00.initial-schema.sql rename to db/src/scripts/clickhouse/2025.11.22T00.00.00.initial-schema.sql diff --git a/.devops/migrator/src/scripts/scylla/2025.12.03T00.00.00.initial-schema.cjs b/db/src/scripts/scylla/2025.12.03T00.00.00.initial-schema.cjs similarity index 100% rename from .devops/migrator/src/scripts/scylla/2025.12.03T00.00.00.initial-schema.cjs rename to db/src/scripts/scylla/2025.12.03T00.00.00.initial-schema.cjs diff --git a/.devops/migrator/src/scripts/scylla/2025.12.03T00.00.01.change-compression-to-zstd.cjs b/db/src/scripts/scylla/2025.12.03T00.00.01.change-compression-to-zstd.cjs similarity index 100% rename from .devops/migrator/src/scripts/scylla/2025.12.03T00.00.01.change-compression-to-zstd.cjs rename to db/src/scripts/scylla/2025.12.03T00.00.01.change-compression-to-zstd.cjs diff --git a/.devops/migrator/tsconfig.json b/db/tsconfig.json similarity index 100% rename from .devops/migrator/tsconfig.json rename to db/tsconfig.json diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index d206d25..d4ca620 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -48,12 +48,11 @@ coop/ │ ├── services/ # Business logic services including NCMEC │ └── workers_jobs/ # Background processing │ -├── .devops/ -│ └── migrator/ # Database migrations -│ └── src/scripts/ -│ ├── api-server-pg/ # PostgreSQL -│ ├── clickhouse/ # ClickHouse -│ └── scylla/ # Scylla +├── db/ # Database migrations +│ └── src/scripts/ +│ ├── api-server-pg/ # PostgreSQL +│ ├── clickhouse/ # ClickHouse +│ └── scylla/ # Scylla │ └── docs/ # Documentation ``` diff --git a/docs/DATA_WAREHOUSE_ABSTRACTION.md b/docs/DATA_WAREHOUSE_ABSTRACTION.md index dea165f..b4fcb68 100644 --- a/docs/DATA_WAREHOUSE_ABSTRACTION.md +++ b/docs/DATA_WAREHOUSE_ABSTRACTION.md @@ -137,7 +137,7 @@ All warehouses need these tables. Schema types defined in `/server/storage/dataW - `CONTENT_API_REQUESTS` - API request logs ClickHouse DDL lives alongside the rest of our migrations at -`.devops/migrator/src/scripts/clickhouse/`. Add new files there when the schema evolves. +`db/src/scripts/clickhouse/`. Add new files there when the schema evolves. **Migration examples:** @@ -369,6 +369,6 @@ server/services/analyticsQueries/ # Warehouse-agnostic queries - **Schema types:** `/server/storage/dataWarehouse/IDataWarehouseAnalytics.ts` - **Clickhouse:** `server/plugins/warehouse` and `server/plugins/analytics` adapters -- **PostgreSQL migrations:** `.devops/migrator/src/scripts/api-server-pg/` (app DB); analytics tables may live in a dedicated analytics database per deployment +- **PostgreSQL migrations:** `db/src/scripts/api-server-pg/` (app DB); analytics tables may live in a dedicated analytics database per deployment - **Loggers:** `/server/services/analyticsLoggers/` - **Queries:** `/server/services/analyticsQueries/` diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index d8e1463..74fa7c4 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -83,7 +83,7 @@ npm run db:drop # Drop database ### Migration Locations ``` -.devops/migrator/src/scripts/ +db/src/scripts/ ├── api-server-pg/ # PostgreSQL ├── clickhouse/ # ClickHouse └── scylla/ # ScyllaDB diff --git a/migrator/README.md b/migrator/README.md index 02e4cab..8f766eb 100644 --- a/migrator/README.md +++ b/migrator/README.md @@ -17,4 +17,4 @@ Seeds are timestamped and run interspersed with migrations (not after). This ens ## Usage -See `.devops/migrator/README.md` for CLI commands and setup instructions. \ No newline at end of file +See `db/README.md` for CLI commands and setup instructions. \ No newline at end of file diff --git a/package.json b/package.json index a798b9f..0c36eec 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,11 @@ "compile": "concurrently \"npm run server:start\" \"BROWSER=none npm run client:start\" \"npm run generate:watch\" --kill-others", "client:start": "cd client && npm start", "server:start": "cd server && npm start", - "db:add": "cd .devops/migrator && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts add", - "db:clean": "cd .devops/migrator && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts clean", - "db:update": "cd .devops/migrator && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts apply", - "db:create": "cd .devops/migrator && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts create", - "db:drop": "cd .devops/migrator && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts drop", + "db:add": "cd db && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts add", + "db:clean": "cd db && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts clean", + "db:update": "cd db && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts apply", + "db:create": "cd db && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts create", + "db:drop": "cd db && npm i && NODE_OPTIONS=\"--loader ts-node/esm --require dotenv/config\" node src/index.ts drop", "check:prepush": "cd server && npm run check:prepush && cd ../client && npm run check:prepush", "format": "prettier --write \"./**/*.{ts,tsx,json}\"", "generate": "graphql-codegen",