From 20c7ba1ed9380fbf3ef0e23e0a6e136ad4a975d4 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Wed, 29 Jan 2025 08:42:23 -0700 Subject: [PATCH 01/21] initial draft --- Makefile | 7 +- docs/auto-instrumentation-install.md | 93 +- .../certmanager/cainjector-deployment.yaml | 59 - .../certmanager/cainjector-rbac.yaml | 109 - .../cainjector-serviceaccount.yaml | 16 - .../rendered_manifests/certmanager/crds.yaml | 4709 ----------------- .../certmanager/deployment.yaml | 86 - .../rendered_manifests/certmanager/rbac.yaml | 581 -- .../certmanager/service.yaml | 26 - .../certmanager/serviceaccount.yaml | 16 - .../certmanager/startupapicheck-job.yaml | 56 - .../certmanager/startupapicheck-rbac.yaml | 51 - .../startupapicheck-serviceaccount.yaml | 20 - .../certmanager/webhook-deployment.yaml | 92 - .../certmanager/webhook-mutating-webhook.yaml | 41 - .../certmanager/webhook-rbac.yaml | 90 - .../certmanager/webhook-service.yaml | 26 - .../certmanager/webhook-serviceaccount.yaml | 16 - .../webhook-validating-webhook.yaml | 48 - .../operator/certmanager.yaml | 6 - helm-charts/splunk-otel-collector/Chart.yaml | 5 - .../splunk-otel-collector/values.schema.json | 6 +- helm-charts/splunk-otel-collector/values.yaml | 17 +- 23 files changed, 96 insertions(+), 6080 deletions(-) delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-deployment.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-rbac.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-serviceaccount.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/crds.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/deployment.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/rbac.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/service.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/serviceaccount.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-job.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-rbac.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-serviceaccount.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-deployment.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-mutating-webhook.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-rbac.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-service.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-serviceaccount.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-validating-webhook.yaml diff --git a/Makefile b/Makefile index 4378a8f02..20d76fa68 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ $(LOCALBIN): mkdir -p $(LOCALBIN) CHLOGGEN ?= $(LOCALBIN)/chloggen -CERTMANAGER_VERSION ?= $(shell yq eval ".dependencies[] | select(.name == \"cert-manager\") | .version" helm-charts/splunk-otel-collector/Chart.yaml) +CERTMANAGER_VERSION ?= v1.14.4 # The help target as provided .PHONY: help @@ -52,13 +52,8 @@ dep-update: ## Fetch Helm chart dependency repositories, build the Helm chart wi if ! (helm repo list | grep -q open-telemetry) ; then \ helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts || exit 1; \ fi ;\ - if ! (helm repo list | grep -q jetstack) ; then \ - helm repo add jetstack https://charts.jetstack.io || exit 1; \ - fi ;\ - helm repo update open-telemetry jetstack || exit 1; \ DEP_OK=true ;\ if ! helm dependencies list $$DIR | grep open-telemetry | grep -q ok ; then DEP_OK=false ; fi ;\ - if ! helm dependencies list $$DIR | grep jetstack | grep -q ok ; then DEP_OK=false ; fi ;\ if [ "$$DEP_OK" = "false" ] ; then helm dependencies update $$DIR || exit 1; fi ;\ if [ -f "$$LOCK_FILE" ] ; then \ echo "Removing Chart.lock file post-update..."; \ diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index 5248eda8e..92dfafc6e 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -533,10 +533,93 @@ kubectl get certificates # splunk-otel-collector-operator-serving-cert True splunk-otel-collector-operator-controller-manager-service-cert 5m ``` -##### Using a Self-Signed Certificate for the Webhook +#### TLS Certificate Requirement for Kubernetes Operator Webhooks -The operator supports various methods for managing TLS certificates for the webhook. Below are the options available through the operator, with a brief description for each. For detailed configurations and specific use cases, please refer to the operator’s -[official Helm chart documentation](https://github.com/open-telemetry/opentelemetry-helm-charts/blob/main/charts/opentelemetry-operator/values.yaml) +In Kubernetes, the API server communicates with operator webhook components over HTTPS, which requires a valid TLS certificate that the API server trusts. The operator supports several methods for configuring the required certificate, each with different levels of complexity and security. -**Note**: While using a self-signed certificate offers a quicker and simpler setup, it has limitations, such as not being trusted by default by clients. -This may be acceptable for testing purposes or internal environments. For complete configurations and additional guidance, please refer to the provided link to the Helm chart documentation. +--- + +##### 1. **Using a Self-Signed Certificate Generated by the Chart** + +This is the default and simplest method for generating a TLS certificate. It automatically creates a self-signed certificate for the webhook. It is suitable for internal environments or testing purposes but may not be trusted by clients outside your cluster. + +**Configuration:** +- Set `admissionWebhooks.certManager.enabled` to `false` and `admissionWebhooks.autoGenerateCert.enabled` to `true`. +- Helm generates a self-signed certificate, valid for 10 years, and creates a secret for the webhook. +- The certificate is automatically recreated on every Helm upgrade. + +This is the easiest setup for users and does not require additional configuration. + +**Note**: Self-signed certificates are not trusted by default by clients, so this option is generally best for internal or testing scenarios. + +--- + +##### 2. **Using a cert-manager Certificate** + +Using `cert-manager` offers more control over certificate management and is more suitable for production environments. However, due to Helm’s install/upgrade order of operations, cert-manager CRDs and certificates cannot be installed within the same Helm operation. To work around this limitation, you can choose one of the following options: + +###### Option 1: **Pre-deploy cert-manager** + +If `cert-manager` is already deployed in your cluster, you can configure the operator to use it without enabling certificate generation by Helm. + +**Configuration:** +```yaml +operator: + admissionWebhooks: + certManager: + enabled: true + autoGenerateCert: + enabled: false +``` + +###### Option 2: **Deploy cert-manager and the operator together** + +If you need to install `cert-manager` along with the operator, use a Helm post-install or post-upgrade hook to ensure that the certificate is created after cert-manager CRDs are installed. + +**Configuration:** +```yaml +operator: + admissionWebhooks: + certManager: + enabled: true + certificateAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "1" + issuerAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "1" +certmanager: + enabled: true + installCRDs: true +``` + +This method is useful when installing `cert-manager` as a subchart or as part of a larger Helm chart installation. + +--- + +##### 3. **Using a Custom Externally Generated Certificate** + +For full control, you can use an externally generated certificate. This is suitable if you already have a certificate issued by a trusted CA or have specific security requirements. + +**Configuration:** +- Set both `operator.admissionWebhooks.certManager.enabled` and `operator.admissionWebhooks.autoGenerateCert.enabled` to `false`. +- Provide the paths to your certificate (`certFile`), private key (`keyFile`), and CA certificate (`caFile`) in the values. + +**Example:** +```yaml +operator: + admissionWebhooks: + certManager: + enabled: false + autoGenerateCert: + enabled: false + certFile: /path/to/cert.crt + keyFile: /path/to/cert.key + caFile: /path/to/ca.crt +``` + +This method allows you to use a certificate that is trusted by external systems, such as certificates issued by a corporate CA. + +--- + +For more advanced use cases, refer to the [official Helm chart documentation](https://github.com/open-telemetry/opentelemetry-helm-charts/blob/main/charts/opentelemetry-operator/values.yaml) for detailed configuration options and scenarios. diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-deployment.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-deployment.yaml deleted file mode 100644 index 1bcb8a53a..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-deployment.yaml +++ /dev/null @@ -1,59 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/cainjector-deployment.yaml -apiVersion: apps/v1 -kind: Deployment -metadata: - name: default-certmanager-cainjector - namespace: default - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - template: - metadata: - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - spec: - serviceAccountName: default-certmanager-cainjector - enableServiceLinks: false - securityContext: - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - containers: - - name: certmanager-cainjector - image: "quay.io/jetstack/cert-manager-cainjector:v1.14.4" - imagePullPolicy: IfNotPresent - args: - - --v=2 - - --leader-election-namespace=kube-system - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - nodeSelector: - kubernetes.io/os: linux diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-rbac.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-rbac.yaml deleted file mode 100644 index 9b57d5a0e..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-rbac.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/cainjector-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-cainjector - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["cert-manager.io"] - resources: ["certificates"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["events"] - verbs: ["get", "create", "update", "patch"] - - apiGroups: ["admissionregistration.k8s.io"] - resources: ["validatingwebhookconfigurations", "mutatingwebhookconfigurations"] - verbs: ["get", "list", "watch", "update", "patch"] - - apiGroups: ["apiregistration.k8s.io"] - resources: ["apiservices"] - verbs: ["get", "list", "watch", "update", "patch"] - - apiGroups: ["apiextensions.k8s.io"] - resources: ["customresourcedefinitions"] - verbs: ["get", "list", "watch", "update", "patch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/cainjector-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-cainjector - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-cainjector -subjects: - - name: default-certmanager-cainjector - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/cainjector-rbac.yaml -# leader election rules -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: default-certmanager-cainjector:leaderelection - namespace: kube-system - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - # Used for leader election by the controller - # cert-manager-cainjector-leader-election is used by the CertificateBased injector controller - # see cmd/cainjector/start.go#L113 - # cert-manager-cainjector-leader-election-core is used by the SecretBased injector controller - # see cmd/cainjector/start.go#L137 - - apiGroups: ["coordination.k8s.io"] - resources: ["leases"] - resourceNames: ["cert-manager-cainjector-leader-election", "cert-manager-cainjector-leader-election-core"] - verbs: ["get", "update", "patch"] - - apiGroups: ["coordination.k8s.io"] - resources: ["leases"] - verbs: ["create"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/cainjector-rbac.yaml -# grant cert-manager permission to manage the leaderelection configmap in the -# leader election namespace -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: default-certmanager-cainjector:leaderelection - namespace: kube-system - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: default-certmanager-cainjector:leaderelection -subjects: - - kind: ServiceAccount - name: default-certmanager-cainjector - namespace: default diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-serviceaccount.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-serviceaccount.yaml deleted file mode 100644 index 88d0a6ae0..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/cainjector-serviceaccount.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/cainjector-serviceaccount.yaml -apiVersion: v1 -kind: ServiceAccount -automountServiceAccountToken: true -metadata: - name: default-certmanager-cainjector - namespace: default - labels: - app: cainjector - app.kubernetes.io/name: cainjector - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cainjector" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/crds.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/crds.yaml deleted file mode 100644 index d70ee0412..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/crds.yaml +++ /dev/null @@ -1,4709 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/crds.yaml -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: certificaterequests.cert-manager.io - labels: - app: 'certmanager' - app.kubernetes.io/name: 'certmanager' - app.kubernetes.io/instance: 'default' - # Generated labels - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - group: cert-manager.io - names: - kind: CertificateRequest - listKind: CertificateRequestList - plural: certificaterequests - shortNames: - - cr - - crs - singular: certificaterequest - categories: - - cert-manager - scope: Namespaced - versions: - - name: v1 - subresources: - status: {} - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=="Approved")].status - name: Approved - type: string - - jsonPath: .status.conditions[?(@.type=="Denied")].status - name: Denied - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .spec.issuerRef.name - name: Issuer - type: string - - jsonPath: .spec.username - name: Requestor - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - priority: 1 - type: string - - jsonPath: .metadata.creationTimestamp - description: 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. - name: Age - type: date - schema: - openAPIV3Schema: - description: "A CertificateRequest is used to request a signed certificate from one of the configured issuers. \n All fields within the CertificateRequest's `spec` are immutable after creation. A CertificateRequest will either succeed or fail, as denoted by its `Ready` status condition and its `status.failureTime` field. \n A CertificateRequest is a one-shot resource, meaning it represents a single point in time request for a certificate and cannot be re-used." - type: object - 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 the desired state of the CertificateRequest resource. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - type: object - required: - - issuerRef - - request - properties: - duration: - description: 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. - type: string - extra: - description: Extra contains extra attributes of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. - type: object - additionalProperties: - type: array - items: - type: string - groups: - description: Groups contains group membership of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. - type: array - items: - type: string - x-kubernetes-list-type: atomic - isCA: - description: "Requested basic constraints isCA value. Note that the issuer may choose to ignore the requested isCA value, just like any other requested attribute. \n NOTE: If the CSR in the `Request` field has a BasicConstraints extension, it must have the same isCA value as specified here. \n If true, this will automatically add the `cert sign` usage to the list of requested `usages`." - type: boolean - issuerRef: - description: "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. \n The `name` field of the reference must always be specified." - type: object - required: - - name - properties: - group: - description: Group of the resource being referred to. - type: string - kind: - description: Kind of the resource being referred to. - type: string - name: - description: Name of the resource being referred to. - type: string - request: - description: "The PEM-encoded X.509 certificate signing request to be submitted to the issuer for signing. \n If the CSR has a BasicConstraints extension, its isCA attribute must match the `isCA` value of this CertificateRequest. If the CSR has a KeyUsage extension, its key usages must match the key usages in the `usages` field of this CertificateRequest. If the CSR has a ExtKeyUsage extension, its extended key usages must match the extended key usages in the `usages` field of this CertificateRequest." - type: string - format: byte - uid: - description: UID contains the uid of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. - type: string - usages: - description: "Requested key usages and extended key usages. \n NOTE: If the CSR in the `Request` field has uses the KeyUsage or ExtKeyUsage extension, these extensions must have the same values as specified here without any additional values. \n If unset, defaults to `digital signature` and `key encipherment`." - type: array - items: - description: "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 \n 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\"" - type: string - enum: - - 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 - username: - description: Username contains the name of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. - type: string - status: - description: 'Status of the CertificateRequest. This is set and managed automatically. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' - type: object - properties: - ca: - description: The PEM encoded X.509 certificate of the signer, also known as the CA (Certificate Authority). This is set on a best-effort basis by different issuers. If not set, the CA is assumed to be unknown/not available. - type: string - format: byte - certificate: - description: The PEM encoded X.509 certificate resulting from the certificate signing request. If not set, the CertificateRequest has either not been completed or has failed. More information on failure can be found by checking the `conditions` field. - type: string - format: byte - conditions: - description: List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`, `InvalidRequest`, `Approved` and `Denied`. - type: array - items: - description: CertificateRequestCondition contains condition information for a CertificateRequest. - type: object - required: - - status - - type - properties: - lastTransitionTime: - description: LastTransitionTime is the timestamp corresponding to the last status change of this condition. - type: string - format: date-time - message: - description: Message is a human readable description of the details of the last transition, complementing reason. - type: string - reason: - description: Reason is a brief machine readable explanation for the condition's last transition. - type: string - status: - description: Status of the condition, one of (`True`, `False`, `Unknown`). - type: string - enum: - - "True" - - "False" - - Unknown - type: - description: Type of the condition, known values are (`Ready`, `InvalidRequest`, `Approved`, `Denied`). - type: string - x-kubernetes-list-map-keys: - - type - x-kubernetes-list-type: map - failureTime: - description: FailureTime stores the time that this CertificateRequest failed. This is used to influence garbage collection and back-off. - type: string - format: date-time - served: true - storage: true ---- -# Source: splunk-otel-collector/charts/certmanager/templates/crds.yaml -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: certificates.cert-manager.io - labels: - app: 'certmanager' - app.kubernetes.io/name: 'certmanager' - app.kubernetes.io/instance: 'default' - # Generated labels - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - group: cert-manager.io - names: - kind: Certificate - listKind: CertificateList - plural: certificates - shortNames: - - cert - - certs - singular: certificate - categories: - - cert-manager - scope: Namespaced - versions: - - name: v1 - subresources: - status: {} - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .spec.secretName - name: Secret - type: string - - jsonPath: .spec.issuerRef.name - name: Issuer - priority: 1 - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - priority: 1 - type: string - - jsonPath: .metadata.creationTimestamp - description: 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. - name: Age - type: date - schema: - openAPIV3Schema: - description: "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`. \n The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`)." - type: object - 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 the desired state of the Certificate resource. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - type: object - required: - - issuerRef - - secretName - properties: - additionalOutputFormats: - description: "Defines extra output formats of the private key and signed certificate chain to be written to this Certificate's target Secret. \n This is an Alpha Feature and is only enabled with the `--feature-gates=AdditionalCertificateOutputFormats=true` option set on both the controller and webhook components." - type: array - items: - description: CertificateAdditionalOutputFormat defines an additional output format of a Certificate resource. These contain supplementary data formats of the signed certificate chain and paired private key. - type: object - required: - - type - properties: - type: - description: Type is the name of the format type that should be written to the Certificate's target Secret. - type: string - enum: - - DER - - CombinedPEM - commonName: - description: "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). \n Should have a length of 64 characters or fewer to avoid generating invalid CSRs. Cannot be set if the `literalSubject` field is set." - type: string - dnsNames: - description: Requested DNS subject alternative names. - type: array - items: - type: string - duration: - description: "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. \n 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." - type: string - emailAddresses: - description: Requested email subject alternative names. - type: array - items: - type: string - encodeUsagesInRequest: - description: "Whether the KeyUsage and ExtKeyUsage extensions should be set in the encoded CSR. \n This option defaults to true, and should only be disabled if the target issuer does not support CSRs with these X509 KeyUsage/ ExtKeyUsage extensions." - type: boolean - ipAddresses: - description: Requested IP address subject alternative names. - type: array - items: - type: string - isCA: - description: "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. \n If true, this will automatically add the `cert sign` usage to the list of requested `usages`." - type: boolean - issuerRef: - description: "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. \n The `name` field of the reference must always be specified." - type: object - required: - - name - properties: - group: - description: Group of the resource being referred to. - type: string - kind: - description: Kind of the resource being referred to. - type: string - name: - description: Name of the resource being referred to. - type: string - keystores: - description: Additional keystore output formats to be stored in the Certificate's Secret. - type: object - properties: - jks: - description: JKS configures options for storing a JKS keystore in the `spec.secretName` Secret resource. - type: object - required: - - create - - passwordSecretRef - properties: - create: - description: 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 - type: boolean - passwordSecretRef: - description: PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the JKS keystore. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - pkcs12: - description: PKCS12 configures options for storing a PKCS12 keystore in the `spec.secretName` Secret resource. - type: object - required: - - create - - passwordSecretRef - properties: - create: - description: 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 - type: boolean - passwordSecretRef: - description: PasswordSecretRef is a reference to a key in a Secret resource containing the password used to encrypt the PKCS12 keystore. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - profile: - description: "Profile specifies the key and certificate encryption algorithms and the HMAC algorithm used to create the PKCS12 keystore. Default value is `LegacyRC2` for backward compatibility. \n If provided, allowed values are: `LegacyRC2`: Deprecated. Not supported by default in OpenSSL 3 or Java 20. `LegacyDES`: Less secure algorithm. Use this option for maximal compatibility. `Modern2023`: Secure algorithm. Use this option in case you have to always use secure algorithms (eg. because of company policy). Please note that the security of the algorithm is not that important in reality, because the unencrypted certificate and private key are also stored in the Secret." - type: string - enum: - - LegacyRC2 - - LegacyDES - - Modern2023 - literalSubject: - description: "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 \n 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." - type: string - nameConstraints: - description: "x.509 certificate NameConstraint extension which MUST NOT be used in a non-CA certificate. More Info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.10 \n This is an Alpha Feature and is only enabled with the `--feature-gates=NameConstraints=true` option set on both the controller and webhook components." - type: object - properties: - critical: - description: if true then the name constraints are marked critical. - type: boolean - excluded: - description: Excluded contains the constraints which must be disallowed. Any name matching a restriction in the excluded field is invalid regardless of information appearing in the permitted - type: object - properties: - dnsDomains: - description: DNSDomains is a list of DNS domains that are permitted or excluded. - type: array - items: - type: string - emailAddresses: - description: EmailAddresses is a list of Email Addresses that are permitted or excluded. - type: array - items: - type: string - ipRanges: - description: IPRanges is a list of IP Ranges that are permitted or excluded. This should be a valid CIDR notation. - type: array - items: - type: string - uriDomains: - description: URIDomains is a list of URI domains that are permitted or excluded. - type: array - items: - type: string - permitted: - description: Permitted contains the constraints in which the names must be located. - type: object - properties: - dnsDomains: - description: DNSDomains is a list of DNS domains that are permitted or excluded. - type: array - items: - type: string - emailAddresses: - description: EmailAddresses is a list of Email Addresses that are permitted or excluded. - type: array - items: - type: string - ipRanges: - description: IPRanges is a list of IP Ranges that are permitted or excluded. This should be a valid CIDR notation. - type: array - items: - type: string - uriDomains: - description: URIDomains is a list of URI domains that are permitted or excluded. - type: array - items: - type: string - otherNames: - description: '`otherNames` is an escape hatch for SAN that allows any type. We currently restrict the support to string like otherNames, cf RFC 5280 p 37 Any UTF8 String valued otherName can be passed with by setting the keys oid: x.x.x.x and UTF8Value: somevalue for `otherName`. Most commonly this would be UPN set with oid: 1.3.6.1.4.1.311.20.2.3 You should ensure that any OID passed is valid for the UTF8String type as we do not explicitly validate this.' - type: array - items: - type: object - properties: - oid: - description: OID is the object identifier for the otherName SAN. The object identifier must be expressed as a dotted string, for example, "1.2.840.113556.1.4.221". - type: string - utf8Value: - description: utf8Value is the string value of the otherName SAN. The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN. - type: string - privateKey: - description: Private key options. These include the key algorithm and size, the used encoding and the rotation policy. - type: object - properties: - algorithm: - description: "Algorithm is the private key algorithm of the corresponding private key for this certificate. \n 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." - type: string - enum: - - RSA - - ECDSA - - Ed25519 - encoding: - description: "The private key cryptography standards (PKCS) encoding for this certificate's private key to be encoded in. \n If provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1 and PKCS#8, respectively. Defaults to `PKCS1` if not specified." - type: string - enum: - - PKCS1 - - PKCS8 - rotationPolicy: - description: "RotationPolicy controls how private keys should be regenerated when a re-issuance is being processed. \n 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." - type: string - enum: - - Never - - Always - size: - description: "Size is the key bit size of the corresponding private key for this certificate. \n 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." - type: integer - renewBefore: - description: "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). \n 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. \n 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." - type: string - revisionHistoryLimit: - description: "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. \n If set, revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`), revisions will not be garbage collected. Default value is `nil`." - type: integer - format: int32 - secretName: - description: 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. - type: string - secretTemplate: - description: 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. - type: object - properties: - annotations: - description: Annotations is a key value map to be copied to the target Kubernetes Secret. - type: object - additionalProperties: - type: string - labels: - description: Labels is a key value map to be copied to the target Kubernetes Secret. - type: object - additionalProperties: - type: string - subject: - description: "Requested set of X509 certificate subject attributes. More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 \n The common name attribute is specified separately in the `commonName` field. Cannot be set if the `literalSubject` field is set." - type: object - properties: - countries: - description: Countries to be used on the Certificate. - type: array - items: - type: string - localities: - description: Cities to be used on the Certificate. - type: array - items: - type: string - organizationalUnits: - description: Organizational Units to be used on the Certificate. - type: array - items: - type: string - organizations: - description: Organizations to be used on the Certificate. - type: array - items: - type: string - postalCodes: - description: Postal codes to be used on the Certificate. - type: array - items: - type: string - provinces: - description: State/Provinces to be used on the Certificate. - type: array - items: - type: string - serialNumber: - description: Serial number to be used on the Certificate. - type: string - streetAddresses: - description: Street addresses to be used on the Certificate. - type: array - items: - type: string - uris: - description: Requested URI subject alternative names. - type: array - items: - type: string - usages: - description: "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. \n If unset, defaults to `digital signature` and `key encipherment`." - type: array - items: - description: "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 \n 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\"" - type: string - enum: - - 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 - status: - description: 'Status of the Certificate. This is set and managed automatically. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' - type: object - properties: - conditions: - description: List of status conditions to indicate the status of certificates. Known condition types are `Ready` and `Issuing`. - type: array - items: - description: CertificateCondition contains condition information for an Certificate. - type: object - required: - - status - - type - properties: - lastTransitionTime: - description: LastTransitionTime is the timestamp corresponding to the last status change of this condition. - type: string - format: date-time - message: - description: Message is a human readable description of the details of the last transition, complementing reason. - type: string - observedGeneration: - description: If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the Certificate. - type: integer - format: int64 - reason: - description: Reason is a brief machine readable explanation for the condition's last transition. - type: string - status: - description: Status of the condition, one of (`True`, `False`, `Unknown`). - type: string - enum: - - "True" - - "False" - - Unknown - type: - description: Type of the condition, known values are (`Ready`, `Issuing`). - type: string - x-kubernetes-list-map-keys: - - type - x-kubernetes-list-type: map - failedIssuanceAttempts: - description: The number of continuous failed issuance attempts up till now. This field gets removed (if set) on a successful issuance and gets set to 1 if unset and an issuance has failed. If an issuance has failed, the delay till the next issuance will be calculated using formula time.Hour * 2 ^ (failedIssuanceAttempts - 1). - type: integer - lastFailureTime: - description: LastFailureTime is set only if the lastest issuance for this Certificate failed and contains the time of the failure. If an issuance has failed, the delay till the next issuance will be calculated using formula time.Hour * 2 ^ (failedIssuanceAttempts - 1). If the latest issuance has succeeded this field will be unset. - type: string - format: date-time - nextPrivateKeySecretName: - description: The name of the Secret resource containing the private key to be used for the next certificate iteration. The keymanager controller will automatically set this field if the `Issuing` condition is set to `True`. It will automatically unset this field when the Issuing condition is not set or False. - type: string - notAfter: - description: The expiration time of the certificate stored in the secret named by this resource in `spec.secretName`. - type: string - format: date-time - notBefore: - description: The time after which the certificate stored in the secret named by this resource in `spec.secretName` is valid. - type: string - format: date-time - renewalTime: - description: RenewalTime is the time at which the certificate will be next renewed. If not set, no upcoming renewal is scheduled. - type: string - format: date-time - revision: - description: "The current 'revision' of the certificate as issued. \n When a CertificateRequest resource is created, it will have the `cert-manager.io/certificate-revision` set to one greater than the current value of this field. \n Upon issuance, this field will be set to the value of the annotation on the CertificateRequest resource used to issue the certificate. \n Persisting the value on the CertificateRequest resource allows the certificates controller to know whether a request is part of an old issuance or if it is part of the ongoing revision's issuance by checking if the revision value in the annotation is greater than this field." - type: integer - served: true - storage: true ---- -# Source: splunk-otel-collector/charts/certmanager/templates/crds.yaml -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: challenges.acme.cert-manager.io - labels: - app: 'certmanager' - app.kubernetes.io/name: 'certmanager' - app.kubernetes.io/instance: 'default' - # Generated labels - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - group: acme.cert-manager.io - names: - kind: Challenge - listKind: ChallengeList - plural: challenges - singular: challenge - categories: - - cert-manager - - cert-manager-acme - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .status.state - name: State - type: string - - jsonPath: .spec.dnsName - name: Domain - type: string - - jsonPath: .status.reason - name: Reason - priority: 1 - type: string - - description: 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. - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1 - schema: - openAPIV3Schema: - description: Challenge is a type to represent a Challenge request with an ACME server - type: object - required: - - metadata - - spec - 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: - type: object - required: - - authorizationURL - - dnsName - - issuerRef - - key - - solver - - token - - type - - url - properties: - authorizationURL: - description: The URL to the ACME Authorization resource that this challenge is a part of. - type: string - dnsName: - description: dnsName is the identifier that this challenge is for, e.g. example.com. If the requested DNSName is a 'wildcard', this field MUST be set to the non-wildcard domain, e.g. for `*.example.com`, it must be `example.com`. - type: string - issuerRef: - description: References a properly configured ACME-type Issuer which should be used to create this Challenge. If the Issuer does not exist, processing will be retried. If the Issuer is not an 'ACME' Issuer, an error will be returned and the Challenge will be marked as failed. - type: object - required: - - name - properties: - group: - description: Group of the resource being referred to. - type: string - kind: - description: Kind of the resource being referred to. - type: string - name: - description: Name of the resource being referred to. - type: string - key: - description: 'The ACME challenge key for this challenge For HTTP01 challenges, this is the value that must be responded with to complete the HTTP01 challenge in the format: `.`. For DNS01 challenges, this is the base64 encoded SHA256 sum of the `.` text that must be set as the TXT record content.' - type: string - solver: - description: Contains the domain solving configuration that should be used to solve this challenge resource. - type: object - properties: - dns01: - description: Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow. - type: object - properties: - acmeDNS: - description: Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records. - type: object - required: - - accountSecretRef - - host - properties: - accountSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - host: - type: string - akamai: - description: Use the Akamai DNS zone management API to manage DNS01 challenge records. - type: object - required: - - accessTokenSecretRef - - clientSecretSecretRef - - clientTokenSecretRef - - serviceConsumerDomain - properties: - accessTokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - clientSecretSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - clientTokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - serviceConsumerDomain: - type: string - azureDNS: - description: Use the Microsoft Azure DNS API to manage DNS01 challenge records. - type: object - required: - - resourceGroupName - - subscriptionID - properties: - clientID: - description: 'Auth: Azure Service Principal: The ClientID of the Azure Service Principal used to authenticate with Azure DNS. If set, ClientSecret and TenantID must also be set.' - type: string - clientSecretSecretRef: - description: 'Auth: Azure Service Principal: A reference to a Secret containing the password associated with the Service Principal. If set, ClientID and TenantID must also be set.' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - environment: - description: name of the Azure environment (default AzurePublicCloud) - type: string - enum: - - AzurePublicCloud - - AzureChinaCloud - - AzureGermanCloud - - AzureUSGovernmentCloud - hostedZoneName: - description: name of the DNS zone that should be used - type: string - managedIdentity: - description: 'Auth: Azure Workload Identity or Azure Managed Service Identity: Settings to enable Azure Workload Identity or Azure Managed Service Identity If set, ClientID, ClientSecret and TenantID must not be set.' - type: object - properties: - clientID: - description: client ID of the managed identity, can not be used at the same time as resourceID - type: string - resourceID: - description: resource ID of the managed identity, can not be used at the same time as clientID Cannot be used for Azure Managed Service Identity - type: string - resourceGroupName: - description: resource group the DNS zone is located in - type: string - subscriptionID: - description: ID of the Azure subscription - type: string - tenantID: - description: 'Auth: Azure Service Principal: The TenantID of the Azure Service Principal used to authenticate with Azure DNS. If set, ClientID and ClientSecret must also be set.' - type: string - cloudDNS: - description: Use the Google Cloud DNS API to manage DNS01 challenge records. - type: object - required: - - project - properties: - hostedZoneName: - description: 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. - type: string - project: - type: string - serviceAccountSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - cloudflare: - description: Use the Cloudflare API to manage DNS01 challenge records. - type: object - properties: - apiKeySecretRef: - description: '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.' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - apiTokenSecretRef: - description: API token used to authenticate with Cloudflare. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - email: - description: Email of the account, only required when using API key based authentication. - type: string - cnameStrategy: - description: CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones. - type: string - enum: - - None - - Follow - digitalocean: - description: Use the DigitalOcean DNS API to manage DNS01 challenge records. - type: object - required: - - tokenSecretRef - properties: - tokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - rfc2136: - description: Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records. - type: object - required: - - nameserver - properties: - nameserver: - description: 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. - type: string - tsigAlgorithm: - description: '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``.' - type: string - tsigKeyName: - description: The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required. - type: string - tsigSecretSecretRef: - description: The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - route53: - description: Use the AWS Route53 API to manage DNS01 challenge records. - type: object - required: - - region - properties: - accessKeyID: - description: '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' - type: string - accessKeyIDSecretRef: - description: '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' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - hostedZoneID: - description: If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call. - type: string - region: - description: Always set the region when using AccessKeyID and SecretAccessKey - type: string - role: - description: 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 - type: string - secretAccessKeySecretRef: - description: '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' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - webhook: - description: Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records. - type: object - required: - - groupName - - solverName - properties: - config: - description: 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. - x-kubernetes-preserve-unknown-fields: true - groupName: - description: 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. - type: string - solverName: - description: 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'. - type: string - http01: - description: 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. - type: object - properties: - gatewayHTTPRoute: - description: 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. - type: object - properties: - labels: - description: Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges. - type: object - additionalProperties: - type: string - parentRefs: - description: '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' - type: array - items: - description: "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: \n * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) \n This API may be extended in the future to support additional kinds of parent resources. \n 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." - type: object - required: - - name - properties: - group: - description: "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). \n Support: Core" - type: string - default: gateway.networking.k8s.io - maxLength: 253 - pattern: ^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - kind: - description: "Kind is kind of the referent. \n There are two kinds of parent resources with \"Core\" support: \n * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) \n Support for other resources is Implementation-Specific." - type: string - default: Gateway - maxLength: 63 - minLength: 1 - pattern: ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ - name: - description: "Name is the name of the referent. \n Support: Core" - type: string - maxLength: 253 - minLength: 1 - namespace: - description: "Namespace is the namespace of the referent. When unspecified, this refers to the local namespace of the Route. \n 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. \n 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. \n 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. \n Support: Core" - type: string - maxLength: 63 - minLength: 1 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ - port: - description: "Port is the network port this Route targets. It can be interpreted differently based on the type of parent resource. \n 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. \n 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. \n Implementations MAY choose to support other parent resources. Implementations supporting other types of parent resources MUST clearly document how/if Port is interpreted. \n 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. \n Support: Extended \n " - type: integer - format: int32 - maximum: 65535 - minimum: 1 - sectionName: - description: "SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following: \n * 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. \n Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted. \n 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. \n Support: Core" - type: string - maxLength: 253 - minLength: 1 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - serviceType: - description: Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - type: string - ingress: - description: 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. - type: object - properties: - class: - description: 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. - type: string - ingressClassName: - description: 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. - type: string - ingressTemplate: - description: Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges. - type: object - properties: - metadata: - description: 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. - type: object - properties: - annotations: - description: Annotations that should be added to the created ACME HTTP01 solver ingress. - type: object - additionalProperties: - type: string - labels: - description: Labels that should be added to the created ACME HTTP01 solver ingress. - type: object - additionalProperties: - type: string - name: - description: 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. - type: string - podTemplate: - description: Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges. - type: object - properties: - metadata: - description: 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. - type: object - properties: - annotations: - description: Annotations that should be added to the create ACME HTTP01 solver pods. - type: object - additionalProperties: - type: string - labels: - description: Labels that should be added to the created ACME HTTP01 solver pods. - type: object - additionalProperties: - type: string - spec: - description: PodSpec defines overrides for the HTTP01 challenge solver pod. Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. All other fields will be ignored. - type: object - properties: - affinity: - description: If specified, the pod's scheduling constraints - type: object - properties: - nodeAffinity: - description: Describes node affinity scheduling rules for the pod. - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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). - type: object - required: - - preference - - weight - properties: - preference: - description: A node selector term, associated with the corresponding weight. - type: object - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - matchFields: - description: A list of node selector requirements by node's fields. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: object - required: - - nodeSelectorTerms - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. The terms are ORed. - type: array - items: - description: 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. - type: object - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - matchFields: - description: A list of node selector requirements by node's fields. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - x-kubernetes-map-type: atomic - x-kubernetes-map-type: atomic - podAffinity: - description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - type: object - required: - - podAffinityTerm - - weight - properties: - podAffinityTerm: - description: Required. A pod affinity term, associated with the corresponding weight. - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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 - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - podAntiAffinity: - description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - type: object - required: - - podAffinityTerm - - weight - properties: - podAffinityTerm: - description: Required. A pod affinity term, associated with the corresponding weight. - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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 - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - imagePullSecrets: - description: If specified, the pod's imagePullSecrets - type: array - items: - description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - type: object - properties: - name: - description: '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?' - type: string - x-kubernetes-map-type: atomic - nodeSelector: - description: '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/' - type: object - additionalProperties: - type: string - priorityClassName: - description: If specified, the pod's priorityClassName. - type: string - serviceAccountName: - description: If specified, the pod's service account - type: string - tolerations: - description: If specified, the pod's tolerations. - type: array - items: - description: The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - type: object - properties: - effect: - description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: 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. - type: string - operator: - description: 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. - type: string - tolerationSeconds: - description: 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. - type: integer - format: int64 - value: - description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - serviceType: - description: Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - type: string - selector: - description: 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. - type: object - properties: - dnsNames: - description: 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. - type: array - items: - type: string - dnsZones: - description: 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. - type: array - items: - type: string - matchLabels: - description: A label selector that is used to refine the set of certificate's that this challenge solver will apply to. - type: object - additionalProperties: - type: string - token: - description: The ACME challenge token for this challenge. This is the raw value returned from the ACME server. - type: string - type: - description: The type of ACME challenge this resource represents. One of "HTTP-01" or "DNS-01". - type: string - enum: - - HTTP-01 - - DNS-01 - url: - description: The URL of the ACME Challenge resource for this challenge. This can be used to lookup details about the status of this challenge. - type: string - wildcard: - description: wildcard will be true if this challenge is for a wildcard identifier, for example '*.example.com'. - type: boolean - status: - type: object - properties: - presented: - description: presented will be set to true if the challenge values for this challenge are currently 'presented'. This *does not* imply the self check is passing. Only that the values have been 'submitted' for the appropriate challenge mechanism (i.e. the DNS01 TXT record has been presented, or the HTTP01 configuration has been configured). - type: boolean - processing: - description: Used to denote whether this challenge should be processed or not. This field will only be set to true by the 'scheduling' component. It will only be set to false by the 'challenges' controller, after the challenge has reached a final state or timed out. If this field is set to false, the challenge controller will not take any more action. - type: boolean - reason: - description: Contains human readable information on why the Challenge is in the current state. - type: string - state: - description: Contains the current 'state' of the challenge. If not set, the state of the challenge is unknown. - type: string - enum: - - valid - - ready - - pending - - processing - - invalid - - expired - - errored - served: true - storage: true - subresources: - status: {} ---- -# Source: splunk-otel-collector/charts/certmanager/templates/crds.yaml -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: clusterissuers.cert-manager.io - labels: - app: 'certmanager' - app.kubernetes.io/name: 'certmanager' - app.kubernetes.io/instance: "default" - # Generated labels - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - group: cert-manager.io - names: - kind: ClusterIssuer - listKind: ClusterIssuerList - plural: clusterissuers - singular: clusterissuer - categories: - - cert-manager - scope: Cluster - versions: - - name: v1 - subresources: - status: {} - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - priority: 1 - type: string - - jsonPath: .metadata.creationTimestamp - description: 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. - name: Age - type: date - schema: - openAPIV3Schema: - description: A ClusterIssuer represents a certificate issuing authority which can be referenced as part of `issuerRef` fields. It is similar to an Issuer, however it is cluster-scoped and therefore can be referenced by resources that exist in *any* namespace, not just the same namespace as the referent. - type: object - required: - - spec - 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: Desired state of the ClusterIssuer resource. - type: object - properties: - acme: - description: ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates. - type: object - required: - - privateKeySecretRef - - server - properties: - caBundle: - description: 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. - type: string - format: byte - disableAccountKeyGeneration: - description: 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. - type: boolean - email: - description: 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. - type: string - enableDurationFeature: - description: 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. - type: boolean - externalAccountBinding: - description: 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. - type: object - required: - - keyID - - keySecretRef - properties: - keyAlgorithm: - description: '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.' - type: string - enum: - - HS256 - - HS384 - - HS512 - keyID: - description: keyID is the ID of the CA key that the External Account is bound to. - type: string - keySecretRef: - description: 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. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - preferredChain: - description: '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' - type: string - maxLength: 64 - privateKeySecretRef: - description: 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. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - server: - description: '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.' - type: string - skipTLSVerify: - description: '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.' - type: boolean - solvers: - description: '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/' - type: array - items: - description: 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. - type: object - properties: - dns01: - description: Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow. - type: object - properties: - acmeDNS: - description: Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records. - type: object - required: - - accountSecretRef - - host - properties: - accountSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - host: - type: string - akamai: - description: Use the Akamai DNS zone management API to manage DNS01 challenge records. - type: object - required: - - accessTokenSecretRef - - clientSecretSecretRef - - clientTokenSecretRef - - serviceConsumerDomain - properties: - accessTokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - clientSecretSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - clientTokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - serviceConsumerDomain: - type: string - azureDNS: - description: Use the Microsoft Azure DNS API to manage DNS01 challenge records. - type: object - required: - - resourceGroupName - - subscriptionID - properties: - clientID: - description: 'Auth: Azure Service Principal: The ClientID of the Azure Service Principal used to authenticate with Azure DNS. If set, ClientSecret and TenantID must also be set.' - type: string - clientSecretSecretRef: - description: 'Auth: Azure Service Principal: A reference to a Secret containing the password associated with the Service Principal. If set, ClientID and TenantID must also be set.' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - environment: - description: name of the Azure environment (default AzurePublicCloud) - type: string - enum: - - AzurePublicCloud - - AzureChinaCloud - - AzureGermanCloud - - AzureUSGovernmentCloud - hostedZoneName: - description: name of the DNS zone that should be used - type: string - managedIdentity: - description: 'Auth: Azure Workload Identity or Azure Managed Service Identity: Settings to enable Azure Workload Identity or Azure Managed Service Identity If set, ClientID, ClientSecret and TenantID must not be set.' - type: object - properties: - clientID: - description: client ID of the managed identity, can not be used at the same time as resourceID - type: string - resourceID: - description: resource ID of the managed identity, can not be used at the same time as clientID Cannot be used for Azure Managed Service Identity - type: string - resourceGroupName: - description: resource group the DNS zone is located in - type: string - subscriptionID: - description: ID of the Azure subscription - type: string - tenantID: - description: 'Auth: Azure Service Principal: The TenantID of the Azure Service Principal used to authenticate with Azure DNS. If set, ClientID and ClientSecret must also be set.' - type: string - cloudDNS: - description: Use the Google Cloud DNS API to manage DNS01 challenge records. - type: object - required: - - project - properties: - hostedZoneName: - description: 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. - type: string - project: - type: string - serviceAccountSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - cloudflare: - description: Use the Cloudflare API to manage DNS01 challenge records. - type: object - properties: - apiKeySecretRef: - description: '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.' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - apiTokenSecretRef: - description: API token used to authenticate with Cloudflare. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - email: - description: Email of the account, only required when using API key based authentication. - type: string - cnameStrategy: - description: CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones. - type: string - enum: - - None - - Follow - digitalocean: - description: Use the DigitalOcean DNS API to manage DNS01 challenge records. - type: object - required: - - tokenSecretRef - properties: - tokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - rfc2136: - description: Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records. - type: object - required: - - nameserver - properties: - nameserver: - description: 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. - type: string - tsigAlgorithm: - description: '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``.' - type: string - tsigKeyName: - description: The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required. - type: string - tsigSecretSecretRef: - description: The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - route53: - description: Use the AWS Route53 API to manage DNS01 challenge records. - type: object - required: - - region - properties: - accessKeyID: - description: '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' - type: string - accessKeyIDSecretRef: - description: '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' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - hostedZoneID: - description: If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call. - type: string - region: - description: Always set the region when using AccessKeyID and SecretAccessKey - type: string - role: - description: 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 - type: string - secretAccessKeySecretRef: - description: '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' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - webhook: - description: Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records. - type: object - required: - - groupName - - solverName - properties: - config: - description: 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. - x-kubernetes-preserve-unknown-fields: true - groupName: - description: 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. - type: string - solverName: - description: 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'. - type: string - http01: - description: 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. - type: object - properties: - gatewayHTTPRoute: - description: 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. - type: object - properties: - labels: - description: Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges. - type: object - additionalProperties: - type: string - parentRefs: - description: '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' - type: array - items: - description: "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: \n * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) \n This API may be extended in the future to support additional kinds of parent resources. \n 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." - type: object - required: - - name - properties: - group: - description: "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). \n Support: Core" - type: string - default: gateway.networking.k8s.io - maxLength: 253 - pattern: ^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - kind: - description: "Kind is kind of the referent. \n There are two kinds of parent resources with \"Core\" support: \n * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) \n Support for other resources is Implementation-Specific." - type: string - default: Gateway - maxLength: 63 - minLength: 1 - pattern: ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ - name: - description: "Name is the name of the referent. \n Support: Core" - type: string - maxLength: 253 - minLength: 1 - namespace: - description: "Namespace is the namespace of the referent. When unspecified, this refers to the local namespace of the Route. \n 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. \n 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. \n 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. \n Support: Core" - type: string - maxLength: 63 - minLength: 1 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ - port: - description: "Port is the network port this Route targets. It can be interpreted differently based on the type of parent resource. \n 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. \n 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. \n Implementations MAY choose to support other parent resources. Implementations supporting other types of parent resources MUST clearly document how/if Port is interpreted. \n 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. \n Support: Extended \n " - type: integer - format: int32 - maximum: 65535 - minimum: 1 - sectionName: - description: "SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following: \n * 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. \n Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted. \n 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. \n Support: Core" - type: string - maxLength: 253 - minLength: 1 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - serviceType: - description: Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - type: string - ingress: - description: 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. - type: object - properties: - class: - description: 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. - type: string - ingressClassName: - description: 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. - type: string - ingressTemplate: - description: Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges. - type: object - properties: - metadata: - description: 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. - type: object - properties: - annotations: - description: Annotations that should be added to the created ACME HTTP01 solver ingress. - type: object - additionalProperties: - type: string - labels: - description: Labels that should be added to the created ACME HTTP01 solver ingress. - type: object - additionalProperties: - type: string - name: - description: 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. - type: string - podTemplate: - description: Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges. - type: object - properties: - metadata: - description: 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. - type: object - properties: - annotations: - description: Annotations that should be added to the create ACME HTTP01 solver pods. - type: object - additionalProperties: - type: string - labels: - description: Labels that should be added to the created ACME HTTP01 solver pods. - type: object - additionalProperties: - type: string - spec: - description: PodSpec defines overrides for the HTTP01 challenge solver pod. Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. All other fields will be ignored. - type: object - properties: - affinity: - description: If specified, the pod's scheduling constraints - type: object - properties: - nodeAffinity: - description: Describes node affinity scheduling rules for the pod. - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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). - type: object - required: - - preference - - weight - properties: - preference: - description: A node selector term, associated with the corresponding weight. - type: object - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - matchFields: - description: A list of node selector requirements by node's fields. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: object - required: - - nodeSelectorTerms - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. The terms are ORed. - type: array - items: - description: 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. - type: object - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - matchFields: - description: A list of node selector requirements by node's fields. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - x-kubernetes-map-type: atomic - x-kubernetes-map-type: atomic - podAffinity: - description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - type: object - required: - - podAffinityTerm - - weight - properties: - podAffinityTerm: - description: Required. A pod affinity term, associated with the corresponding weight. - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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 - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - podAntiAffinity: - description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - type: object - required: - - podAffinityTerm - - weight - properties: - podAffinityTerm: - description: Required. A pod affinity term, associated with the corresponding weight. - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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 - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - imagePullSecrets: - description: If specified, the pod's imagePullSecrets - type: array - items: - description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - type: object - properties: - name: - description: '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?' - type: string - x-kubernetes-map-type: atomic - nodeSelector: - description: '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/' - type: object - additionalProperties: - type: string - priorityClassName: - description: If specified, the pod's priorityClassName. - type: string - serviceAccountName: - description: If specified, the pod's service account - type: string - tolerations: - description: If specified, the pod's tolerations. - type: array - items: - description: The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - type: object - properties: - effect: - description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: 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. - type: string - operator: - description: 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. - type: string - tolerationSeconds: - description: 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. - type: integer - format: int64 - value: - description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - serviceType: - description: Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - type: string - selector: - description: 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. - type: object - properties: - dnsNames: - description: 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. - type: array - items: - type: string - dnsZones: - description: 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. - type: array - items: - type: string - matchLabels: - description: A label selector that is used to refine the set of certificate's that this challenge solver will apply to. - type: object - additionalProperties: - type: string - ca: - description: 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. - type: object - required: - - secretName - properties: - crlDistributionPoints: - description: 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. - type: array - items: - type: string - issuingCertificateURLs: - description: IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates it creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details. As an example, such a URL might be "http://ca.domain.com/ca.crt". - type: array - items: - type: string - ocspServers: - description: 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". - type: array - items: - type: string - secretName: - description: SecretName is the name of the secret used to sign Certificates issued by this Issuer. - type: string - selfSigned: - description: SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object. - type: object - properties: - crlDistributionPoints: - description: 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. - type: array - items: - type: string - vault: - description: Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend. - type: object - required: - - auth - - path - - server - properties: - auth: - description: Auth configures how cert-manager authenticates with the Vault server. - type: object - properties: - appRole: - description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. - type: object - required: - - path - - roleId - - secretRef - properties: - path: - description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' - type: string - roleId: - description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. - type: string - secretRef: - description: 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. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - kubernetes: - description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. - type: object - required: - - role - properties: - mountPath: - description: 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. - type: string - role: - description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. - type: string - secretRef: - description: The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - serviceAccountRef: - description: 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. - type: object - required: - - name - properties: - name: - description: Name of the ServiceAccount used to request a token. - type: string - tokenSecretRef: - description: TokenSecretRef authenticates with Vault by presenting a token. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - caBundle: - description: 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. - type: string - format: byte - caBundleSecretRef: - description: 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'. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - namespace: - description: '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' - type: string - path: - description: 'Path is the mount path of the Vault PKI backend''s `sign` endpoint, e.g: "my_pki_mount/sign/my-role-name".' - type: string - server: - description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' - type: string - venafi: - description: Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone. - type: object - required: - - zone - properties: - cloud: - description: Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified. - type: object - required: - - apiTokenSecretRef - properties: - apiTokenSecretRef: - description: APITokenSecretRef is a secret key selector for the Venafi Cloud API token. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - url: - description: URL is the base URL for Venafi Cloud. Defaults to "https://api.venafi.cloud/v1". - type: string - tpp: - description: TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified. - type: object - required: - - credentialsRef - - url - properties: - caBundle: - description: 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. - type: string - format: byte - credentialsRef: - description: 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'. - type: object - required: - - name - properties: - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - url: - description: 'URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, for example: "https://tpp.example.com/vedsdk".' - type: string - zone: - description: 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. - type: string - status: - description: Status of the ClusterIssuer. This is set and managed automatically. - type: object - properties: - acme: - description: ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates. - type: object - properties: - lastPrivateKeyHash: - description: LastPrivateKeyHash is a hash of the private key associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer - type: string - lastRegisteredEmail: - description: LastRegisteredEmail is the email associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer - type: string - uri: - description: URI is the unique account identifier, which can also be used to retrieve account details from the CA - type: string - conditions: - description: List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`. - type: array - items: - description: IssuerCondition contains condition information for an Issuer. - type: object - required: - - status - - type - properties: - lastTransitionTime: - description: LastTransitionTime is the timestamp corresponding to the last status change of this condition. - type: string - format: date-time - message: - description: Message is a human readable description of the details of the last transition, complementing reason. - type: string - observedGeneration: - description: If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the Issuer. - type: integer - format: int64 - reason: - description: Reason is a brief machine readable explanation for the condition's last transition. - type: string - status: - description: Status of the condition, one of (`True`, `False`, `Unknown`). - type: string - enum: - - "True" - - "False" - - Unknown - type: - description: Type of the condition, known values are (`Ready`). - type: string - x-kubernetes-list-map-keys: - - type - x-kubernetes-list-type: map - served: true - storage: true ---- -# Source: splunk-otel-collector/charts/certmanager/templates/crds.yaml -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: issuers.cert-manager.io - labels: - app: 'certmanager' - app.kubernetes.io/name: 'certmanager' - app.kubernetes.io/instance: "default" - # Generated labels - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - group: cert-manager.io - names: - kind: Issuer - listKind: IssuerList - plural: issuers - singular: issuer - categories: - - cert-manager - scope: Namespaced - versions: - - name: v1 - subresources: - status: {} - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - priority: 1 - type: string - - jsonPath: .metadata.creationTimestamp - description: 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. - name: Age - type: date - schema: - openAPIV3Schema: - description: 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. - type: object - required: - - spec - 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: Desired state of the Issuer resource. - type: object - properties: - acme: - description: ACME configures this issuer to communicate with a RFC8555 (ACME) server to obtain signed x509 certificates. - type: object - required: - - privateKeySecretRef - - server - properties: - caBundle: - description: 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. - type: string - format: byte - disableAccountKeyGeneration: - description: 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. - type: boolean - email: - description: 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. - type: string - enableDurationFeature: - description: 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. - type: boolean - externalAccountBinding: - description: 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. - type: object - required: - - keyID - - keySecretRef - properties: - keyAlgorithm: - description: '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.' - type: string - enum: - - HS256 - - HS384 - - HS512 - keyID: - description: keyID is the ID of the CA key that the External Account is bound to. - type: string - keySecretRef: - description: 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. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - preferredChain: - description: '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' - type: string - maxLength: 64 - privateKeySecretRef: - description: 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. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - server: - description: '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.' - type: string - skipTLSVerify: - description: '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.' - type: boolean - solvers: - description: '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/' - type: array - items: - description: 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. - type: object - properties: - dns01: - description: Configures cert-manager to attempt to complete authorizations by performing the DNS01 challenge flow. - type: object - properties: - acmeDNS: - description: Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage DNS01 challenge records. - type: object - required: - - accountSecretRef - - host - properties: - accountSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - host: - type: string - akamai: - description: Use the Akamai DNS zone management API to manage DNS01 challenge records. - type: object - required: - - accessTokenSecretRef - - clientSecretSecretRef - - clientTokenSecretRef - - serviceConsumerDomain - properties: - accessTokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - clientSecretSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - clientTokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - serviceConsumerDomain: - type: string - azureDNS: - description: Use the Microsoft Azure DNS API to manage DNS01 challenge records. - type: object - required: - - resourceGroupName - - subscriptionID - properties: - clientID: - description: 'Auth: Azure Service Principal: The ClientID of the Azure Service Principal used to authenticate with Azure DNS. If set, ClientSecret and TenantID must also be set.' - type: string - clientSecretSecretRef: - description: 'Auth: Azure Service Principal: A reference to a Secret containing the password associated with the Service Principal. If set, ClientID and TenantID must also be set.' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - environment: - description: name of the Azure environment (default AzurePublicCloud) - type: string - enum: - - AzurePublicCloud - - AzureChinaCloud - - AzureGermanCloud - - AzureUSGovernmentCloud - hostedZoneName: - description: name of the DNS zone that should be used - type: string - managedIdentity: - description: 'Auth: Azure Workload Identity or Azure Managed Service Identity: Settings to enable Azure Workload Identity or Azure Managed Service Identity If set, ClientID, ClientSecret and TenantID must not be set.' - type: object - properties: - clientID: - description: client ID of the managed identity, can not be used at the same time as resourceID - type: string - resourceID: - description: resource ID of the managed identity, can not be used at the same time as clientID Cannot be used for Azure Managed Service Identity - type: string - resourceGroupName: - description: resource group the DNS zone is located in - type: string - subscriptionID: - description: ID of the Azure subscription - type: string - tenantID: - description: 'Auth: Azure Service Principal: The TenantID of the Azure Service Principal used to authenticate with Azure DNS. If set, ClientID and ClientSecret must also be set.' - type: string - cloudDNS: - description: Use the Google Cloud DNS API to manage DNS01 challenge records. - type: object - required: - - project - properties: - hostedZoneName: - description: 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. - type: string - project: - type: string - serviceAccountSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - cloudflare: - description: Use the Cloudflare API to manage DNS01 challenge records. - type: object - properties: - apiKeySecretRef: - description: '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.' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - apiTokenSecretRef: - description: API token used to authenticate with Cloudflare. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - email: - description: Email of the account, only required when using API key based authentication. - type: string - cnameStrategy: - description: CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones. - type: string - enum: - - None - - Follow - digitalocean: - description: Use the DigitalOcean DNS API to manage DNS01 challenge records. - type: object - required: - - tokenSecretRef - properties: - tokenSecretRef: - description: A reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - rfc2136: - description: Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) to manage DNS01 challenge records. - type: object - required: - - nameserver - properties: - nameserver: - description: 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. - type: string - tsigAlgorithm: - description: '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``.' - type: string - tsigKeyName: - description: The TSIG Key name configured in the DNS. If ``tsigSecretSecretRef`` is defined, this field is required. - type: string - tsigSecretSecretRef: - description: The name of the secret containing the TSIG value. If ``tsigKeyName`` is defined, this field is required. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - route53: - description: Use the AWS Route53 API to manage DNS01 challenge records. - type: object - required: - - region - properties: - accessKeyID: - description: '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' - type: string - accessKeyIDSecretRef: - description: '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' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - hostedZoneID: - description: If set, the provider will manage only this zone in Route53 and will not do an lookup using the route53:ListHostedZonesByName api call. - type: string - region: - description: Always set the region when using AccessKeyID and SecretAccessKey - type: string - role: - description: 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 - type: string - secretAccessKeySecretRef: - description: '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' - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - webhook: - description: Configure an external webhook based DNS01 challenge solver to manage DNS01 challenge records. - type: object - required: - - groupName - - solverName - properties: - config: - description: 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. - x-kubernetes-preserve-unknown-fields: true - groupName: - description: 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. - type: string - solverName: - description: 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'. - type: string - http01: - description: 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. - type: object - properties: - gatewayHTTPRoute: - description: 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. - type: object - properties: - labels: - description: Custom labels that will be applied to HTTPRoutes created by cert-manager while solving HTTP-01 challenges. - type: object - additionalProperties: - type: string - parentRefs: - description: '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' - type: array - items: - description: "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: \n * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) \n This API may be extended in the future to support additional kinds of parent resources. \n 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." - type: object - required: - - name - properties: - group: - description: "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). \n Support: Core" - type: string - default: gateway.networking.k8s.io - maxLength: 253 - pattern: ^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - kind: - description: "Kind is kind of the referent. \n There are two kinds of parent resources with \"Core\" support: \n * Gateway (Gateway conformance profile) * Service (Mesh conformance profile, experimental, ClusterIP Services only) \n Support for other resources is Implementation-Specific." - type: string - default: Gateway - maxLength: 63 - minLength: 1 - pattern: ^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$ - name: - description: "Name is the name of the referent. \n Support: Core" - type: string - maxLength: 253 - minLength: 1 - namespace: - description: "Namespace is the namespace of the referent. When unspecified, this refers to the local namespace of the Route. \n 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. \n 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. \n 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. \n Support: Core" - type: string - maxLength: 63 - minLength: 1 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ - port: - description: "Port is the network port this Route targets. It can be interpreted differently based on the type of parent resource. \n 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. \n 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. \n Implementations MAY choose to support other parent resources. Implementations supporting other types of parent resources MUST clearly document how/if Port is interpreted. \n 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. \n Support: Extended \n " - type: integer - format: int32 - maximum: 65535 - minimum: 1 - sectionName: - description: "SectionName is the name of a section within the target resource. In the following resources, SectionName is interpreted as the following: \n * 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. \n Implementations MAY choose to support attaching Routes to other resources. If that is the case, they MUST clearly document how SectionName is interpreted. \n 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. \n Support: Core" - type: string - maxLength: 253 - minLength: 1 - pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ - serviceType: - description: Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - type: string - ingress: - description: 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. - type: object - properties: - class: - description: 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. - type: string - ingressClassName: - description: 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. - type: string - ingressTemplate: - description: Optional ingress template used to configure the ACME challenge solver ingress used for HTTP01 challenges. - type: object - properties: - metadata: - description: 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. - type: object - properties: - annotations: - description: Annotations that should be added to the created ACME HTTP01 solver ingress. - type: object - additionalProperties: - type: string - labels: - description: Labels that should be added to the created ACME HTTP01 solver ingress. - type: object - additionalProperties: - type: string - name: - description: 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. - type: string - podTemplate: - description: Optional pod template used to configure the ACME challenge solver pods used for HTTP01 challenges. - type: object - properties: - metadata: - description: 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. - type: object - properties: - annotations: - description: Annotations that should be added to the create ACME HTTP01 solver pods. - type: object - additionalProperties: - type: string - labels: - description: Labels that should be added to the created ACME HTTP01 solver pods. - type: object - additionalProperties: - type: string - spec: - description: PodSpec defines overrides for the HTTP01 challenge solver pod. Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. All other fields will be ignored. - type: object - properties: - affinity: - description: If specified, the pod's scheduling constraints - type: object - properties: - nodeAffinity: - description: Describes node affinity scheduling rules for the pod. - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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). - type: object - required: - - preference - - weight - properties: - preference: - description: A node selector term, associated with the corresponding weight. - type: object - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - matchFields: - description: A list of node selector requirements by node's fields. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: object - required: - - nodeSelectorTerms - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. The terms are ORed. - type: array - items: - description: 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. - type: object - properties: - matchExpressions: - description: A list of node selector requirements by node's labels. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - matchFields: - description: A list of node selector requirements by node's fields. - type: array - items: - description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - properties: - key: - description: The label key that the selector applies to. - type: string - operator: - description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: 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. - type: array - items: - type: string - x-kubernetes-map-type: atomic - x-kubernetes-map-type: atomic - podAffinity: - description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - type: object - required: - - podAffinityTerm - - weight - properties: - podAffinityTerm: - description: Required. A pod affinity term, associated with the corresponding weight. - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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 - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - podAntiAffinity: - description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) - type: object - required: - - podAffinityTerm - - weight - properties: - podAffinityTerm: - description: Required. A pod affinity term, associated with the corresponding weight. - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - weight: - description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - type: integer - format: int32 - requiredDuringSchedulingIgnoredDuringExecution: - description: 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. - type: array - items: - description: 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 - type: object - required: - - topologyKey - properties: - labelSelector: - description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - matchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: 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. - type: array - items: - type: string - x-kubernetes-list-type: atomic - namespaceSelector: - description: 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. - type: object - properties: - matchExpressions: - description: matchExpressions is a list of label selector requirements. The requirements are ANDed. - type: array - items: - description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. - type: object - required: - - key - - operator - 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. - type: array - items: - type: string - matchLabels: - 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 - additionalProperties: - type: string - x-kubernetes-map-type: atomic - namespaces: - description: 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". - type: array - items: - type: string - topologyKey: - description: 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. - type: string - imagePullSecrets: - description: If specified, the pod's imagePullSecrets - type: array - items: - description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - type: object - properties: - name: - description: '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?' - type: string - x-kubernetes-map-type: atomic - nodeSelector: - description: '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/' - type: object - additionalProperties: - type: string - priorityClassName: - description: If specified, the pod's priorityClassName. - type: string - serviceAccountName: - description: If specified, the pod's service account - type: string - tolerations: - description: If specified, the pod's tolerations. - type: array - items: - description: The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . - type: object - properties: - effect: - description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: 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. - type: string - operator: - description: 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. - type: string - tolerationSeconds: - description: 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. - type: integer - format: int64 - value: - description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - serviceType: - description: Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. - type: string - selector: - description: 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. - type: object - properties: - dnsNames: - description: 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. - type: array - items: - type: string - dnsZones: - description: 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. - type: array - items: - type: string - matchLabels: - description: A label selector that is used to refine the set of certificate's that this challenge solver will apply to. - type: object - additionalProperties: - type: string - ca: - description: 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. - type: object - required: - - secretName - properties: - crlDistributionPoints: - description: 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. - type: array - items: - type: string - issuingCertificateURLs: - description: IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates it creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details. As an example, such a URL might be "http://ca.domain.com/ca.crt". - type: array - items: - type: string - ocspServers: - description: 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". - type: array - items: - type: string - secretName: - description: SecretName is the name of the secret used to sign Certificates issued by this Issuer. - type: string - selfSigned: - description: SelfSigned configures this issuer to 'self sign' certificates using the private key used to create the CertificateRequest object. - type: object - properties: - crlDistributionPoints: - description: 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. - type: array - items: - type: string - vault: - description: Vault configures this issuer to sign certificates using a HashiCorp Vault PKI backend. - type: object - required: - - auth - - path - - server - properties: - auth: - description: Auth configures how cert-manager authenticates with the Vault server. - type: object - properties: - appRole: - description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. - type: object - required: - - path - - roleId - - secretRef - properties: - path: - description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' - type: string - roleId: - description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. - type: string - secretRef: - description: 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. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - kubernetes: - description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. - type: object - required: - - role - properties: - mountPath: - description: 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. - type: string - role: - description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. - type: string - secretRef: - description: The required Secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. Use of 'ambient credentials' is not supported. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - serviceAccountRef: - description: 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. - type: object - required: - - name - properties: - name: - description: Name of the ServiceAccount used to request a token. - type: string - tokenSecretRef: - description: TokenSecretRef authenticates with Vault by presenting a token. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - caBundle: - description: 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. - type: string - format: byte - caBundleSecretRef: - description: 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'. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - namespace: - description: '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' - type: string - path: - description: 'Path is the mount path of the Vault PKI backend''s `sign` endpoint, e.g: "my_pki_mount/sign/my-role-name".' - type: string - server: - description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' - type: string - venafi: - description: Venafi configures this issuer to sign certificates using a Venafi TPP or Venafi Cloud policy zone. - type: object - required: - - zone - properties: - cloud: - description: Cloud specifies the Venafi cloud configuration settings. Only one of TPP or Cloud may be specified. - type: object - required: - - apiTokenSecretRef - properties: - apiTokenSecretRef: - description: APITokenSecretRef is a secret key selector for the Venafi Cloud API token. - type: object - required: - - name - properties: - key: - description: 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. - type: string - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - url: - description: URL is the base URL for Venafi Cloud. Defaults to "https://api.venafi.cloud/v1". - type: string - tpp: - description: TPP specifies Trust Protection Platform configuration settings. Only one of TPP or Cloud may be specified. - type: object - required: - - credentialsRef - - url - properties: - caBundle: - description: 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. - type: string - format: byte - credentialsRef: - description: 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'. - type: object - required: - - name - properties: - name: - description: 'Name of the resource being referred to. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' - type: string - url: - description: 'URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, for example: "https://tpp.example.com/vedsdk".' - type: string - zone: - description: 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. - type: string - status: - description: Status of the Issuer. This is set and managed automatically. - type: object - properties: - acme: - description: ACME specific status options. This field should only be set if the Issuer is configured to use an ACME server to issue certificates. - type: object - properties: - lastPrivateKeyHash: - description: LastPrivateKeyHash is a hash of the private key associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer - type: string - lastRegisteredEmail: - description: LastRegisteredEmail is the email associated with the latest registered ACME account, in order to track changes made to registered account associated with the Issuer - type: string - uri: - description: URI is the unique account identifier, which can also be used to retrieve account details from the CA - type: string - conditions: - description: List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`. - type: array - items: - description: IssuerCondition contains condition information for an Issuer. - type: object - required: - - status - - type - properties: - lastTransitionTime: - description: LastTransitionTime is the timestamp corresponding to the last status change of this condition. - type: string - format: date-time - message: - description: Message is a human readable description of the details of the last transition, complementing reason. - type: string - observedGeneration: - description: If set, this represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date with respect to the current state of the Issuer. - type: integer - format: int64 - reason: - description: Reason is a brief machine readable explanation for the condition's last transition. - type: string - status: - description: Status of the condition, one of (`True`, `False`, `Unknown`). - type: string - enum: - - "True" - - "False" - - Unknown - type: - description: Type of the condition, known values are (`Ready`). - type: string - x-kubernetes-list-map-keys: - - type - x-kubernetes-list-type: map - served: true - storage: true ---- -# Source: splunk-otel-collector/charts/certmanager/templates/crds.yaml -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: orders.acme.cert-manager.io - labels: - app: 'certmanager' - app.kubernetes.io/name: 'certmanager' - app.kubernetes.io/instance: 'default' - # Generated labels - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - group: acme.cert-manager.io - names: - kind: Order - listKind: OrderList - plural: orders - singular: order - categories: - - cert-manager - - cert-manager-acme - scope: Namespaced - versions: - - name: v1 - subresources: - status: {} - additionalPrinterColumns: - - jsonPath: .status.state - name: State - type: string - - jsonPath: .spec.issuerRef.name - name: Issuer - priority: 1 - type: string - - jsonPath: .status.reason - name: Reason - priority: 1 - type: string - - jsonPath: .metadata.creationTimestamp - description: 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. - name: Age - type: date - schema: - openAPIV3Schema: - description: Order is a type to represent an Order with an ACME server - type: object - required: - - metadata - - spec - 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: - type: object - required: - - issuerRef - - request - properties: - commonName: - description: CommonName is the common name as specified on the DER encoded CSR. If specified, this value must also be present in `dnsNames` or `ipAddresses`. This field must match the corresponding field on the DER encoded CSR. - type: string - dnsNames: - description: DNSNames is a list of DNS names that should be included as part of the Order validation process. This field must match the corresponding field on the DER encoded CSR. - type: array - items: - type: string - duration: - description: Duration is the duration for the not after date for the requested certificate. this is set on order creation as pe the ACME spec. - type: string - ipAddresses: - description: IPAddresses is a list of IP addresses that should be included as part of the Order validation process. This field must match the corresponding field on the DER encoded CSR. - type: array - items: - type: string - issuerRef: - description: IssuerRef references a properly configured ACME-type Issuer which should be used to create this Order. If the Issuer does not exist, processing will be retried. If the Issuer is not an 'ACME' Issuer, an error will be returned and the Order will be marked as failed. - type: object - required: - - name - properties: - group: - description: Group of the resource being referred to. - type: string - kind: - description: Kind of the resource being referred to. - type: string - name: - description: Name of the resource being referred to. - type: string - request: - description: Certificate signing request bytes in DER encoding. This will be used when finalizing the order. This field must be set on the order. - type: string - format: byte - status: - type: object - properties: - authorizations: - description: Authorizations contains data returned from the ACME server on what authorizations must be completed in order to validate the DNS names specified on the Order. - type: array - items: - description: ACMEAuthorization contains data returned from the ACME server on an authorization that must be completed in order validate a DNS name on an ACME Order resource. - type: object - required: - - url - properties: - challenges: - description: Challenges specifies the challenge types offered by the ACME server. One of these challenge types will be selected when validating the DNS name and an appropriate Challenge resource will be created to perform the ACME challenge process. - type: array - items: - description: Challenge specifies a challenge offered by the ACME server for an Order. An appropriate Challenge resource can be created to perform the ACME challenge process. - type: object - required: - - token - - type - - url - properties: - token: - description: Token is the token that must be presented for this challenge. This is used to compute the 'key' that must also be presented. - type: string - type: - description: Type is the type of challenge being offered, e.g. 'http-01', 'dns-01', 'tls-sni-01', etc. This is the raw value retrieved from the ACME server. Only 'http-01' and 'dns-01' are supported by cert-manager, other values will be ignored. - type: string - url: - description: URL is the URL of this challenge. It can be used to retrieve additional metadata about the Challenge from the ACME server. - type: string - identifier: - description: Identifier is the DNS name to be validated as part of this authorization - type: string - initialState: - description: InitialState is the initial state of the ACME authorization when first fetched from the ACME server. If an Authorization is already 'valid', the Order controller will not create a Challenge resource for the authorization. This will occur when working with an ACME server that enables 'authz reuse' (such as Let's Encrypt's production endpoint). If not set and 'identifier' is set, the state is assumed to be pending and a Challenge will be created. - type: string - enum: - - valid - - ready - - pending - - processing - - invalid - - expired - - errored - url: - description: URL is the URL of the Authorization that must be completed - type: string - wildcard: - description: Wildcard will be true if this authorization is for a wildcard DNS name. If this is true, the identifier will be the *non-wildcard* version of the DNS name. For example, if '*.example.com' is the DNS name being validated, this field will be 'true' and the 'identifier' field will be 'example.com'. - type: boolean - certificate: - description: Certificate is a copy of the PEM encoded certificate for this Order. This field will be populated after the order has been successfully finalized with the ACME server, and the order has transitioned to the 'valid' state. - type: string - format: byte - failureTime: - description: FailureTime stores the time that this order failed. This is used to influence garbage collection and back-off. - type: string - format: date-time - finalizeURL: - description: FinalizeURL of the Order. This is used to obtain certificates for this order once it has been completed. - type: string - reason: - description: Reason optionally provides more information about a why the order is in the current state. - type: string - state: - description: State contains the current state of this Order resource. States 'success' and 'expired' are 'final' - type: string - enum: - - valid - - ready - - pending - - processing - - invalid - - expired - - errored - url: - description: URL of the Order. This will initially be empty when the resource is first created. The Order controller will populate this field when the Order is first processed. This field will be immutable after it is initially set. - type: string - served: true - storage: true diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/deployment.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/deployment.yaml deleted file mode 100644 index 84691187a..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/deployment.yaml +++ /dev/null @@ -1,86 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/deployment.yaml -apiVersion: apps/v1 -kind: Deployment -metadata: - name: default-certmanager - namespace: default - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - template: - metadata: - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - annotations: - prometheus.io/path: "/metrics" - prometheus.io/scrape: 'true' - prometheus.io/port: '9402' - spec: - serviceAccountName: default-certmanager - enableServiceLinks: false - securityContext: - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - containers: - - name: certmanager-controller - image: "quay.io/jetstack/cert-manager-controller:v1.14.4" - imagePullPolicy: IfNotPresent - args: - - --v=2 - - --cluster-resource-namespace=$(POD_NAMESPACE) - - --leader-election-namespace=kube-system - - --acme-http01-solver-image=quay.io/jetstack/cert-manager-acmesolver:v1.14.4 - - --max-concurrent-challenges=60 - ports: - - containerPort: 9402 - name: http-metrics - protocol: TCP - - containerPort: 9403 - name: http-healthz - protocol: TCP - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - # LivenessProbe settings are based on those used for the Kubernetes - # controller-manager. See: - # https://github.com/kubernetes/kubernetes/blob/806b30170c61a38fedd54cc9ede4cd6275a1ad3b/cmd/kubeadm/app/util/staticpod/utils.go#L241-L245 - livenessProbe: - httpGet: - port: http-healthz - path: /livez - scheme: HTTP - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 15 - successThreshold: 1 - failureThreshold: 8 - nodeSelector: - kubernetes.io/os: linux diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/rbac.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/rbac.yaml deleted file mode 100644 index b3c9c6aad..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/rbac.yaml +++ /dev/null @@ -1,581 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# Issuer controller role -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-issuers - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["cert-manager.io"] - resources: ["issuers", "issuers/status"] - verbs: ["update", "patch"] - - apiGroups: ["cert-manager.io"] - resources: ["issuers"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch", "create", "update", "delete"] - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "patch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# ClusterIssuer controller role -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-clusterissuers - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["cert-manager.io"] - resources: ["clusterissuers", "clusterissuers/status"] - verbs: ["update", "patch"] - - apiGroups: ["cert-manager.io"] - resources: ["clusterissuers"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch", "create", "update", "delete"] - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "patch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# Certificates controller role -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-certificates - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["cert-manager.io"] - resources: ["certificates", "certificates/status", "certificaterequests", "certificaterequests/status"] - verbs: ["update", "patch"] - - apiGroups: ["cert-manager.io"] - resources: ["certificates", "certificaterequests", "clusterissuers", "issuers"] - verbs: ["get", "list", "watch"] - # We require these rules to support users with the OwnerReferencesPermissionEnforcement - # admission controller enabled: - # https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement - - apiGroups: ["cert-manager.io"] - resources: ["certificates/finalizers", "certificaterequests/finalizers"] - verbs: ["update"] - - apiGroups: ["acme.cert-manager.io"] - resources: ["orders"] - verbs: ["create", "delete", "get", "list", "watch"] - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch", "create", "update", "delete", "patch"] - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "patch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# Orders controller role -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-orders - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["acme.cert-manager.io"] - resources: ["orders", "orders/status"] - verbs: ["update", "patch"] - - apiGroups: ["acme.cert-manager.io"] - resources: ["orders", "challenges"] - verbs: ["get", "list", "watch"] - - apiGroups: ["cert-manager.io"] - resources: ["clusterissuers", "issuers"] - verbs: ["get", "list", "watch"] - - apiGroups: ["acme.cert-manager.io"] - resources: ["challenges"] - verbs: ["create", "delete"] - # We require these rules to support users with the OwnerReferencesPermissionEnforcement - # admission controller enabled: - # https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement - - apiGroups: ["acme.cert-manager.io"] - resources: ["orders/finalizers"] - verbs: ["update"] - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "patch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# Challenges controller role -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-challenges - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - # Use to update challenge resource status - - apiGroups: ["acme.cert-manager.io"] - resources: ["challenges", "challenges/status"] - verbs: ["update", "patch"] - # Used to watch challenge resources - - apiGroups: ["acme.cert-manager.io"] - resources: ["challenges"] - verbs: ["get", "list", "watch"] - # Used to watch challenges, issuer and clusterissuer resources - - apiGroups: ["cert-manager.io"] - resources: ["issuers", "clusterissuers"] - verbs: ["get", "list", "watch"] - # Need to be able to retrieve ACME account private key to complete challenges - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch"] - # Used to create events - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "patch"] - # HTTP01 rules - - apiGroups: [""] - resources: ["pods", "services"] - verbs: ["get", "list", "watch", "create", "delete"] - - apiGroups: ["networking.k8s.io"] - resources: ["ingresses"] - verbs: ["get", "list", "watch", "create", "delete", "update"] - - apiGroups: [ "gateway.networking.k8s.io" ] - resources: [ "httproutes" ] - verbs: ["get", "list", "watch", "create", "delete", "update"] - # We require the ability to specify a custom hostname when we are creating - # new ingress resources. - # See: https://github.com/openshift/origin/blob/21f191775636f9acadb44fa42beeb4f75b255532/pkg/route/apiserver/admission/ingress_admission.go#L84-L148 - - apiGroups: ["route.openshift.io"] - resources: ["routes/custom-host"] - verbs: ["create"] - # We require these rules to support users with the OwnerReferencesPermissionEnforcement - # admission controller enabled: - # https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement - - apiGroups: ["acme.cert-manager.io"] - resources: ["challenges/finalizers"] - verbs: ["update"] - # DNS01 rules (duplicated above) - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# ingress-shim controller role -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-ingress-shim - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["cert-manager.io"] - resources: ["certificates", "certificaterequests"] - verbs: ["create", "update", "delete"] - - apiGroups: ["cert-manager.io"] - resources: ["certificates", "certificaterequests", "issuers", "clusterissuers"] - verbs: ["get", "list", "watch"] - - apiGroups: ["networking.k8s.io"] - resources: ["ingresses"] - verbs: ["get", "list", "watch"] - # We require these rules to support users with the OwnerReferencesPermissionEnforcement - # admission controller enabled: - # https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement - - apiGroups: ["networking.k8s.io"] - resources: ["ingresses/finalizers"] - verbs: ["update"] - - apiGroups: ["gateway.networking.k8s.io"] - resources: ["gateways", "httproutes"] - verbs: ["get", "list", "watch"] - - apiGroups: ["gateway.networking.k8s.io"] - resources: ["gateways/finalizers", "httproutes/finalizers"] - verbs: ["update"] - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "patch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-cluster-view - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true" -rules: - - apiGroups: ["cert-manager.io"] - resources: ["clusterissuers"] - verbs: ["get", "list", "watch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-view - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - rbac.authorization.k8s.io/aggregate-to-view: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-cluster-reader: "true" -rules: - - apiGroups: ["cert-manager.io"] - resources: ["certificates", "certificaterequests", "issuers"] - verbs: ["get", "list", "watch"] - - apiGroups: ["acme.cert-manager.io"] - resources: ["challenges", "orders"] - verbs: ["get", "list", "watch"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-edit - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - rbac.authorization.k8s.io/aggregate-to-edit: "true" - rbac.authorization.k8s.io/aggregate-to-admin: "true" -rules: - - apiGroups: ["cert-manager.io"] - resources: ["certificates", "certificaterequests", "issuers"] - verbs: ["create", "delete", "deletecollection", "patch", "update"] - - apiGroups: ["cert-manager.io"] - resources: ["certificates/status"] - verbs: ["update"] - - apiGroups: ["acme.cert-manager.io"] - resources: ["challenges", "orders"] - verbs: ["create", "delete", "deletecollection", "patch", "update"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# Permission to approve CertificateRequests referencing cert-manager.io Issuers and ClusterIssuers -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-approve:cert-manager-io - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cert-manager" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["cert-manager.io"] - resources: ["signers"] - verbs: ["approve"] - resourceNames: ["issuers.cert-manager.io/*", "clusterissuers.cert-manager.io/*"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# Permission to: -# - Update and sign CertificatSigningeRequests referencing cert-manager.io Issuers and ClusterIssuers -# - Perform SubjectAccessReviews to test whether users are able to reference Namespaced Issuers -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-controller-certificatesigningrequests - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cert-manager" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["certificates.k8s.io"] - resources: ["certificatesigningrequests"] - verbs: ["get", "list", "watch", "update"] - - apiGroups: ["certificates.k8s.io"] - resources: ["certificatesigningrequests/status"] - verbs: ["update", "patch"] - - apiGroups: ["certificates.k8s.io"] - resources: ["signers"] - resourceNames: ["issuers.cert-manager.io/*", "clusterissuers.cert-manager.io/*"] - verbs: ["sign"] - - apiGroups: ["authorization.k8s.io"] - resources: ["subjectaccessreviews"] - verbs: ["create"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-issuers - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-issuers -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-clusterissuers - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-clusterissuers -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-certificates - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-certificates -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-orders - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-orders -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-challenges - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-challenges -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-ingress-shim - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-ingress-shim -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-approve:cert-manager-io - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cert-manager" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-approve:cert-manager-io -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-controller-certificatesigningrequests - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "cert-manager" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-controller-certificatesigningrequests -subjects: - - name: default-certmanager - namespace: default - kind: ServiceAccount ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: default-certmanager:leaderelection - namespace: kube-system - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: - - apiGroups: ["coordination.k8s.io"] - resources: ["leases"] - resourceNames: ["cert-manager-controller"] - verbs: ["get", "update", "patch"] - - apiGroups: ["coordination.k8s.io"] - resources: ["leases"] - verbs: ["create"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/rbac.yaml -# grant cert-manager permission to manage the leaderelection configmap in the -# leader election namespace -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: default-certmanager:leaderelection - namespace: kube-system - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: default-certmanager:leaderelection -subjects: - - apiGroup: "" - kind: ServiceAccount - name: default-certmanager - namespace: default diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/service.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/service.yaml deleted file mode 100644 index b903a57d6..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/service.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: default-certmanager - namespace: default - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - type: ClusterIP - ports: - - protocol: TCP - port: 9402 - name: tcp-prometheus-servicemonitor - targetPort: 9402 - selector: - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/serviceaccount.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/serviceaccount.yaml deleted file mode 100644 index 48962ba37..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/serviceaccount.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/serviceaccount.yaml -apiVersion: v1 -kind: ServiceAccount -automountServiceAccountToken: true -metadata: - name: default-certmanager - namespace: default - labels: - app: certmanager - app.kubernetes.io/name: certmanager - app.kubernetes.io/instance: default - app.kubernetes.io/component: "controller" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-job.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-job.yaml deleted file mode 100644 index c07348601..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-job.yaml +++ /dev/null @@ -1,56 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/startupapicheck-job.yaml -apiVersion: batch/v1 -kind: Job -metadata: - name: default-certmanager-startupapicheck - namespace: default - labels: - app: startupapicheck - app.kubernetes.io/name: startupapicheck - app.kubernetes.io/instance: default - app.kubernetes.io/component: "startupapicheck" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded - helm.sh/hook-weight: "1" -spec: - backoffLimit: 4 - template: - metadata: - labels: - app: startupapicheck - app.kubernetes.io/name: startupapicheck - app.kubernetes.io/instance: default - app.kubernetes.io/component: "startupapicheck" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - spec: - restartPolicy: OnFailure - serviceAccountName: default-certmanager-startupapicheck - enableServiceLinks: false - securityContext: - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - containers: - - name: certmanager-startupapicheck - image: "quay.io/jetstack/cert-manager-startupapicheck:v1.14.4" - imagePullPolicy: IfNotPresent - args: - - check - - api - - --wait=1m - - -v - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - nodeSelector: - kubernetes.io/os: linux diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-rbac.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-rbac.yaml deleted file mode 100644 index c2bdb9457..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-rbac.yaml +++ /dev/null @@ -1,51 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/startupapicheck-rbac.yaml -# create certificate role -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: default-certmanager-startupapicheck:create-cert - namespace: default - labels: - app: startupapicheck - app.kubernetes.io/name: startupapicheck - app.kubernetes.io/instance: default - app.kubernetes.io/component: "startupapicheck" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded - helm.sh/hook-weight: "-5" -rules: - - apiGroups: ["cert-manager.io"] - resources: ["certificates"] - verbs: ["create"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/startupapicheck-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: default-certmanager-startupapicheck:create-cert - namespace: default - labels: - app: startupapicheck - app.kubernetes.io/name: startupapicheck - app.kubernetes.io/instance: default - app.kubernetes.io/component: "startupapicheck" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded - helm.sh/hook-weight: "-5" -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: default-certmanager-startupapicheck:create-cert -subjects: - - kind: ServiceAccount - name: default-certmanager-startupapicheck - namespace: default diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-serviceaccount.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-serviceaccount.yaml deleted file mode 100644 index 1bea809b2..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/startupapicheck-serviceaccount.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/startupapicheck-serviceaccount.yaml -apiVersion: v1 -kind: ServiceAccount -automountServiceAccountToken: true -metadata: - name: default-certmanager-startupapicheck - namespace: default - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded - helm.sh/hook-weight: "-5" - labels: - app: startupapicheck - app.kubernetes.io/name: startupapicheck - app.kubernetes.io/instance: default - app.kubernetes.io/component: "startupapicheck" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-deployment.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-deployment.yaml deleted file mode 100644 index 5db517536..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-deployment.yaml +++ /dev/null @@ -1,92 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-deployment.yaml -apiVersion: apps/v1 -kind: Deployment -metadata: - name: default-certmanager-webhook - namespace: default - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - template: - metadata: - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - spec: - serviceAccountName: default-certmanager-webhook - enableServiceLinks: false - securityContext: - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - containers: - - name: certmanager-webhook - image: "quay.io/jetstack/cert-manager-webhook:v1.14.4" - imagePullPolicy: IfNotPresent - args: - - --v=2 - - --secure-port=10250 - - --dynamic-serving-ca-secret-namespace=$(POD_NAMESPACE) - - --dynamic-serving-ca-secret-name=default-certmanager-webhook-ca - - --dynamic-serving-dns-names=default-certmanager-webhook - - --dynamic-serving-dns-names=default-certmanager-webhook.$(POD_NAMESPACE) - - --dynamic-serving-dns-names=default-certmanager-webhook.$(POD_NAMESPACE).svc - - ports: - - name: https - protocol: TCP - containerPort: 10250 - - name: healthcheck - protocol: TCP - containerPort: 6080 - livenessProbe: - httpGet: - path: /livez - port: 6080 - scheme: HTTP - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 1 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - httpGet: - path: /healthz - port: 6080 - scheme: HTTP - initialDelaySeconds: 5 - periodSeconds: 5 - timeoutSeconds: 1 - successThreshold: 1 - failureThreshold: 3 - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - nodeSelector: - kubernetes.io/os: linux diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-mutating-webhook.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-mutating-webhook.yaml deleted file mode 100644 index 940dfd0f7..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-mutating-webhook.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-mutating-webhook.yaml -apiVersion: admissionregistration.k8s.io/v1 -kind: MutatingWebhookConfiguration -metadata: - name: default-certmanager-webhook - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - annotations: - cert-manager.io/inject-ca-from-secret: "default/default-certmanager-webhook-ca" -webhooks: - - name: webhook.cert-manager.io - rules: - - apiGroups: - - "cert-manager.io" - apiVersions: - - "v1" - operations: - - CREATE - resources: - - "certificaterequests" - admissionReviewVersions: ["v1"] - # This webhook only accepts v1 cert-manager resources. - # Equivalent matchPolicy ensures that non-v1 resource requests are sent to - # this webhook (after the resources have been converted to v1). - matchPolicy: Equivalent - timeoutSeconds: 30 - failurePolicy: Fail - # Only include 'sideEffects' field in Kubernetes 1.12+ - sideEffects: None - clientConfig: - service: - name: default-certmanager-webhook - namespace: default - path: /mutate diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-rbac.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-rbac.yaml deleted file mode 100644 index e67be6d82..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-rbac.yaml +++ /dev/null @@ -1,90 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: default-certmanager-webhook:subjectaccessreviews - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: -- apiGroups: ["authorization.k8s.io"] - resources: ["subjectaccessreviews"] - verbs: ["create"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-certmanager-webhook:subjectaccessreviews - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: default-certmanager-webhook:subjectaccessreviews -subjects: -- apiGroup: "" - kind: ServiceAccount - name: default-certmanager-webhook - namespace: default ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: default-certmanager-webhook:dynamic-serving - namespace: default - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -rules: -- apiGroups: [""] - resources: ["secrets"] - resourceNames: - - 'default-certmanager-webhook-ca' - verbs: ["get", "list", "watch", "update"] -# It's not possible to grant CREATE permission on a single resourceName. -- apiGroups: [""] - resources: ["secrets"] - verbs: ["create"] ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-rbac.yaml -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: default-certmanager-webhook:dynamic-serving - namespace: default - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: default-certmanager-webhook:dynamic-serving -subjects: -- apiGroup: "" - kind: ServiceAccount - name: default-certmanager-webhook - namespace: default diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-service.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-service.yaml deleted file mode 100644 index 03cf0beac..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-service.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-service.yaml -apiVersion: v1 -kind: Service -metadata: - name: default-certmanager-webhook - namespace: default - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 -spec: - type: ClusterIP - ports: - - name: https - port: 443 - protocol: TCP - targetPort: "https" - selector: - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-serviceaccount.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-serviceaccount.yaml deleted file mode 100644 index 62bd42db8..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-serviceaccount.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-serviceaccount.yaml -apiVersion: v1 -kind: ServiceAccount -automountServiceAccountToken: true -metadata: - name: default-certmanager-webhook - namespace: default - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-validating-webhook.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-validating-webhook.yaml deleted file mode 100644 index 128768164..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/certmanager/webhook-validating-webhook.yaml +++ /dev/null @@ -1,48 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/certmanager/templates/webhook-validating-webhook.yaml -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - name: default-certmanager-webhook - labels: - app: webhook - app.kubernetes.io/name: webhook - app.kubernetes.io/instance: default - app.kubernetes.io/component: "webhook" - app.kubernetes.io/version: "v1.14.4" - app.kubernetes.io/managed-by: Helm - helm.sh/chart: certmanager-v1.14.4 - annotations: - cert-manager.io/inject-ca-from-secret: "default/default-certmanager-webhook-ca" -webhooks: - - name: webhook.cert-manager.io - namespaceSelector: - matchExpressions: - - key: cert-manager.io/disable-validation - operator: NotIn - values: - - "true" - rules: - - apiGroups: - - "cert-manager.io" - - "acme.cert-manager.io" - apiVersions: - - "v1" - operations: - - CREATE - - UPDATE - resources: - - "*/*" - admissionReviewVersions: ["v1"] - # This webhook only accepts v1 cert-manager resources. - # Equivalent matchPolicy ensures that non-v1 resource requests are sent to - # this webhook (after the resources have been converted to v1). - matchPolicy: Equivalent - timeoutSeconds: 30 - failurePolicy: Fail - sideEffects: None - clientConfig: - service: - name: default-certmanager-webhook - namespace: default - path: /validate diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml index 46d53d3a0..96ecf8576 100644 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml +++ b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml @@ -3,9 +3,6 @@ apiVersion: cert-manager.io/v1 kind: Certificate metadata: - annotations: - helm.sh/hook: post-install,post-upgrade - helm.sh/hook-weight: "1" labels: helm.sh/chart: operator-0.71.2 app.kubernetes.io/name: operator @@ -32,9 +29,6 @@ spec: apiVersion: cert-manager.io/v1 kind: Issuer metadata: - annotations: - helm.sh/hook: post-install,post-upgrade - helm.sh/hook-weight: "1" labels: helm.sh/chart: operator-0.71.2 app.kubernetes.io/name: operator diff --git a/helm-charts/splunk-otel-collector/Chart.yaml b/helm-charts/splunk-otel-collector/Chart.yaml index 214e984b7..da4a35b7c 100644 --- a/helm-charts/splunk-otel-collector/Chart.yaml +++ b/helm-charts/splunk-otel-collector/Chart.yaml @@ -22,11 +22,6 @@ dependencies: # Subchart Notes: # - Avoid uppercase letters in aliases, they cause install failure due to subchart resource naming # - Avoid hyphen characters in aliases, they introduce template rendering complications (https://github.com/helm/helm/issues/2192) - - name: cert-manager - version: v1.14.4 - alias: certmanager - repository: https://charts.jetstack.io - condition: certmanager.enabled - name: opentelemetry-operator-crds version: 0.0.1 alias: operatorcrds diff --git a/helm-charts/splunk-otel-collector/values.schema.json b/helm-charts/splunk-otel-collector/values.schema.json index 399fbe666..f013cec5b 100644 --- a/helm-charts/splunk-otel-collector/values.schema.json +++ b/helm-charts/splunk-otel-collector/values.schema.json @@ -1705,12 +1705,14 @@ "certmanager": { "description": "cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates.", "type": "object", - "additionalProperties": true + "additionalProperties": true, + "deprecated": true }, "cert-manager": { "description": "Configuration for cert-manager (legacy). Prefer using 'certmanager' for new installations. This field is included to support backward compatibility with older Helm versions or custom distributions. cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates.", "type": "object", - "additionalProperties": true + "additionalProperties": true, + "deprecated": true }, "targetAllocator": { "description": "Target Allocator configuration.", diff --git a/helm-charts/splunk-otel-collector/values.yaml b/helm-charts/splunk-otel-collector/values.yaml index 13199713a..e2fdf8020 100644 --- a/helm-charts/splunk-otel-collector/values.yaml +++ b/helm-charts/splunk-otel-collector/values.yaml @@ -1192,14 +1192,9 @@ operator: crds: create: false admissionWebhooks: - certManager: - # Annotate the certificate and issuer to ensure they are created after the cert-manager CRDs have been installed. - certificateAnnotations: - "helm.sh/hook": post-install,post-upgrade - "helm.sh/hook-weight": "1" - issuerAnnotations: - "helm.sh/hook": post-install,post-upgrade - "helm.sh/hook-weight": "1" + autoGenerateCert: + enabled: true + certPeriodDays: 3650 # Collector deployment via the operator is not supported at this time. # The collector image repository is specified here to meet operator subchart constraints. manager: @@ -1287,12 +1282,6 @@ instrumentation: # value: nginx_value # Auto-instrumentation Libraries (End) -# The cert-manager is a CNCF application deployed as a subchart and used for supporting operators that require TLS certificates. -# Full list of Helm value configurations: https://artifacthub.io/packages/helm/cert-manager/cert-manager?modal=values -certmanager: - enabled: false - installCRDs: true - ################################################################################ # Target Allocator # Notice: Target Allocator related features should be considered to have an alpha From b36d8a390ddd62c658770a0474ea101257c2e4ee Mon Sep 17 00:00:00 2001 From: jvoravong Date: Wed, 29 Jan 2025 10:21:46 -0700 Subject: [PATCH 02/21] Update CI/CD to support self signed cert data --- .github/workflows/functional_test_v2.yaml | 18 -- .pre-commit-config.yaml | 2 +- Makefile | 2 +- ci_scripts/base_util.sh | 51 ++++ {examples => ci_scripts}/render-examples.sh | 11 +- docs/auto-instrumentation-install.md | 4 - .../README.md | 9 + ...rator-and-auto-instrumentation-values.yaml | 2 - .../otel-demo-dotnet.md | 15 +- .../otel-demo-nodejs.md | 17 +- .../operator-webhook-with-cert-manager.yaml | 192 --------------- .../admission-webhooks/operator-webhook.yaml | 220 ++++++++++++++++++ .../operator/certmanager.yaml | 43 ---- .../tests/test-certmanager-connection.yaml | 38 --- .../spring-petclinic-java.md | 17 +- functional_tests/functional_test.go | 9 - .../testdata/values/aks_test_values.yaml.tmpl | 5 - .../values/autopilot_test_values.yaml.tmpl | 5 - helm-charts/splunk-otel-collector/values.yaml | 2 + tools/splunk_kubernetes_debug_info.sh | 27 +-- 20 files changed, 314 insertions(+), 375 deletions(-) rename {examples => ci_scripts}/render-examples.sh (89%) delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook-with-cert-manager.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml delete mode 100644 examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/tests/test-certmanager-connection.yaml diff --git a/.github/workflows/functional_test_v2.yaml b/.github/workflows/functional_test_v2.yaml index 924a921f8..9cc90a1f9 100644 --- a/.github/workflows/functional_test_v2.yaml +++ b/.github/workflows/functional_test_v2.yaml @@ -64,9 +64,6 @@ jobs: - name: Update dependencies run: | make dep-update - - name: Deploy cert-manager - run: | - make cert-manager - name: run functional tests id: run-functional-tests env: @@ -124,9 +121,6 @@ jobs: - name: Update dependencies run: | make dep-update - - name: Deploy cert-manager - run: | - make cert-manager - name: run functional tests env: HOST_ENDPOINT: 0.0.0.0 @@ -178,9 +172,6 @@ jobs: - name: Update dependencies run: | cd base && make dep-update - - name: Deploy cert-manager - run: | - cd base && make cert-manager - name: Deploy previous version of the chart run: | helm list | grep -q "^sock$" && echo "Found previous 'sock' release. Deleting..." && helm delete sock @@ -188,9 +179,6 @@ jobs: - name: Update dependencies run: | make dep-update - - name: Deploy cert-manager - run: | - make cert-manager - name: run functional tests env: HOST_ENDPOINT: 0.0.0.0 @@ -232,9 +220,6 @@ jobs: - name: Update dependencies run: | cd base && make dep-update - - name: Deploy cert-manager - run: | - cd base && make cert-manager - name: Deploy previous version of the chart run: | helm list | grep -q "^sock$" && echo "Found previous 'sock' release. Deleting..." && helm delete sock @@ -242,9 +227,6 @@ jobs: - name: Update dependencies run: | make dep-update - - name: Deploy cert-manager - run: | - make cert-manager - name: run functional tests env: HOST_ENDPOINT: 0.0.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99ca8731e..5958b3a26 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,6 @@ repos: exclude: "^examples|^test" - id: check-yaml # Can't check source yaml since it has go templates in it. - exclude: "^helm-charts" + exclude: "^helm-charts|operator-webhook.yaml" args: [ --allow-multiple-documents ] - id: check-added-large-files diff --git a/Makefile b/Makefile index 20d76fa68..d7a020bac 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ dep-update: ## Fetch Helm chart dependency repositories, build the Helm chart wi # make render VALUES="values1.yaml values2.yaml" .PHONY: render render: dep-update ## Render the Helm chart with the examples as input. Users can also provide value overrides. - @examples/render-examples.sh $(VALUES) || exit 1 + @ci_scripts/render-examples.sh $(VALUES) || exit 1 ##@ Test # Tasks related to testing the Helm chart diff --git a/ci_scripts/base_util.sh b/ci_scripts/base_util.sh index da925ad42..a6f8127be 100755 --- a/ci_scripts/base_util.sh +++ b/ci_scripts/base_util.sh @@ -447,3 +447,54 @@ maybe_update_version() { fi echo "Image update process completed successfully for '$yaml_file_path'." } + +# Function: redact_sensitive_info +# Description: Redacts sensitive information from a given input string and returns the redacted content as a string. +# The function uses `awk` to redact specific patterns such as certificates, sensitive data, tokens, and passwords. +# Usage: redact_sensitive_info "$input_string" +redact_sensitive_info() { + local input="$1" + + # Redact sensitive information from the input string using awk and return the result + echo "$input" | awk ' + # Redact certificate sections + /BEGIN CERTIFICATE/,/END CERTIFICATE/ { + if (/BEGIN CERTIFICATE/) print; + else if (/END CERTIFICATE/) print; + else print " [CERTIFICATE REDACTED]"; + next; + } + # Redact sensitive data patterns like caBundle, certificates, keys + /caBundle|ca\.crt|client\.crt|client\.key|tls\.crt|tls\.key/ { + print " [SENSITIVE DATA REDACTED]"; + next; + } + # Redact tokens + /[Tt][Oo][Kk][Ee][Nn]/ { + print " [TOKEN REDACTED]"; + next; + } + # Redact passwords + /[Pp][Aa][Ss][Ss][Ww][Oo][Rr][Dd]/ { + print " [PASSWORD REDACTED]"; + next; + } + # Print other content unchanged + {print} + ' +} + +# Function: redact_files +# Description: Redacts sensitive information from all files matching the provided file pattern in the specified directory using a for loop. +# Usage: redact_files "path/to/directory" "*.yaml" +redact_files() { + local dir="$1" + local file_pattern="$2" + + # Use find to search for files matching the pattern in the specified directory + for file in $(find "$dir" -type f -name "$file_pattern"); do + # Redact the content of the file and save it back to the original file + redacted_content=$(redact_sensitive_info "$(cat "$file")") + echo "$redacted_content" > "$file" + done +} diff --git a/examples/render-examples.sh b/ci_scripts/render-examples.sh similarity index 89% rename from examples/render-examples.sh rename to ci_scripts/render-examples.sh index 464148af5..b7d242ff5 100755 --- a/examples/render-examples.sh +++ b/ci_scripts/render-examples.sh @@ -13,7 +13,9 @@ # ./render-examples.sh extra-values.yaml # ./render-examples.sh values1.yaml values2.yaml -SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +EXAMPLES_DIR="$SCRIPT_DIR/../examples" +source "$SCRIPT_DIR/base_util.sh" render_task() { example_dir=$1 @@ -47,6 +49,9 @@ render_task() { exit 1 fi + # Redact data that has a unique value per run such as certificate data for the operator webhook + redact_files "${rendered_manifests_dir}" "**webhook.yaml" + # Move the chart renders cp -rp "${rendered_manifests_dir}/splunk-otel-collector/templates/"* "$rendered_manifests_dir" if [ $? -ne 0 ]; then @@ -74,12 +79,12 @@ render_task() { # Collect additional values files passed as arguments values_files=("$@") -for example_dir in $SCRIPT_DIR/*/; do +for example_dir in $EXAMPLES_DIR/*/; do render_task "${example_dir}" & done wait # Let all the render tasks finish -for example_dir in $SCRIPT_DIR/*/; do +for example_dir in $EXAMPLES_DIR/*/; do rendered_manifests_dir="${example_dir}rendered_manifests" if [ ! -d "${rendered_manifests_dir}" ]; then echo "Examples were rendered, failure occurred" diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index 92dfafc6e..caca06139 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -68,10 +68,6 @@ these frameworks often have pre-built instrumentation capabilities already avail - [partially enable profiling](../examples/enable-operator-and-auto-instrumentation/instrumentation/instrumentation-enable-profiling-partially.yaml). ```bash -# Check if cert-manager is already installed, don't deploy a second cert-manager. -kubectl get pods -l app=cert-manager --all-namespaces - -# If cert-manager is not deployed, make sure to add certmanager.enabled=true to the list of values to set helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector ``` diff --git a/examples/enable-operator-and-auto-instrumentation/README.md b/examples/enable-operator-and-auto-instrumentation/README.md index 5f88fbbff..d12af05de 100644 --- a/examples/enable-operator-and-auto-instrumentation/README.md +++ b/examples/enable-operator-and-auto-instrumentation/README.md @@ -21,6 +21,15 @@ This example demonstrates how to: - **Single App Focus:** Explore trace-related performance of a single instrumented NodeJS application in the APM console. - **Simplified Use Case:** Although relations between applications will not be showcased in the APM console, this demo offers a simplified setup suitable for understanding basic instrumentation and trace visualization. +## [Simple Webserver - .NET Instrumentation](./otel-demo-nodejs.md) +This example demonstrates how to: +- Deploy the chart to the current namespace and the demo to the `dotnet-demo` namespace. +- Instrument a single .NET application. + +**Highlights:** +- **Single App Focus:** Explore trace-related performance of a single instrumented .NET application in the APM console. +- **Simplified Use Case:** Although relations between applications will not be showcased in the APM console, this demo offers a simplified setup suitable for understanding basic instrumentation and trace visualization. + ## Exploring Traces and Applications in APM Console The examples provide practical insights into using the APM console for exploring application relations and traces. Whether dealing with multiple applications interacting with each other or focusing on a single application, you will gain hands-on experience in visualizing trace data using Splunk Observability APM. diff --git a/examples/enable-operator-and-auto-instrumentation/enable-operator-and-auto-instrumentation-values.yaml b/examples/enable-operator-and-auto-instrumentation/enable-operator-and-auto-instrumentation-values.yaml index def8c7d41..5e6f9d1e4 100644 --- a/examples/enable-operator-and-auto-instrumentation/enable-operator-and-auto-instrumentation-values.yaml +++ b/examples/enable-operator-and-auto-instrumentation/enable-operator-and-auto-instrumentation-values.yaml @@ -11,6 +11,4 @@ operatorcrds: install: true operator: enabled: true -certmanager: - enabled: true diff --git a/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md b/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md index d28b6b2a4..0f41d3743 100644 --- a/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md +++ b/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md @@ -24,14 +24,10 @@ curl https://raw.githubusercontent.com/signalfx/splunk-otel-collector-chart/main #### 2.1 Deploy the Helm Chart with the Operator enabled To install the chart with operator in an existing cluster, make sure you have cert-manager installed and available. -Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true`. +Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true`. These helm install commands will deploy the chart to the current namespace for this example. ```bash -# Check if a cert-manager is already installed by looking for cert-manager pods. -kubectl get pods -l app=cert-manager --all-namespaces - -# If cert-manager is deployed, make sure to remove certmanager.enabled=true to the list of values to set helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector ``` @@ -46,15 +42,16 @@ kubectl get pods # splunk-otel-collector-agent-2mtfn 2/2 Running 0 5m # splunk-otel-collector-agent-k4gc8 2/2 Running 0 5m # splunk-otel-collector-agent-wjt98 2/2 Running 0 5m -# splunk-otel-collector-certmanager-69b98cc84d-2vzl7 1/1 Running 0 5m -# splunk-otel-collector-certmanager-cainjector-76db6dcbbf-4625c 1/1 Running 0 5m -# splunk-otel-collector-certmanager-webhook-bc68cd487-dctrf 1/1 Running 0 5m # splunk-otel-collector-k8s-cluster-receiver-8449bfdc8-hhbvz 1/1 Running 0 5m # splunk-otel-collector-operator-754c9d78f8-9ztwg 2/2 Running 0 5m kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io # NAME WEBHOOKS AGE -# splunk-otel-collector-certmanager-webhook 1 8m +# splunk-otel-collector-operator-mutation 3 2m + +# TODO: Validate these inputs andoutput +kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io +# NAME WEBHOOKS AGE # splunk-otel-collector-operator-mutation 3 2m kubectl get otelinst diff --git a/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md b/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md index dfd9a08fa..e0420cee4 100644 --- a/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md +++ b/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md @@ -20,15 +20,11 @@ curl https://raw.githubusercontent.com/signalfx/splunk-otel-collector-chart/main #### 2.1 Deploy the Helm Chart with the Operator enabled To install the chart with operator in an existing cluster, make sure you have cert-manager installed and available. -Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true`. +Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true`. These helm install commands will deploy the chart to the current namespace for this example. ```bash -# Check if a cert-manager is already installed by looking for cert-manager pods. -kubectl get pods -l app=cert-manager --all-namespaces - -# If cert-manager is deployed, make sure to remove certmanager.enabled=true to the list of values to set -helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector +helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector ``` #### 2.2 Verify all the OpenTelemetry resources (collector, operator, webhook, instrumentation) are deployed successfully @@ -42,15 +38,16 @@ kubectl get pods # splunk-otel-collector-agent-2mtfn 2/2 Running 0 5m # splunk-otel-collector-agent-k4gc8 2/2 Running 0 5m # splunk-otel-collector-agent-wjt98 2/2 Running 0 5m -# splunk-otel-collector-certmanager-69b98cc84d-2vzl7 1/1 Running 0 5m -# splunk-otel-collector-certmanager-cainjector-76db6dcbbf-4625c 1/1 Running 0 5m -# splunk-otel-collector-certmanager-webhook-bc68cd487-dctrf 1/1 Running 0 5m # splunk-otel-collector-k8s-cluster-receiver-8449bfdc8-hhbvz 1/1 Running 0 5m # splunk-otel-collector-operator-754c9d78f8-9ztwg 2/2 Running 0 5m kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io # NAME WEBHOOKS AGE -# splunk-otel-collector-certmanager-webhooh 1 8m +# splunk-otel-collector-operator-mutation 3 2m + +# TODO: Validate these inputs andoutput +kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io +# NAME WEBHOOKS AGE # splunk-otel-collector-operator-mutation 3 2m kubectl get otelinst diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook-with-cert-manager.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook-with-cert-manager.yaml deleted file mode 100644 index bb97b3048..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook-with-cert-manager.yaml +++ /dev/null @@ -1,192 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook-with-cert-manager.yaml -apiVersion: admissionregistration.k8s.io/v1 -kind: MutatingWebhookConfiguration -metadata: - annotations: - cert-manager.io/inject-ca-from: default/default-operator-serving-cert - labels: - helm.sh/chart: operator-0.71.2 - app.kubernetes.io/name: operator - app.kubernetes.io/version: "0.110.0" - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/instance: default - - app.kubernetes.io/component: webhook - name: default-operator-mutation -webhooks: - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /mutate-opentelemetry-io-v1alpha1-instrumentation - port: 443 - failurePolicy: Fail - name: minstrumentation.kb.io - rules: - - apiGroups: - - opentelemetry.io - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - instrumentations - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /mutate-opentelemetry-io-v1beta1-opentelemetrycollector - port: 443 - failurePolicy: Fail - name: mopentelemetrycollectorbeta.kb.io - rules: - - apiGroups: - - opentelemetry.io - apiVersions: - - v1beta1 - operations: - - CREATE - - UPDATE - resources: - - opentelemetrycollectors - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /mutate-v1-pod - port: 443 - failurePolicy: Ignore - name: mpod.kb.io - rules: - - apiGroups: - - "" - apiVersions: - - v1 - operations: - - CREATE - resources: - - pods - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 ---- -# Source: splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook-with-cert-manager.yaml -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - cert-manager.io/inject-ca-from: default/default-operator-serving-cert - labels: - helm.sh/chart: operator-0.71.2 - app.kubernetes.io/name: operator - app.kubernetes.io/version: "0.110.0" - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/instance: default - - app.kubernetes.io/component: webhook - name: default-operator-validation -webhooks: - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /validate-opentelemetry-io-v1alpha1-instrumentation - port: 443 - failurePolicy: Fail - name: vinstrumentationcreateupdate.kb.io - rules: - - apiGroups: - - opentelemetry.io - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - instrumentations - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /validate-opentelemetry-io-v1alpha1-instrumentation - port: 443 - failurePolicy: Ignore - name: vinstrumentationdelete.kb.io - rules: - - apiGroups: - - opentelemetry.io - apiVersions: - - v1alpha1 - operations: - - DELETE - resources: - - instrumentations - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /validate-opentelemetry-io-v1beta1-opentelemetrycollector - port: 443 - failurePolicy: Fail - name: vopentelemetrycollectorcreateupdatebeta.kb.io - rules: - - apiGroups: - - opentelemetry.io - apiVersions: - - v1beta1 - operations: - - CREATE - - UPDATE - resources: - - opentelemetrycollectors - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 - - admissionReviewVersions: - - v1 - clientConfig: - service: - name: default-operator-webhook - namespace: default - path: /validate-opentelemetry-io-v1beta1-opentelemetrycollector - port: 443 - failurePolicy: Ignore - name: vopentelemetrycollectordeletebeta.kb.io - rules: - - apiGroups: - - opentelemetry.io - apiVersions: - - v1beta1 - operations: - - DELETE - resources: - - opentelemetrycollectors - scope: Namespaced - sideEffects: None - timeoutSeconds: 10 diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook.yaml index 6bc5cdafc..d9b6f04bb 100644 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook.yaml +++ b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/admission-webhooks/operator-webhook.yaml @@ -1,3 +1,223 @@ --- # Source: splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook.yaml --- +--- +# Source: splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook.yaml +apiVersion: admissionregistration.k8s.io/v1 +kind: MutatingWebhookConfiguration +metadata: + labels: + helm.sh/chart: operator-0.71.2 + app.kubernetes.io/name: operator + app.kubernetes.io/version: "0.110.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/instance: default + + app.kubernetes.io/component: webhook + name: default-operator-mutation +webhooks: + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /mutate-opentelemetry-io-v1alpha1-instrumentation + port: 443 + failurePolicy: Fail + name: minstrumentation.kb.io + rules: + - apiGroups: + - opentelemetry.io + apiVersions: + - v1alpha1 + operations: + - CREATE + - UPDATE + resources: + - instrumentations + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /mutate-opentelemetry-io-v1beta1-opentelemetrycollector + port: 443 + failurePolicy: Fail + name: mopentelemetrycollectorbeta.kb.io + rules: + - apiGroups: + - opentelemetry.io + apiVersions: + - v1beta1 + operations: + - CREATE + - UPDATE + resources: + - opentelemetrycollectors + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /mutate-v1-pod + port: 443 + failurePolicy: Ignore + name: mpod.kb.io + rules: + - apiGroups: + - "" + apiVersions: + - v1 + operations: + - CREATE + resources: + - pods + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 +--- +# Source: splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook.yaml +apiVersion: admissionregistration.k8s.io/v1 +kind: ValidatingWebhookConfiguration +metadata: + annotations: + cert-manager.io/inject-ca-from: none + labels: + helm.sh/chart: operator-0.71.2 + app.kubernetes.io/name: operator + app.kubernetes.io/version: "0.110.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/instance: default + + app.kubernetes.io/component: webhook + name: default-operator-validation +webhooks: + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /validate-opentelemetry-io-v1alpha1-instrumentation + port: 443 + failurePolicy: Fail + name: vinstrumentationcreateupdate.kb.io + rules: + - apiGroups: + - opentelemetry.io + apiVersions: + - v1alpha1 + operations: + - CREATE + - UPDATE + resources: + - instrumentations + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /validate-opentelemetry-io-v1alpha1-instrumentation + port: 443 + failurePolicy: Ignore + name: vinstrumentationdelete.kb.io + rules: + - apiGroups: + - opentelemetry.io + apiVersions: + - v1alpha1 + operations: + - DELETE + resources: + - instrumentations + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /validate-opentelemetry-io-v1beta1-opentelemetrycollector + port: 443 + failurePolicy: Fail + name: vopentelemetrycollectorcreateupdatebeta.kb.io + rules: + - apiGroups: + - opentelemetry.io + apiVersions: + - v1beta1 + operations: + - CREATE + - UPDATE + resources: + - opentelemetrycollectors + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 + - admissionReviewVersions: + - v1 + clientConfig: + [SENSITIVE DATA REDACTED] + service: + name: default-operator-webhook + namespace: default + path: /validate-opentelemetry-io-v1beta1-opentelemetrycollector + port: 443 + failurePolicy: Ignore + name: vopentelemetrycollectordeletebeta.kb.io + rules: + - apiGroups: + - opentelemetry.io + apiVersions: + - v1beta1 + operations: + - DELETE + resources: + - opentelemetrycollectors + scope: Namespaced + sideEffects: None + timeoutSeconds: 10 +--- +# Source: splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook.yaml +apiVersion: v1 +kind: Secret +type: kubernetes.io/tls +metadata: + annotations: + "helm.sh/hook": "pre-install,pre-upgrade" + "helm.sh/hook-delete-policy": "before-hook-creation" + labels: + helm.sh/chart: operator-0.71.2 + app.kubernetes.io/name: operator + app.kubernetes.io/version: "0.110.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/instance: default + + app.kubernetes.io/component: webhook + name: default-operator-controller-manager-service-cert + namespace: default +data: + [SENSITIVE DATA REDACTED] + [SENSITIVE DATA REDACTED] + [SENSITIVE DATA REDACTED] diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml deleted file mode 100644 index 96ecf8576..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/certmanager.yaml +++ /dev/null @@ -1,43 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/operator/templates/certmanager.yaml -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - labels: - helm.sh/chart: operator-0.71.2 - app.kubernetes.io/name: operator - app.kubernetes.io/version: "0.110.0" - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/instance: default - - app.kubernetes.io/component: webhook - name: default-operator-serving-cert - namespace: default -spec: - dnsNames: - - default-operator-webhook.default.svc - - default-operator-webhook.default.svc.cluster.local - issuerRef: - kind: Issuer - name: default-operator-selfsigned-issuer - secretName: default-operator-controller-manager-service-cert - subject: - organizationalUnits: - - default-operator ---- -# Source: splunk-otel-collector/charts/operator/templates/certmanager.yaml -apiVersion: cert-manager.io/v1 -kind: Issuer -metadata: - labels: - helm.sh/chart: operator-0.71.2 - app.kubernetes.io/name: operator - app.kubernetes.io/version: "0.110.0" - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/instance: default - - app.kubernetes.io/component: webhook - name: default-operator-selfsigned-issuer - namespace: default -spec: - selfSigned: {} diff --git a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/tests/test-certmanager-connection.yaml b/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/tests/test-certmanager-connection.yaml deleted file mode 100644 index 28a5dcd8b..000000000 --- a/examples/enable-operator-and-auto-instrumentation/rendered_manifests/operator/tests/test-certmanager-connection.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -# Source: splunk-otel-collector/charts/operator/templates/tests/test-certmanager-connection.yaml -apiVersion: v1 -kind: Pod -metadata: - name: "default-operator-cert-manager" - namespace: default - labels: - helm.sh/chart: operator-0.71.2 - app.kubernetes.io/name: operator - app.kubernetes.io/version: "0.110.0" - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/instance: default - - app.kubernetes.io/component: webhook - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: "busybox:latest" - env: - - name: CERT_MANAGER_CLUSTERIP - value: "cert-manager-webhook" - - name: CERT_MANAGER_PORT - value: "443" - command: - - sh - - -c - # The following shell script tests if the cert-manager service is up. If the service is up, when we try - # to wget its exposed port, we will get an HTTP error 400. - - | - wget_output=$(wget -q "$CERT_MANAGER_CLUSTERIP:$CERT_MANAGER_PORT") - if wget_output=="wget: server returned error: HTTP/1.0 400 Bad Request" - then exit 0 - else exit 1 - fi - restartPolicy: Never diff --git a/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md b/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md index fb5d93b64..018165139 100644 --- a/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md +++ b/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md @@ -20,15 +20,11 @@ curl https://raw.githubusercontent.com/signalfx/splunk-otel-collector-chart/main #### 2.1 Deploy the Helm Chart with the Operator enabled To install the chart with operator in an existing cluster, make sure you have cert-manager installed and available. -Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true`. +Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true`. These helm install commands will deploy the chart to the current namespace for this example. ```bash -# Check if a cert-manager is already installed by looking for cert-manager pods. -kubectl get pods -l app=cert-manager --all-namespaces - -# If cert-manager is deployed, make sure to remove certmanager.enabled=true to the list of values to set -helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector +helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector ``` #### 2.2 Verify all the OpenTelemetry resources (collector, operator, webhook, instrumentation) are deployed successfully @@ -42,9 +38,6 @@ kubectl get pods # splunk-otel-collector-agent-2mtfn 2/2 Running 0 5m # splunk-otel-collector-agent-k4gc8 2/2 Running 0 5m # splunk-otel-collector-agent-wjt98 2/2 Running 0 5m -# splunk-otel-collector-certmanager-69b98cc84d-2vzl7 1/1 Running 0 5m -# splunk-otel-collector-certmanager-cainjector-76db6dcbbf-4625c 1/1 Running 0 5m -# splunk-otel-collector-certmanager-webhook-bc68cd487-dctrf 1/1 Running 0 5m # splunk-otel-collector-k8s-cluster-receiver-8449bfdc8-hhbvz 1/1 Running 0 5m # splunk-otel-collector-operator-754c9d78f8-9ztwg 2/2 Running 0 5m # spring-petclinic-admin-server-55fb6cfc64-gwj8q 1/1 Running 0 5m @@ -57,7 +50,11 @@ kubectl get pods kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io # NAME WEBHOOKS AGE -# splunk-otel-collector-certmanager-webhooh 1 8m +# splunk-otel-collector-operator-mutation 3 2m + +# TODO: Validate these inputs andoutput +kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io +# NAME WEBHOOKS AGE # splunk-otel-collector-operator-mutation 3 2m kubectl get otelinst diff --git a/functional_tests/functional_test.go b/functional_tests/functional_test.go index b920c815c..e208430e1 100644 --- a/functional_tests/functional_test.go +++ b/functional_tests/functional_test.go @@ -771,21 +771,12 @@ func shortenNames(value string) string { if strings.HasPrefix(value, "sock-splunk-otel-collector-k8s-cluster-receiver") { return "sock-splunk-otel-collector-k8s-cluster-receiver" } - if strings.HasPrefix(value, "cert-manager-cainjector") { - return "cert-manager-cainjector" - } if strings.HasPrefix(value, "sock-operator") { return "sock-operator" } if strings.HasPrefix(value, "nodejs-test") { return "nodejs-test" } - if strings.HasPrefix(value, "cert-manager-webhook") { - return "cert-manager-webhook" - } - if strings.HasPrefix(value, "cert-manager") { - return "cert-manager" - } return value } diff --git a/functional_tests/testdata/values/aks_test_values.yaml.tmpl b/functional_tests/testdata/values/aks_test_values.yaml.tmpl index 01ff9683f..a938f82b4 100644 --- a/functional_tests/testdata/values/aks_test_values.yaml.tmpl +++ b/functional_tests/testdata/values/aks_test_values.yaml.tmpl @@ -71,10 +71,5 @@ operatorcrds: install: true operator: enabled: true - admissionWebhooks: - certManager: - enabled: false - autoGenerateCert: - enabled: true nodeSelector: kubernetes.io/os: "linux" diff --git a/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl b/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl index a898ff675..e516f549f 100644 --- a/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl +++ b/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl @@ -63,8 +63,3 @@ operatorcrds: install: true operator: enabled: true - admissionWebhooks: - certManager: - enabled: false - autoGenerateCert: - enabled: true diff --git a/helm-charts/splunk-otel-collector/values.yaml b/helm-charts/splunk-otel-collector/values.yaml index e2fdf8020..3b42df6bf 100644 --- a/helm-charts/splunk-otel-collector/values.yaml +++ b/helm-charts/splunk-otel-collector/values.yaml @@ -1195,6 +1195,8 @@ operator: autoGenerateCert: enabled: true certPeriodDays: 3650 + certManager: + enabled: false # Collector deployment via the operator is not supported at this time. # The collector image repository is specified here to meet operator subchart constraints. manager: diff --git a/tools/splunk_kubernetes_debug_info.sh b/tools/splunk_kubernetes_debug_info.sh index 826ca55f1..972533797 100755 --- a/tools/splunk_kubernetes_debug_info.sh +++ b/tools/splunk_kubernetes_debug_info.sh @@ -56,31 +56,8 @@ write_output() { fi fi - # Redact sensitive information - output=$(echo "$output" | awk ' - /BEGIN CERTIFICATE/,/END CERTIFICATE/ { - if (/BEGIN CERTIFICATE/) print; - else if (/END CERTIFICATE/) print; - else print " [CERTIFICATE REDACTED]"; - next; - } - /ca\.crt|client\.crt|client\.key|tls\.crt|tls\.key/ { - print " [SENSITIVE DATA REDACTED]"; - next; - } - /[Tt][Oo][Kk][Ee][Nn]/ { - print " [TOKEN REDACTED]"; - next; - } - /[Pp][Aa][Ss][Ss][Ww][Oo][Rr][Dd]/ { - print " [PASSWORD REDACTED]"; - next; - } - {print}') - - # Write command and output to file - echo "# Command: $cmd" > "$file_name" - echo "$output" >> "$file_name" + # Redact sensitive information from output + redact_sensitive_info "$output" "$file_name" } # Function to collect data for a given namespace From 688d3808d38da4d5edd2c8737a5289bd88abc7ad Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 13 Feb 2025 08:50:14 -0700 Subject: [PATCH 03/21] update functional tests --- .../expected_cluster_receiver.yaml | 782 +----------------- 1 file changed, 13 insertions(+), 769 deletions(-) diff --git a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml index 10ec768cd..f890a2cef 100644 --- a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml +++ b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml @@ -4,105 +4,6 @@ resourceMetrics: - metrics: - gauge: dataPoints: - - asInt: "2" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-67c98b89c8-5dtxs - - key: k8s.pod.uid - value: - stringValue: 9cd699ef-f612-4879-b1ce-04303d7b4f6c - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "2" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-cainjector-5c5695d979-h7c2k - - key: k8s.pod.uid - value: - stringValue: 5a67f651-add4-43f6-b2a7-06afb5fef617 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "2" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-7f9f8648b9-dzq2l - - key: k8s.pod.uid - value: - stringValue: 18826d35-ead9-4637-a492-8d78156959f6 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "2" attributes: - key: cluster_name @@ -1981,51 +1882,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 3917f7d60ba632ba65e55bdd2a69a516383982f5f6b555eaf86a688cea4c5515 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-webhook - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-webhook - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-7f9f8648b9-dzq2l - - key: k8s.pod.uid - value: - stringValue: 18826d35-ead9-4637-a492-8d78156959f6 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -2386,96 +2242,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 7d239fcb5583c18f213c32748d6c127ee36426aa9fcfffb0533bf7a84d5f7194 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-controller - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-controller - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-67c98b89c8-5dtxs - - key: k8s.pod.uid - value: - stringValue: 9cd699ef-f612-4879-b1ce-04303d7b4f6c - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 7f2567f3445e62535252ac97a6b0b3eea860f21dffa4902c947c17d55a26ac2e - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-cainjector - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-cainjector - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-cainjector-5c5695d979-h7c2k - - key: k8s.pod.uid - value: - stringValue: 5a67f651-add4-43f6-b2a7-06afb5fef617 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -2929,51 +2695,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 3917f7d60ba632ba65e55bdd2a69a516383982f5f6b555eaf86a688cea4c5515 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-webhook - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-webhook - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-7f9f8648b9-dzq2l - - key: k8s.pod.uid - value: - stringValue: 18826d35-ead9-4637-a492-8d78156959f6 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "0" attributes: - key: cluster_name @@ -3334,20 +3055,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 7d239fcb5583c18f213c32748d6c127ee36426aa9fcfffb0533bf7a84d5f7194 + stringValue: 82b7c36c5da8acb40f66be5b2c70430bb7d7c84e128bede5bc325f94653839bd - key: container.image.name value: - stringValue: quay.io/jetstack/cert-manager-controller + stringValue: registry.k8s.io/etcd - key: container.image.tag value: - stringValue: v1.14.4 + stringValue: 3.5.10-0 - key: customfield1 value: stringValue: customvalue1 @@ -3359,19 +3080,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: cert-manager-controller + stringValue: etcd - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-67c98b89c8-5dtxs + stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 9cd699ef-f612-4879-b1ce-04303d7b4f6c + stringValue: 68828dad-2ca2-47ca-914e-f41cfd58244b - key: metric_source value: stringValue: kubernetes @@ -3386,13 +3107,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 7f2567f3445e62535252ac97a6b0b3eea860f21dffa4902c947c17d55a26ac2e + stringValue: 9001b70e2443496dc4699019d151e7ac94b30c7555c9f95e0e9fb569a3c5985c - key: container.image.name value: - stringValue: quay.io/jetstack/cert-manager-cainjector + stringValue: quay.io/splunko11ytest/httpd - key: container.image.tag value: - stringValue: v1.14.4 + stringValue: latest - key: customfield1 value: stringValue: customvalue1 @@ -3404,100 +3125,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: cert-manager-cainjector + stringValue: prometheus-annotation-test - key: k8s.namespace.name value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-cainjector-5c5695d979-h7c2k - - key: k8s.pod.uid - value: - stringValue: 5a67f651-add4-43f6-b2a7-06afb5fef617 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 82b7c36c5da8acb40f66be5b2c70430bb7d7c84e128bede5bc325f94653839bd - - key: container.image.name - value: - stringValue: registry.k8s.io/etcd - - key: container.image.tag - value: - stringValue: 3.5.10-0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: etcd - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: etcd-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 68828dad-2ca2-47ca-914e-f41cfd58244b - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 9001b70e2443496dc4699019d151e7ac94b30c7555c9f95e0e9fb569a3c5985c - - key: container.image.name - value: - stringValue: quay.io/splunko11ytest/httpd - - key: container.image.tag - value: - stringValue: latest - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: prometheus-annotation-test - - key: k8s.namespace.name - value: - stringValue: default + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane @@ -3970,33 +3601,6 @@ resourceMetrics: name: k8s.container.cpu_limit - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.namespace.uid - value: - stringValue: 0333ceb4-8c45-4aa4-9f30-e4611c1ba293 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -4216,96 +3820,6 @@ resourceMetrics: name: k8s.namespace.phase - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager - - key: k8s.deployment.uid - value: - stringValue: 0411cd92-0907-4a24-b0aa-50471f720a3f - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-cainjector - - key: k8s.deployment.uid - value: - stringValue: f3c40b77-bed5-4643-a630-851aa418186a - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-webhook - - key: k8s.deployment.uid - value: - stringValue: 0afc64c5-b327-4611-871d-e9061e984240 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "2" attributes: - key: cluster_name @@ -4579,96 +4093,6 @@ resourceMetrics: name: k8s.deployment.available - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager - - key: k8s.deployment.uid - value: - stringValue: 0411cd92-0907-4a24-b0aa-50471f720a3f - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-cainjector - - key: k8s.deployment.uid - value: - stringValue: f3c40b77-bed5-4643-a630-851aa418186a - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-webhook - - key: k8s.deployment.uid - value: - stringValue: 0afc64c5-b327-4611-871d-e9061e984240 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "2" attributes: - key: cluster_name @@ -4942,96 +4366,6 @@ resourceMetrics: name: k8s.deployment.desired - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-67c98b89c8 - - key: k8s.replicaset.uid - value: - stringValue: 7b42f487-280b-430a-b670-ef8f7795c516 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-cainjector-5c5695d979 - - key: k8s.replicaset.uid - value: - stringValue: 1d8e77d4-b9be-45d2-b4e0-eea4fffcdacd - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-webhook-7f9f8648b9 - - key: k8s.replicaset.uid - value: - stringValue: 42043811-fc43-4ad0-87a3-d747d51c350f - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -5305,96 +4639,6 @@ resourceMetrics: name: k8s.replicaset.available - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-67c98b89c8 - - key: k8s.replicaset.uid - value: - stringValue: 7b42f487-280b-430a-b670-ef8f7795c516 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-cainjector-5c5695d979 - - key: k8s.replicaset.uid - value: - stringValue: 1d8e77d4-b9be-45d2-b4e0-eea4fffcdacd - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-webhook-7f9f8648b9 - - key: k8s.replicaset.uid - value: - stringValue: 42043811-fc43-4ad0-87a3-d747d51c350f - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name From 9670d649b151f0d2cfc32e290abd24616f1bbe04 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 13 Feb 2025 09:38:14 -0700 Subject: [PATCH 04/21] more test fixes --- .../expected_cluster_receiver.yaml | 776 +----------------- 1 file changed, 10 insertions(+), 766 deletions(-) diff --git a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml index ede506712..e07a59aad 100644 --- a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml +++ b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml @@ -4,105 +4,6 @@ resourceMetrics: - metrics: - gauge: dataPoints: - - asInt: "2" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-67c98b89c8-g22j7 - - key: k8s.pod.uid - value: - stringValue: 3ece0e7b-6f24-4bed-a51e-e0fcf81a5c26 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "2" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-cainjector-5c5695d979-4gn7v - - key: k8s.pod.uid - value: - stringValue: c67d333e-6b13-4486-8b36-c9622a794d1f - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "2" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-7f9f8648b9-pjrwc - - key: k8s.pod.uid - value: - stringValue: abf6af19-643c-4f88-96ae-beedc60f4f8e - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "2" attributes: - key: cluster_name @@ -880,51 +781,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 2676c08fa9df42f1b1d7dd55856946f2e9440b793ce98424575b56ffb32b991f - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-webhook - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-webhook - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-7f9f8648b9-pjrwc - - key: k8s.pod.uid - value: - stringValue: abf6af19-643c-4f88-96ae-beedc60f4f8e - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -1285,51 +1141,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: b1e0c654ae5151efa4dbd3ca88f6bdf1e1f332393ed611328099b9fff0ad87d5 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-controller - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-controller - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-67c98b89c8-g22j7 - - key: k8s.pod.uid - value: - stringValue: 3ece0e7b-6f24-4bed-a51e-e0fcf81a5c26 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -1375,51 +1186,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: d5b98f53c3b61471d924aa1eeaed91f8c4d71119b776d409386b14fa851e0344 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-cainjector - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-cainjector - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-cainjector-5c5695d979-4gn7v - - key: k8s.pod.uid - value: - stringValue: c67d333e-6b13-4486-8b36-c9622a794d1f - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -1738,51 +1504,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 2676c08fa9df42f1b1d7dd55856946f2e9440b793ce98424575b56ffb32b991f - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-webhook - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-webhook - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-7f9f8648b9-pjrwc - - key: k8s.pod.uid - value: - stringValue: abf6af19-643c-4f88-96ae-beedc60f4f8e - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "0" attributes: - key: cluster_name @@ -2150,13 +1871,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: b1e0c654ae5151efa4dbd3ca88f6bdf1e1f332393ed611328099b9fff0ad87d5 + stringValue: c260d848811ce9c4f324718840ef701569a548e7e769be413d466e1586b6606c - key: container.image.name value: - stringValue: quay.io/jetstack/cert-manager-controller + stringValue: registry.k8s.io/etcd - key: container.image.tag value: - stringValue: v1.14.4 + stringValue: 3.5.10-0 - key: customfield1 value: stringValue: customvalue1 @@ -2168,19 +1889,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: cert-manager-controller + stringValue: etcd - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-67c98b89c8-g22j7 + stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 3ece0e7b-6f24-4bed-a51e-e0fcf81a5c26 + stringValue: 53f92a39-92e9-4ae4-b3e5-6f32ac6fb705 - key: metric_source value: stringValue: kubernetes @@ -2195,103 +1916,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: c260d848811ce9c4f324718840ef701569a548e7e769be413d466e1586b6606c + stringValue: e26453afede340680ddff9cde881a88300ce30b850f21e7f05703c0c341e3726 - key: container.image.name value: - stringValue: registry.k8s.io/etcd + stringValue: registry.k8s.io/kube-scheduler - key: container.image.tag value: - stringValue: 3.5.10-0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: etcd - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: etcd-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 53f92a39-92e9-4ae4-b3e5-6f32ac6fb705 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: d5b98f53c3b61471d924aa1eeaed91f8c4d71119b776d409386b14fa851e0344 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-cainjector - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-cainjector - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-cainjector-5c5695d979-4gn7v - - key: k8s.pod.uid - value: - stringValue: c67d333e-6b13-4486-8b36-c9622a794d1f - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: e26453afede340680ddff9cde881a88300ce30b850f21e7f05703c0c341e3726 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-scheduler - - key: container.image.tag - value: - stringValue: v1.29.0 + stringValue: v1.29.0 - key: customfield1 value: stringValue: customvalue1 @@ -3823,33 +3454,6 @@ resourceMetrics: name: k8s.container.cpu_limit - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.namespace.uid - value: - stringValue: c5128346-03c0-426c-946c-72769ec6cd0e - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -4069,96 +3673,6 @@ resourceMetrics: name: k8s.namespace.phase - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager - - key: k8s.deployment.uid - value: - stringValue: 56b9ded6-8560-4fa3-836e-45e2ad634a81 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-cainjector - - key: k8s.deployment.uid - value: - stringValue: b5cb47e6-3199-4e9c-838e-c438dd2061b1 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-webhook - - key: k8s.deployment.uid - value: - stringValue: b9e1669e-b519-4c4d-b070-69f0197443b7 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "2" attributes: - key: cluster_name @@ -4462,96 +3976,6 @@ resourceMetrics: name: k8s.deployment.available - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager - - key: k8s.deployment.uid - value: - stringValue: 56b9ded6-8560-4fa3-836e-45e2ad634a81 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-cainjector - - key: k8s.deployment.uid - value: - stringValue: b5cb47e6-3199-4e9c-838e-c438dd2061b1 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-webhook - - key: k8s.deployment.uid - value: - stringValue: b9e1669e-b519-4c4d-b070-69f0197443b7 - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "2" attributes: - key: cluster_name @@ -4855,96 +4279,6 @@ resourceMetrics: name: k8s.deployment.desired - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-67c98b89c8 - - key: k8s.replicaset.uid - value: - stringValue: 7955e1fb-2dec-4ddb-86af-77fe5d382112 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-cainjector-5c5695d979 - - key: k8s.replicaset.uid - value: - stringValue: b7c85c60-c92c-470a-b95c-01b6409ae208 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-webhook-7f9f8648b9 - - key: k8s.replicaset.uid - value: - stringValue: 51f90033-ab38-47ef-b7d9-8872b5ee6a7b - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name @@ -5248,96 +4582,6 @@ resourceMetrics: name: k8s.replicaset.available - gauge: dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-67c98b89c8 - - key: k8s.replicaset.uid - value: - stringValue: 7955e1fb-2dec-4ddb-86af-77fe5d382112 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-cainjector-5c5695d979 - - key: k8s.replicaset.uid - value: - stringValue: b7c85c60-c92c-470a-b95c-01b6409ae208 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-webhook-7f9f8648b9 - - key: k8s.replicaset.uid - value: - stringValue: 51f90033-ab38-47ef-b7d9-8872b5ee6a7b - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - asInt: "1" attributes: - key: cluster_name From 18d5c01aa889f531b45b18942112f36e819eea52 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Fri, 14 Feb 2025 09:56:56 -0700 Subject: [PATCH 05/21] updates to keep support for the certmanager subchart around, updated the functional aks tests to use certmanager for testing coverage --- Makefile | 7 ++++++- functional_tests/functional_test.go | 9 +++++++++ .../testdata/values/aks_test_values.yaml.tmpl | 12 ++++++++++++ helm-charts/splunk-otel-collector/Chart.yaml | 5 +++++ helm-charts/splunk-otel-collector/values.schema.json | 6 ++---- helm-charts/splunk-otel-collector/values.yaml | 6 ++++++ 6 files changed, 40 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d7a020bac..03f494fa7 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ $(LOCALBIN): mkdir -p $(LOCALBIN) CHLOGGEN ?= $(LOCALBIN)/chloggen -CERTMANAGER_VERSION ?= v1.14.4 +CERTMANAGER_VERSION ?= $(shell yq eval ".dependencies[] | select(.name == \"cert-manager\") | .version" helm-charts/splunk-otel-collector/Chart.yaml) # The help target as provided .PHONY: help @@ -52,8 +52,13 @@ dep-update: ## Fetch Helm chart dependency repositories, build the Helm chart wi if ! (helm repo list | grep -q open-telemetry) ; then \ helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts || exit 1; \ fi ;\ + if ! (helm repo list | grep -q jetstack) ; then \ + helm repo add jetstack https://charts.jetstack.io || exit 1; \ + fi ;\ + helm repo update open-telemetry jetstack || exit 1; \ DEP_OK=true ;\ if ! helm dependencies list $$DIR | grep open-telemetry | grep -q ok ; then DEP_OK=false ; fi ;\ + if ! helm dependencies list $$DIR | grep jetstack | grep -q ok ; then DEP_OK=false ; fi ;\ if [ "$$DEP_OK" = "false" ] ; then helm dependencies update $$DIR || exit 1; fi ;\ if [ -f "$$LOCK_FILE" ] ; then \ echo "Removing Chart.lock file post-update..."; \ diff --git a/functional_tests/functional_test.go b/functional_tests/functional_test.go index 1b1dc96d3..f33c39259 100644 --- a/functional_tests/functional_test.go +++ b/functional_tests/functional_test.go @@ -857,12 +857,21 @@ func shortenNames(value string) string { if strings.HasPrefix(value, "sock-splunk-otel-collector-k8s-cluster-receiver") { return "sock-splunk-otel-collector-k8s-cluster-receiver" } + if strings.HasPrefix(value, "cert-manager-cainjector") { + return "cert-manager-cainjector" + } if strings.HasPrefix(value, "sock-operator") { return "sock-operator" } if strings.HasPrefix(value, "nodejs-test") { return "nodejs-test" } + if strings.HasPrefix(value, "cert-manager-webhook") { + return "cert-manager-webhook" + } + if strings.HasPrefix(value, "cert-manager") { + return "cert-manager" + } return value } diff --git a/functional_tests/testdata/values/aks_test_values.yaml.tmpl b/functional_tests/testdata/values/aks_test_values.yaml.tmpl index a938f82b4..8c952c98a 100644 --- a/functional_tests/testdata/values/aks_test_values.yaml.tmpl +++ b/functional_tests/testdata/values/aks_test_values.yaml.tmpl @@ -73,3 +73,15 @@ operator: enabled: true nodeSelector: kubernetes.io/os: "linux" + admissionWebhooks: + certManager: + enabled: true + certificateAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "1" + issuerAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "1" +certmanager: + enabled: true + installCRDs: true diff --git a/helm-charts/splunk-otel-collector/Chart.yaml b/helm-charts/splunk-otel-collector/Chart.yaml index 8f3077dc5..c0e6af51f 100644 --- a/helm-charts/splunk-otel-collector/Chart.yaml +++ b/helm-charts/splunk-otel-collector/Chart.yaml @@ -22,6 +22,11 @@ dependencies: # Subchart Notes: # - Avoid uppercase letters in aliases, they cause install failure due to subchart resource naming # - Avoid hyphen characters in aliases, they introduce template rendering complications (https://github.com/helm/helm/issues/2192) + - name: cert-manager + version: v1.14.4 + alias: certmanager + repository: https://charts.jetstack.io + condition: certmanager.enabled - name: opentelemetry-operator-crds version: 0.0.1 alias: operatorcrds diff --git a/helm-charts/splunk-otel-collector/values.schema.json b/helm-charts/splunk-otel-collector/values.schema.json index 76a3a845c..8cabd4489 100644 --- a/helm-charts/splunk-otel-collector/values.schema.json +++ b/helm-charts/splunk-otel-collector/values.schema.json @@ -1745,14 +1745,12 @@ "certmanager": { "description": "cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates.", "type": "object", - "additionalProperties": true, - "deprecated": true + "additionalProperties": true }, "cert-manager": { "description": "Configuration for cert-manager (legacy). Prefer using 'certmanager' for new installations. This field is included to support backward compatibility with older Helm versions or custom distributions. cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates.", "type": "object", - "additionalProperties": true, - "deprecated": true + "additionalProperties": true }, "targetAllocator": { "description": "Target Allocator configuration.", diff --git a/helm-charts/splunk-otel-collector/values.yaml b/helm-charts/splunk-otel-collector/values.yaml index 3963c3388..04ed80a25 100644 --- a/helm-charts/splunk-otel-collector/values.yaml +++ b/helm-charts/splunk-otel-collector/values.yaml @@ -1304,6 +1304,12 @@ instrumentation: # value: nginx_value # Auto-instrumentation Libraries (End) +# The cert-manager is a CNCF application deployed as a subchart and used for supporting operators that require TLS certificates. +# Full list of Helm value configurations: https://artifacthub.io/packages/helm/cert-manager/cert-manager?modal=values +certmanager: + enabled: false + installCRDs: true + ################################################################################ # Target Allocator # Notice: Target Allocator related features should be considered to have an alpha From c23c1a1cac48f8796a2448ac985be666920f1081 Mon Sep 17 00:00:00 2001 From: jvoravong <47871238+jvoravong@users.noreply.github.com> Date: Fri, 14 Feb 2025 14:27:33 -0700 Subject: [PATCH 06/21] Update docs/auto-instrumentation-install.md Co-authored-by: Jina Jain --- docs/auto-instrumentation-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index 985ad09bc..164f10583 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -541,7 +541,7 @@ This is the default and simplest method for generating a TLS certificate. It aut **Configuration:** - Set `admissionWebhooks.certManager.enabled` to `false` and `admissionWebhooks.autoGenerateCert.enabled` to `true`. -- Helm generates a self-signed certificate, valid for 10 years, and creates a secret for the webhook. +- Helm generates a self-signed certificate, valid for 10 years, and creates a secret for the webhook. The validity of this self-signed certificate can be adjusted with the config `operator.admissionWebhooks.autoGenerateCert.certPeriodDays` - The certificate is automatically recreated on every Helm upgrade. This is the easiest setup for users and does not require additional configuration. From 589572602340ac159066d32ed70e349822a62619 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Tue, 18 Feb 2025 10:21:16 -0700 Subject: [PATCH 07/21] draft migration guide for 0.118.0 to 0.119.0 --- UPGRADING.md | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 248da0c3f..76d9b410e 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -1,5 +1,99 @@ # Upgrade guidelines +## 0.118.0 to 0.119.0 + +This guide provides steps for new users, transitioning users, and those maintaining previously deployed Operator-related TLS certificates and configurations. + +- New users: No migration is required for Operator TLS certificates. +- Previous users: Migration may be needed if using `operator.enabled=true` or `certmanager.enabled=true`. + +To maintain previous functionality and avoid breaking changes, review the following sections. + +### **Maintaining Previous Functionality via Helm Values Update** + +#### **Scenario 1: Operator and cert-manager Deployed via This Helm Chart** + +If you previously deployed both the Operator and cert-manager via this Helm chart (`operator.enabled=true` and `certmanager.enabled=true`), add the following values: + +```yaml +operator: + admissionWebhooks: + certManager: + enabled: true + certificateAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "1" + issuerAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "1" +certmanager: + enabled: true + installCRDs: true +``` + +#### **Scenario 2: Operator Deployed with External cert-manager (Not Managed by This Helm Chart)** + +If you deployed the Operator via this Helm chart and used an externally managed cert-manager (`operator.enabled=true` and `certmanager.enabled=false`), you can preserve functionality by adding the following Helm values or using the `--reuse-values` argument: + +```yaml +operator: + admissionWebhooks: + certManager: + enabled: true +``` + +### **Adopting New Functionality (Requires Migration Steps)** + +If you want to migrate from cert-manager-managed certificates to the now default Helm-generated certificates, additional steps may be required to avoid conflicts. + +#### **Potential Upgrade Issue: Existing Secret Conflict** + +If you see an error message like the following during Helm install/upgrade: + +``` +warning: Upgrade "{helm_release_name}" failed: pre-upgrade hooks failed: warning: Hook pre-upgrade splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook.yaml failed: 1 error occurred:* secrets "splunk-otel-collector-operator-controller-manager-service-cert" already exists +``` + +This typically occurs because: +- cert-manager deletes its `Certificate` resources immediately. +- However, cert-manager does not delete the associated **secrets** instantly. It waits for its garbage collector process to remove them. + +You will first have to delete this chart, wait for cert-manager to do garbage collection, and then install the latest version of this chart. +With the assumption your Helm release is named "splunk-otel-collector", we show the commands to run below. +- `Be aware these steps likely include the operator being unavailable and having down time for this service in your environment.` + +#### **Step 1: Verify If the Old Secret Still Exists** + +Use a command like this to delete the chart in your namespace: + +```bash +helm delete splunk-otel-collector --namespace +``` + +#### **Step 2: Verify If the Old Cert Manager Secret Does Not Exists Anymore** + +Use the following command to check if the certificate secret remains in your namespace: + +```bash +kubectl get secret splunk-otel-collector-operator-controller-manager-service-cert --namespace +``` + +#### **Step 3: Wait for Secret Removal or Manually Delete It** + +If the secret still exists, you must wait for cert-manager to remove it or delete it manually: + +```bash +kubectl delete secret splunk-otel-collector-operator-controller-manager-service-cert --namespace +``` + +#### **Step 4: Proceed with Helm Install** + +Once the secret is no longer present, you can install the chart with the latest version (`0.119.0`) successfully: + +```bash +helm install splunk-otel-collector splunk-otel-collector-chart/splunk-otel-collector --values ~/values.yaml --namespace +``` + ## 0.113.0 to 0.116.0 This guide provides steps for new users, transitioning users, and those maintaining previous operator CRD configurations: From cf52cab90a7465b02fceb35bf60615442545fc72 Mon Sep 17 00:00:00 2001 From: jvoravong <47871238+jvoravong@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:55:49 -0700 Subject: [PATCH 08/21] Update docs/auto-instrumentation-install.md Co-authored-by: Jina Jain --- docs/auto-instrumentation-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index 164f10583..97a00d978 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -540,7 +540,7 @@ In Kubernetes, the API server communicates with operator webhook components over This is the default and simplest method for generating a TLS certificate. It automatically creates a self-signed certificate for the webhook. It is suitable for internal environments or testing purposes but may not be trusted by clients outside your cluster. **Configuration:** -- Set `admissionWebhooks.certManager.enabled` to `false` and `admissionWebhooks.autoGenerateCert.enabled` to `true`. +- Set `operator.admissionWebhooks.certManager.enabled` to `false` and `operator.admissionWebhooks.autoGenerateCert.enabled` to `true`. - Helm generates a self-signed certificate, valid for 10 years, and creates a secret for the webhook. The validity of this self-signed certificate can be adjusted with the config `operator.admissionWebhooks.autoGenerateCert.certPeriodDays` - The certificate is automatically recreated on every Helm upgrade. From 4ade4e0af71c3dc6e61095ea3b00fd8e0efa09a1 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Wed, 26 Feb 2025 10:57:25 -0700 Subject: [PATCH 09/21] Update docs after main merge --- .chloggen/migration-operator-helm-certs.yaml | 15 +++++++++++++++ UPGRADING.md | 2 +- docs/auto-instrumentation-install.md | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .chloggen/migration-operator-helm-certs.yaml diff --git a/.chloggen/migration-operator-helm-certs.yaml b/.chloggen/migration-operator-helm-certs.yaml new file mode 100644 index 000000000..e9937ca69 --- /dev/null +++ b/.chloggen/migration-operator-helm-certs.yaml @@ -0,0 +1,15 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking +# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) +component: operator +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Migrate the operator to use Helm generated TLS certificates instead of certmanager by default +# One or more tracking issues related to the change +issues: [1648] +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: | + - For users enabling both the operator and certmanager (.Values.operator.enabled=true, .Values.certmanager.enabled=true), please review the [upgrade guidelines](https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#0119-to-0120). + - Previously, certificates were generated by certmanager by default; now they are generated by Helm unless specified otherwise. + - This change simplifies setup for new users while still supporting those who prefer certmanager. diff --git a/UPGRADING.md b/UPGRADING.md index 76d9b410e..4f3a5ad2f 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -1,6 +1,6 @@ # Upgrade guidelines -## 0.118.0 to 0.119.0 +## 0.119.0 to 0.120.0 This guide provides steps for new users, transitioning users, and those maintaining previously deployed Operator-related TLS certificates and configurations. diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index 97a00d978..b4e6973ed 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -542,7 +542,7 @@ This is the default and simplest method for generating a TLS certificate. It aut **Configuration:** - Set `operator.admissionWebhooks.certManager.enabled` to `false` and `operator.admissionWebhooks.autoGenerateCert.enabled` to `true`. - Helm generates a self-signed certificate, valid for 10 years, and creates a secret for the webhook. The validity of this self-signed certificate can be adjusted with the config `operator.admissionWebhooks.autoGenerateCert.certPeriodDays` -- The certificate is automatically recreated on every Helm upgrade. +- The certificate is automatically recreated on every Helm upgrade. This behavior can be disabled by setting the config `operator.admissionWebhooks.autoGenerateCert.recreate` to `false` This is the easiest setup for users and does not require additional configuration. From c429f2bb5885863367b1a9414f82dd6395b4eae2 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Wed, 26 Feb 2025 13:04:20 -0700 Subject: [PATCH 10/21] split our pre-commit update into a separate PR --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bad066eec..8beecd5bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,4 +20,4 @@ repos: exclude: "^helm-charts|operator-webhook.yaml" args: [ --allow-multiple-documents ] - id: check-added-large-files - args: [ --maxkb=3000 ] + args: [ --maxkb=1500 ] From 83ce345db6ed180bbe90aa63ee43186281f6d6a0 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 07:44:05 -0700 Subject: [PATCH 11/21] Documentation improvements, mostly just reorganize content for easier reading --- .chloggen/migration-operator-helm-certs.yaml | 6 +- docs/auto-instrumentation-install.md | 109 ++++++------------- 2 files changed, 35 insertions(+), 80 deletions(-) diff --git a/.chloggen/migration-operator-helm-certs.yaml b/.chloggen/migration-operator-helm-certs.yaml index e9937ca69..d49004b11 100644 --- a/.chloggen/migration-operator-helm-certs.yaml +++ b/.chloggen/migration-operator-helm-certs.yaml @@ -10,6 +10,6 @@ issues: [1648] # These lines will be padded with 2 spaces and then inserted directly into the document. # Use pipe (|) for multiline entries. subtext: | - - For users enabling both the operator and certmanager (.Values.operator.enabled=true, .Values.certmanager.enabled=true), please review the [upgrade guidelines](https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#0119-to-0120). - - Previously, certificates were generated by certmanager by default; now they are generated by Helm unless specified otherwise. - - This change simplifies setup for new users while still supporting those who prefer certmanager. + - Previously, certificates were generated by cert-manager by default; now they are generated by Helm templates unless configured otherwise. + - This change simplifies the setup for new users while still supporting those who prefer using cert-manager or other solutions. For more details, see the [related documentation](https://github.com/signalfx/splunk-otel-collector-chart/tree/main/docs/auto-instrumentation-install.md#tls-certificate-requirement-for-kubernetes-operator-webhooks). + - If you use `.Values.operator.enabled=true` and `.Values.certmanager.enabled=true`, please review the [upgrade guidelines](https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#0119-to-0120). diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index b4e6973ed..108ebda1d 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -458,84 +458,13 @@ helm template splunk-otel-collector-chart/splunk-otel-collector --include-crds \ | kubectl delete --dry-run=client -f - ``` -### Documentation Resources - -- https://developers.redhat.com/devnation/tech-talks/using-opentelemetry-on-kubernetes -- https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md -- https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#instrumentation -- https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md#opentelemetry-auto-instrumentation-injection -- https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md#use-customized-or-vendor-instrumentation - -### Troubleshooting the Operator and Cert Manager - -#### Check the logs for failures - -**Operator Logs:** - -```bash -kubectl logs -l app.kubernetes.io/name=operator -``` - -**Cert-Manager Logs:** - -```bash -kubectl logs -l app=certmanager -kubectl logs -l app=cainjector -kubectl logs -l app=webhook -``` - -#### Operator Issues - -##### Networking and Firewall Requirements - -Ensure the Mutating Webhook used by the operator for pod auto-instrumentation is not hindered by network policies or firewall rules. Key points to ensure: - -- **Webhook Accessibility**: The webhook must freely communicate with the cluster IP and the Kubernetes API server. Ensure network policies or firewall rules permit operator-related services to interact with these endpoints. -- **Required Ports**: Policies should explicitly allow traffic to the necessary ports for seamless operation. - -Use the following command to identify the IP addresses and ports that need to be accessible: - -```bash -kubectl get svc -n {operator_namespace} -# Example output indicating necessary IP and port configurations: -# NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE -# kubernetes ClusterIP 10.0.0.1 443/TCP 10d -# splunk-splunk-otel-collector-agent ClusterIP 10.0.176.113 8006/TCP,14250/TCP,14268/TCP,... 3d17h -# splunk-splunk-otel-collector-operator ClusterIP 10.0.254.125 8443/TCP,8080/TCP 3d17h -# splunk-splunk-otel-collector-operator-webhook ClusterIP 10.0.222.223 443/TCP 3d17h -``` - -- **Configuration Action**: Adjust your network policies and firewall settings based on the service endpoints and ports listed by the command. This ensures the webhook and operator services can properly communicate within the cluster. - -#### Cert-Manager Issues - -If the operator seems to be hanging, it could be due to the cert-manager not auto-creating the required certificate. To troubleshoot: - -- Check the health and logs of the cert-manager pods for potential issues. -- Consider restarting the cert-manager pods. -- Ensure that your cluster has only one instance of cert-manager, which should include `certmanager`, `certmanager-cainjector`, and `certmanager-webhook`. - -For additional guidance, refer to the official cert-manager documentation: -- [Troubleshooting Guide](https://cert-manager.io/docs/troubleshooting/) -- [Uninstallation Guide](https://cert-manager.io/v1.2-docs/installation/uninstall/kubernetes/) - -##### Validate Certificates - -Ensure that the certificate, which the cert-manager creates and the operator utilizes, is available. - -```bash -kubectl get certificates -# NAME READY SECRET AGE -# splunk-otel-collector-operator-serving-cert True splunk-otel-collector-operator-controller-manager-service-cert 5m -``` - -#### TLS Certificate Requirement for Kubernetes Operator Webhooks +### TLS Certificate Requirement for Kubernetes Operator Webhooks In Kubernetes, the API server communicates with operator webhook components over HTTPS, which requires a valid TLS certificate that the API server trusts. The operator supports several methods for configuring the required certificate, each with different levels of complexity and security. --- -##### 1. **Using a Self-Signed Certificate Generated by the Chart** +#### 1. **Using a Self-Signed Certificate Generated by the Chart** This is the default and simplest method for generating a TLS certificate. It automatically creates a self-signed certificate for the webhook. It is suitable for internal environments or testing purposes but may not be trusted by clients outside your cluster. @@ -550,11 +479,11 @@ This is the easiest setup for users and does not require additional configuratio --- -##### 2. **Using a cert-manager Certificate** +#### 2. **Using a cert-manager Certificate** Using `cert-manager` offers more control over certificate management and is more suitable for production environments. However, due to Helm’s install/upgrade order of operations, cert-manager CRDs and certificates cannot be installed within the same Helm operation. To work around this limitation, you can choose one of the following options: -###### Option 1: **Pre-deploy cert-manager** +##### Option 1: **Pre-deploy cert-manager** If `cert-manager` is already deployed in your cluster, you can configure the operator to use it without enabling certificate generation by Helm. @@ -568,7 +497,7 @@ operator: enabled: false ``` -###### Option 2: **Deploy cert-manager and the operator together** +##### Option 2: **Deploy cert-manager and the operator together** If you need to install `cert-manager` along with the operator, use a Helm post-install or post-upgrade hook to ensure that the certificate is created after cert-manager CRDs are installed. @@ -593,7 +522,7 @@ This method is useful when installing `cert-manager` as a subchart or as part of --- -##### 3. **Using a Custom Externally Generated Certificate** +#### 3. **Using a Custom Externally Generated Certificate** For full control, you can use an externally generated certificate. This is suitable if you already have a certificate issued by a trusted CA or have specific security requirements. @@ -619,3 +548,29 @@ This method allows you to use a certificate that is trusted by external systems, --- For more advanced use cases, refer to the [official Helm chart documentation](https://github.com/open-telemetry/opentelemetry-helm-charts/blob/main/charts/opentelemetry-operator/values.yaml) for detailed configuration options and scenarios. + +### Troubleshooting the Operator and Cert Manager + +#### Check the logs for failures + +**Operator Logs:** + +```bash +kubectl logs -l app.kubernetes.io/name=operator +``` + +**Cert-Manager Logs:** + +```bash +kubectl logs -l app=certmanager +kubectl logs -l app=cainjector +kubectl logs -l app=webhook +``` + +### Documentation Resources + +- https://developers.redhat.com/devnation/tech-talks/using-opentelemetry-on-kubernetes +- https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md +- https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#instrumentation +- https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md#opentelemetry-auto-instrumentation-injection +- https://github.com/open-telemetry/opentelemetry-operator/blob/main/README.md#use-customized-or-vendor-instrumentation From 49091d2a1d5b57868dfa76d558477924d36f99ab Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 07:53:14 -0700 Subject: [PATCH 12/21] name fix --- .chloggen/migration-operator-helm-certs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chloggen/migration-operator-helm-certs.yaml b/.chloggen/migration-operator-helm-certs.yaml index d49004b11..7bfab1677 100644 --- a/.chloggen/migration-operator-helm-certs.yaml +++ b/.chloggen/migration-operator-helm-certs.yaml @@ -3,7 +3,7 @@ change_type: breaking # The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) component: operator # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Migrate the operator to use Helm generated TLS certificates instead of certmanager by default +note: Migrate the operator to use Helm generated TLS certificates instead of cert-manager by default # One or more tracking issues related to the change issues: [1648] # (Optional) One or more lines of additional information to render under the primary note. From c28f181652842e723f2c50ba78edd5cd6b85cb2f Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 11:29:28 -0700 Subject: [PATCH 13/21] remove doc TODOs --- .../otel-demo-dotnet.md | 5 ----- .../otel-demo-nodejs.md | 5 ----- .../spring-petclinic-java.md | 4 ---- 3 files changed, 14 deletions(-) diff --git a/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md b/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md index 0f41d3743..e6126a1ab 100644 --- a/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md +++ b/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md @@ -49,11 +49,6 @@ kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io # NAME WEBHOOKS AGE # splunk-otel-collector-operator-mutation 3 2m -# TODO: Validate these inputs andoutput -kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io -# NAME WEBHOOKS AGE -# splunk-otel-collector-operator-mutation 3 2m - kubectl get otelinst # NAME AGE ENDPOINT # splunk-otel-collector 5m http://$(SPLUNK_OTEL_AGENT):4317 diff --git a/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md b/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md index e0420cee4..875bb891b 100644 --- a/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md +++ b/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md @@ -45,11 +45,6 @@ kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io # NAME WEBHOOKS AGE # splunk-otel-collector-operator-mutation 3 2m -# TODO: Validate these inputs andoutput -kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io -# NAME WEBHOOKS AGE -# splunk-otel-collector-operator-mutation 3 2m - kubectl get otelinst # NAME AGE ENDPOINT # splunk-otel-collector 5m http://$(SPLUNK_OTEL_AGENT):4317 diff --git a/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md b/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md index 018165139..0af950b15 100644 --- a/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md +++ b/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md @@ -52,10 +52,6 @@ kubectl get mutatingwebhookconfiguration.admissionregistration.k8s.io # NAME WEBHOOKS AGE # splunk-otel-collector-operator-mutation 3 2m -# TODO: Validate these inputs andoutput -kubectl get validatingwebhookconfiguration.admissionregistration.k8s.io -# NAME WEBHOOKS AGE -# splunk-otel-collector-operator-mutation 3 2m kubectl get otelinst # NAME AGE ENDPOINT From 87e1823b963ebe584f1c242838d11b7ee1440e15 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 11:50:24 -0700 Subject: [PATCH 14/21] More upgrading step touch ups --- UPGRADING.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 4f3a5ad2f..cf8f11132 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -13,10 +13,11 @@ To maintain previous functionality and avoid breaking changes, review the follow #### **Scenario 1: Operator and cert-manager Deployed via This Helm Chart** -If you previously deployed both the Operator and cert-manager via this Helm chart (`operator.enabled=true` and `certmanager.enabled=true`), add the following values: +If you previously deployed both the Operator and cert-manager via this Helm chart (`operator.enabled=true` and `certmanager.enabled=true`), you can preserve functionality by adding the following values: ```yaml operator: + enabled: true admissionWebhooks: certManager: enabled: true @@ -33,10 +34,11 @@ certmanager: #### **Scenario 2: Operator Deployed with External cert-manager (Not Managed by This Helm Chart)** -If you deployed the Operator via this Helm chart and used an externally managed cert-manager (`operator.enabled=true` and `certmanager.enabled=false`), you can preserve functionality by adding the following Helm values or using the `--reuse-values` argument: +If you previously deployed the Operator and used an externally managed cert-manager (`operator.enabled=true` and `certmanager.enabled=false`), you can preserve functionality by adding the following values: ```yaml operator: + enabled: true admissionWebhooks: certManager: enabled: true @@ -44,11 +46,11 @@ operator: ### **Adopting New Functionality (Requires Migration Steps)** -If you want to migrate from cert-manager-managed certificates to the now default Helm-generated certificates, additional steps may be required to avoid conflicts. +If you want to migrate from cert-manager managed certificates to the now default Helm-generated certificates, additional steps may be required to avoid conflicts. #### **Potential Upgrade Issue: Existing Secret Conflict** -If you see an error message like the following during Helm install/upgrade: +If you see an error message like the following during a Helm install or upgrade: ``` warning: Upgrade "{helm_release_name}" failed: pre-upgrade hooks failed: warning: Hook pre-upgrade splunk-otel-collector/charts/operator/templates/admission-webhooks/operator-webhook.yaml failed: 1 error occurred:* secrets "splunk-otel-collector-operator-controller-manager-service-cert" already exists @@ -62,7 +64,7 @@ You will first have to delete this chart, wait for cert-manager to do garbage co With the assumption your Helm release is named "splunk-otel-collector", we show the commands to run below. - `Be aware these steps likely include the operator being unavailable and having down time for this service in your environment.` -#### **Step 1: Verify If the Old Secret Still Exists** +#### **Step 1: Delete this Helm Chart** Use a command like this to delete the chart in your namespace: @@ -88,7 +90,7 @@ kubectl delete secret splunk-otel-collector-operator-controller-manager-service- #### **Step 4: Proceed with Helm Install** -Once the secret is no longer present, you can install the chart with the latest version (`0.119.0`) successfully: +Once the secret is no longer present, you can install the chart with the latest version (`0.120.0`) successfully: ```bash helm install splunk-otel-collector splunk-otel-collector-chart/splunk-otel-collector --values ~/values.yaml --namespace From 868016f138eb9f1361fdfb6fb25b927db9f238c7 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 12:04:03 -0700 Subject: [PATCH 15/21] remove functional test values file updates because they are not needed --- .../testdata/values/aks_test_values.yaml.tmpl | 15 ++++----------- .../values/autopilot_test_values.yaml.tmpl | 5 +++++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/functional_tests/testdata/values/aks_test_values.yaml.tmpl b/functional_tests/testdata/values/aks_test_values.yaml.tmpl index 8c952c98a..01ff9683f 100644 --- a/functional_tests/testdata/values/aks_test_values.yaml.tmpl +++ b/functional_tests/testdata/values/aks_test_values.yaml.tmpl @@ -71,17 +71,10 @@ operatorcrds: install: true operator: enabled: true - nodeSelector: - kubernetes.io/os: "linux" admissionWebhooks: certManager: + enabled: false + autoGenerateCert: enabled: true - certificateAnnotations: - "helm.sh/hook": post-install,post-upgrade - "helm.sh/hook-weight": "1" - issuerAnnotations: - "helm.sh/hook": post-install,post-upgrade - "helm.sh/hook-weight": "1" -certmanager: - enabled: true - installCRDs: true + nodeSelector: + kubernetes.io/os: "linux" diff --git a/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl b/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl index e516f549f..a898ff675 100644 --- a/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl +++ b/functional_tests/testdata/values/autopilot_test_values.yaml.tmpl @@ -63,3 +63,8 @@ operatorcrds: install: true operator: enabled: true + admissionWebhooks: + certManager: + enabled: false + autoGenerateCert: + enabled: true From 4bef3599a75abb2bdd60e80b06e81af15c473810 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 12:22:49 -0700 Subject: [PATCH 16/21] regenerate functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml for latest changes brought in from main --- .../expected_cluster_receiver.yaml | 2651 ++++------------- 1 file changed, 603 insertions(+), 2048 deletions(-) diff --git a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml index 10956ed46..c4abbca3c 100644 --- a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml +++ b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml @@ -4,7 +4,7 @@ resourceMetrics: - metrics: - gauge: dataPoints: - - asInt: "2" + - asInt: "1" attributes: - key: cluster_name value: @@ -20,26 +20,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: -<<<<<<< HEAD stringValue: default -======= - stringValue: cert-manager ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: -<<<<<<< HEAD - stringValue: dotnet-test-5479c475fc-8xpcw - - key: k8s.pod.uid - value: - stringValue: c28fcde1-8d20-4cfc-a975-8b2c08de526f -======= - stringValue: cert-manager-5d864474d-6fgxj + stringValue: dotnet-test-7fd7cfb786-7swfw - key: k8s.pod.uid value: - stringValue: 7918d738-3243-4a2e-855c-526270da5014 + stringValue: 229cc3dc-a251-4559-b0d3-a830ec2440cc - key: metric_source value: stringValue: kubernetes @@ -47,7 +37,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "2" + - asInt: "1" attributes: - key: cluster_name value: @@ -63,16 +53,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-cainjector-85d499d4cc-74qtd + stringValue: java-test-5b5c88f857-k9mxc - key: k8s.pod.uid value: - stringValue: 87792135-b13b-456b-93f8-49f1f8fe387a + stringValue: b9afe322-7bb0-4539-963f-7d61896f99ce - key: metric_source value: stringValue: kubernetes @@ -80,7 +70,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "2" + - asInt: "1" attributes: - key: cluster_name value: @@ -96,17 +86,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-webhook-d499d9459-qvlwd + stringValue: nodejs-test-5fbcbff576-qt772 - key: k8s.pod.uid value: - stringValue: c942d73c-5605-4d76-877c-23908fdc7a66 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: 0b440da4-fbce-4123-880a-ccfefe9171c0 - key: metric_source value: stringValue: kubernetes @@ -114,7 +103,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "2" attributes: - key: cluster_name value: @@ -136,10 +125,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: dotnet-test-7fd7cfb786-w4rd6 + stringValue: prometheus-annotation-test-85c8b9cd98-kqr6r - key: k8s.pod.uid value: - stringValue: 7824d56e-b27a-4879-a8d1-9eee338bf089 + stringValue: 48d30f05-2032-4eba-9bd1-8652c5ff92a4 - key: metric_source value: stringValue: kubernetes @@ -169,10 +158,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: java-test-5b5c88f857-jwcnj + stringValue: python-test-57cc48d9bc-ts7d4 - key: k8s.pod.uid value: - stringValue: 46e8dee6-2a42-4b63-85be-6986b40d6f13 + stringValue: 2e1cb47e-8587-4dd1-a025-2d3fe53c2d14 - key: metric_source value: stringValue: kubernetes @@ -180,7 +169,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "2" attributes: - key: cluster_name value: @@ -202,10 +191,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: nodejs-test-5fbcbff576-wnhgv + stringValue: sock-operator-7dc9bb794d-mm4xk - key: k8s.pod.uid value: - stringValue: f8f08d37-165c-4262-b193-7de9673922b4 + stringValue: 027c506b-a62f-4ff9-97e6-9ee317a7b954 - key: metric_source value: stringValue: kubernetes @@ -213,7 +202,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "2" attributes: - key: cluster_name value: @@ -235,10 +224,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: prometheus-annotation-test-85c8b9cd98-gzdm6 + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 10fe8146-3d0c-41ce-8abd-6a0695532471 + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -246,7 +235,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "2" attributes: - key: cluster_name value: @@ -268,10 +257,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: python-test-57cc48d9bc-rvzlq + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: 939048fc-23c6-43d6-bbbf-4310472ba13a + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -301,10 +290,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-operator-7dc9bb794d-prbbv + stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7-b27r6 - key: k8s.pod.uid value: - stringValue: 20520f3f-b20f-4fbf-8599-eff795f71394 + stringValue: 03b714ab-78b4-4dd8-8047-2e647560ecce - key: metric_source value: stringValue: kubernetes @@ -328,16 +317,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-r4bfn + stringValue: coredns-7db6d8ff4d-22snj - key: k8s.pod.uid value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 + stringValue: 01a383da-9c9b-4692-b0f8-5c5b925efd26 - key: metric_source value: stringValue: kubernetes @@ -361,16 +350,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg + stringValue: coredns-7db6d8ff4d-qqbhg - key: k8s.pod.uid value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 + stringValue: 1604e134-8a14-46ce-90e7-7c7f2fd09511 - key: metric_source value: stringValue: kubernetes @@ -394,16 +383,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7-gf5zl + stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 144662ce-f00f-47b2-adf5-fa6c0d90faaa + stringValue: ec288478-6e5e-463e-b900-a9f29557419c - key: metric_source value: stringValue: kubernetes @@ -433,10 +422,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-2k96n + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: e081fcb4-47ae-4927-a08a-8c96276a2574 + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -466,10 +455,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-6lfg2 + stringValue: kube-apiserver-kind-control-plane - key: k8s.pod.uid value: - stringValue: 79d91568-77b6-4f75-b4aa-4533eb1a4366 + stringValue: ee10b8e3-33cd-453c-85d5-d74942e20ec2 - key: metric_source value: stringValue: kubernetes @@ -499,10 +488,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: etcd-kind-control-plane + stringValue: kube-controller-manager-kind-control-plane - key: k8s.pod.uid value: - stringValue: 46a99fe6-a3ef-4dae-8026-c6b08411edbe + stringValue: 64220258-bf38-4891-941b-60d9242ff1e0 - key: metric_source value: stringValue: kubernetes @@ -532,10 +521,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-dd8mx + stringValue: kube-proxy-t8rhm - key: k8s.pod.uid value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 + stringValue: f870dffd-b0c8-41b8-aff0-9d78f7d70fd2 - key: metric_source value: stringValue: kubernetes @@ -565,10 +554,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-apiserver-kind-control-plane + stringValue: kube-scheduler-kind-control-plane - key: k8s.pod.uid value: - stringValue: a99a3190-8680-4b67-ac17-ebc1ae666eb6 + stringValue: 43149e3a-5678-49c4-951c-9db00c0c96cb - key: metric_source value: stringValue: kubernetes @@ -592,16 +581,16 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: local-path-storage - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-controller-manager-kind-control-plane + stringValue: local-path-provisioner-988d74bc-4jktk - key: k8s.pod.uid value: - stringValue: 1980550f-bbd3-4eeb-8864-737bf3a9570b + stringValue: 7b0ba1b1-c561-4db0-82ae-83d1d061fc6b - key: metric_source value: stringValue: kubernetes @@ -609,11 +598,23 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "2" + name: k8s.pod.phase + - gauge: + dataPoints: + - asDouble: 0.2 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster + - key: container.id + value: + stringValue: 151ac5c034845edb158fedd5d87752a23a2905492b3dec2850cf6a117512cf82 + - key: container.image.name + value: + stringValue: quay.io/signalfx/splunk-otel-collector + - key: container.image.tag + value: + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -623,18 +624,21 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator + - key: k8s.container.name + value: + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-proxy-nmblc + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 67814461-979c-4a2a-9e1e-886219ca48b9 + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -642,11 +646,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "2" + - asDouble: 0.1 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster + - key: container.id + value: + stringValue: 6bfa3ff110cd2e70967983553b969999f6b7e3e5e52b30abddb1288fd3c83407 + - key: container.image.name + value: + stringValue: docker.io/kindest/kindnetd + - key: container.image.tag + value: + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -656,6 +669,9 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator + - key: k8s.container.name + value: + stringValue: kindnet-cni - key: k8s.namespace.name value: stringValue: kube-system @@ -664,10 +680,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-scheduler-kind-control-plane + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: ca1dede1-48a5-43cb-99a9-90a19b071baf + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -675,11 +691,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "2" + - asDouble: 0.2 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster + - key: container.id + value: + stringValue: 90c953d5b7e4352a3cb9beeb343d28ae1b6b52211705dfad7a1c84a5df9d4033 + - key: container.image.name + value: + stringValue: quay.io/signalfx/splunk-otel-collector + - key: container.image.tag + value: + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -689,18 +714,21 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator + - key: k8s.container.name + value: + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: local-path-storage + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: local-path-provisioner-988d74bc-trwfs + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: 3f295075-3465-443e-823f-0335680df445 + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -708,7 +736,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.pod.phase + name: k8s.container.cpu_limit - gauge: dataPoints: - asDouble: 0.2 @@ -718,7 +746,7 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 0f5239bc2a7647625edbf1f6609faa94fcf8c5659cdc362729ccbb0f6435b742 + stringValue: 151ac5c034845edb158fedd5d87752a23a2905492b3dec2850cf6a117512cf82 - key: container.image.name value: stringValue: quay.io/signalfx/splunk-otel-collector @@ -745,10 +773,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -763,13 +791,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: b7048875d08174381238d55c712e9990b1831698a69953d23bb37a26cd93dfc6 + stringValue: 60b8888fd9e2e11a6992dc426c7e67a419bec6a61a204f8e821c465cf5fdf9d9 - key: container.image.name value: - stringValue: docker.io/kindest/kindnetd + stringValue: registry.k8s.io/etcd - key: container.image.tag value: - stringValue: v20240202-8f1494ea + stringValue: 3.5.12-0 - key: customfield1 value: stringValue: customvalue1 @@ -781,7 +809,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kindnet-cni + stringValue: etcd - key: k8s.namespace.name value: stringValue: kube-system @@ -790,10 +818,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-dd8mx + stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 + stringValue: ec288478-6e5e-463e-b900-a9f29557419c - key: metric_source value: stringValue: kubernetes @@ -801,20 +829,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.2 + - asDouble: 0.1 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: dcdf253b455c8f73ecafcccfc41ff6df35be1c64b64c3336e6c6da3bb0fa58cb + stringValue: 6bfa3ff110cd2e70967983553b969999f6b7e3e5e52b30abddb1288fd3c83407 - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: docker.io/kindest/kindnetd - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -826,19 +854,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kindnet-cni - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-r4bfn + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -846,23 +874,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.container.cpu_limit - - gauge: - dataPoints: - - asDouble: 0.2 + - asDouble: 0.1 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 0f5239bc2a7647625edbf1f6609faa94fcf8c5659cdc362729ccbb0f6435b742 + stringValue: 8b1fa3b76748ae76735c10e121d3d438cb13386862121e17d27307a03066abf4 - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -874,19 +899,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: coredns - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg + stringValue: coredns-7db6d8ff4d-qqbhg - key: k8s.pod.uid value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 + stringValue: 1604e134-8a14-46ce-90e7-7c7f2fd09511 - key: metric_source value: stringValue: kubernetes @@ -894,20 +919,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.1 + - asDouble: 0.2 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 6ad0adf04da15ce9624c986151a469755c8a2d80f5682388f79079517de3f7f1 + stringValue: 90c953d5b7e4352a3cb9beeb343d28ae1b6b52211705dfad7a1c84a5df9d4033 - key: container.image.name value: - stringValue: registry.k8s.io/coredns/coredns + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: v1.11.1 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -919,19 +944,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: coredns + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-2k96n + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: e081fcb4-47ae-4927-a08a-8c96276a2574 + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -946,7 +971,7 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 79ccc3e7ec08b3d30eddd27f8e5e9630c1e06b2e6d8f3b2deb62f9e447195820 + stringValue: 93a4e8efb131f65ef1c2062fbab23e0bc7387fe86c57b09cecab8bf161115c64 - key: container.image.name value: stringValue: registry.k8s.io/coredns/coredns @@ -973,10 +998,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-6lfg2 + stringValue: coredns-7db6d8ff4d-22snj - key: k8s.pod.uid value: - stringValue: 79d91568-77b6-4f75-b4aa-4533eb1a4366 + stringValue: 01a383da-9c9b-4692-b0f8-5c5b925efd26 - key: metric_source value: stringValue: kubernetes @@ -984,21 +1009,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.2 + - asDouble: 0.25 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: -<<<<<<< HEAD - stringValue: 2a5891c6055ebcb2aab796034ab47117e538b784d450d036bcba82caf56c0de2 + stringValue: 9f0d8706d9e967186dd8d3a03417736b0db74066c4aafe967c84b4d2cceeafc0 - key: container.image.name value: - stringValue: registry.k8s.io/kube-apiserver + stringValue: registry.k8s.io/kube-apiserver-amd64 - key: container.image.tag value: - stringValue: v1.29.0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -1022,7 +1046,7 @@ resourceMetrics: stringValue: kube-apiserver-kind-control-plane - key: k8s.pod.uid value: - stringValue: a7644cdf-3844-439c-bd8f-dc0760623723 + stringValue: ee10b8e3-33cd-453c-85d5-d74942e20ec2 - key: metric_source value: stringValue: kubernetes @@ -1030,20 +1054,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asDouble: 0.1 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 33ab498497f4b362fd83ec43b1e0c1ad26d37e8dfb524e3ba2a19050a5af59ed + stringValue: a2d12d071803e8eef114a07062c860116f3e04dc73939e1b9e0a1b162419276c - key: container.image.name value: - stringValue: quay.io/splunko11ytest/httpd + stringValue: registry.k8s.io/kube-scheduler-amd64 - key: container.image.tag value: - stringValue: latest + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -1055,19 +1079,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: prometheus-annotation-test + stringValue: kube-scheduler - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: prometheus-annotation-test-cfc77c7b9-xhlhw + stringValue: kube-scheduler-kind-control-plane - key: k8s.pod.uid value: - stringValue: 2a992a4b-e975-4d29-b17c-3288b0043a0e + stringValue: 43149e3a-5678-49c4-951c-9db00c0c96cb - key: metric_source value: stringValue: kubernetes @@ -1075,20 +1099,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asDouble: 0.2 attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 50b808281e95714072a15e744c529bba4c3462043e9bfb45b2bb451ea787dd73 + stringValue: a424f9d4bfdc11c4ebed84131eada8343c38e736108977bf6caf592afc55f99d - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: registry.k8s.io/kube-controller-manager-amd64 - key: container.image.tag value: - stringValue: 0.117.0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -1100,19 +1124,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kube-controller-manager - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-59674d665-tc4ss + stringValue: kube-controller-manager-kind-control-plane - key: k8s.pod.uid value: - stringValue: c751b5f2-0b6b-418f-b71b-606330a83430 + stringValue: 64220258-bf38-4891-941b-60d9242ff1e0 - key: metric_source value: stringValue: kubernetes @@ -1120,20 +1144,23 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + name: k8s.container.cpu_request + - gauge: + dataPoints: + - asInt: "524288000" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 5eb6066cb19df83f23df91e843654e456e334a1fb7eadf2c699fcf5106506b74 + stringValue: 151ac5c034845edb158fedd5d87752a23a2905492b3dec2850cf6a117512cf82 - key: container.image.name value: stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: 0.117.0 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -1154,10 +1181,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-6zqmr + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 4d0c9753-5f12-4ffb-a9c7-da33948c8c7f + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -1165,20 +1192,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "52428800" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 691a447c6f0f931e19e15831507ebf96e742c77315fe17f14dffcfa9dc148f4f + stringValue: 6bfa3ff110cd2e70967983553b969999f6b7e3e5e52b30abddb1288fd3c83407 - key: container.image.name value: - stringValue: docker.io/kindest/local-path-provisioner + stringValue: docker.io/kindest/kindnetd - key: container.image.tag value: - stringValue: v20230511-dc714da8 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -1190,19 +1217,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: local-path-provisioner + stringValue: kindnet-cni - key: k8s.namespace.name value: - stringValue: local-path-storage + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: local-path-provisioner-6f8956fb48-nl7dt + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: e6f3d494-3e4e-4ed4-9f3b-054c9675a785 + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -1210,20 +1237,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "178257920" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 73670e794cf1a1c6b3e5a410cec652bcdb78c02a4793c3ed5beb4e93a0b4c8a2 + stringValue: 8b1fa3b76748ae76735c10e121d3d438cb13386862121e17d27307a03066abf4 - key: container.image.name value: - stringValue: registry.k8s.io/kube-proxy + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: v1.29.0 + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -1235,7 +1262,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-proxy + stringValue: coredns - key: k8s.namespace.name value: stringValue: kube-system @@ -1244,10 +1271,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-proxy-w4pq8 + stringValue: coredns-7db6d8ff4d-qqbhg - key: k8s.pod.uid value: - stringValue: 7b25c613-e655-4679-9ad5-0ef0419f6aa7 + stringValue: 1604e134-8a14-46ce-90e7-7c7f2fd09511 - key: metric_source value: stringValue: kubernetes @@ -1255,29 +1282,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "524288000" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 844cdc39f6c38dfee2410beaf59f434017f01f1600a03601d06acc022b65e7de - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-controller-manager - - key: container.image.tag - value: - stringValue: v1.29.0 -======= - stringValue: 85f7c6f411e7cfd79c796ba001d00e09760c941f0831bca893ff02f6c0b9ece7 + stringValue: 90c953d5b7e4352a3cb9beeb343d28ae1b6b52211705dfad7a1c84a5df9d4033 - key: container.image.name value: - stringValue: registry.k8s.io/kube-controller-manager-amd64 + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: v1.30.0 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -1289,19 +1307,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-controller-manager + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-controller-manager-kind-control-plane + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: 1980550f-bbd3-4eeb-8864-737bf3a9570b + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -1309,20 +1327,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.1 + - asInt: "178257920" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: a929c8132d93ef47b317c71ab579d8bf88db7e9a6504dce556dc85d963067ef7 + stringValue: 93a4e8efb131f65ef1c2062fbab23e0bc7387fe86c57b09cecab8bf161115c64 - key: container.image.name value: - stringValue: registry.k8s.io/kube-scheduler-amd64 + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: v1.30.0 + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -1334,7 +1352,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-scheduler + stringValue: coredns - key: k8s.namespace.name value: stringValue: kube-system @@ -1343,10 +1361,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-scheduler-kind-control-plane + stringValue: coredns-7db6d8ff4d-22snj - key: k8s.pod.uid value: - stringValue: ca1dede1-48a5-43cb-99a9-90a19b071baf + stringValue: 01a383da-9c9b-4692-b0f8-5c5b925efd26 - key: metric_source value: stringValue: kubernetes @@ -1354,23 +1372,23 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.1 + name: k8s.container.memory_limit + - gauge: + dataPoints: + - asInt: "524288000" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: -<<<<<<< HEAD - stringValue: c260d848811ce9c4f324718840ef701569a548e7e769be413d466e1586b6606c -======= - stringValue: b7048875d08174381238d55c712e9990b1831698a69953d23bb37a26cd93dfc6 + stringValue: 151ac5c034845edb158fedd5d87752a23a2905492b3dec2850cf6a117512cf82 - key: container.image.name value: - stringValue: docker.io/kindest/kindnetd + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: v20240202-8f1494ea + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -1382,19 +1400,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kindnet-cni + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-dd8mx + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -1402,15 +1420,14 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.1 + - asInt: "104857600" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: bd4e025b1a90ccbc58d3052af6c882f278bf61589ffe3c47aa4029ddea4a8751 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: 60b8888fd9e2e11a6992dc426c7e67a419bec6a61a204f8e821c465cf5fdf9d9 - key: container.image.name value: stringValue: registry.k8s.io/etcd @@ -1440,7 +1457,7 @@ resourceMetrics: stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 46a99fe6-a3ef-4dae-8026-c6b08411edbe + stringValue: ec288478-6e5e-463e-b900-a9f29557419c - key: metric_source value: stringValue: kubernetes @@ -1448,20 +1465,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.2 + - asInt: "52428800" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: dcdf253b455c8f73ecafcccfc41ff6df35be1c64b64c3336e6c6da3bb0fa58cb + stringValue: 6bfa3ff110cd2e70967983553b969999f6b7e3e5e52b30abddb1288fd3c83407 - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: docker.io/kindest/kindnetd - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -1473,19 +1490,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kindnet-cni - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-r4bfn + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -1493,20 +1510,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asDouble: 0.25 + - asInt: "73400320" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: df7457dbcf77bbaaf7c61601889754797dd446e8333405c4ff6751f0c1e9ef54 + stringValue: 8b1fa3b76748ae76735c10e121d3d438cb13386862121e17d27307a03066abf4 - key: container.image.name value: - stringValue: registry.k8s.io/kube-apiserver-amd64 + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: v1.30.0 + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -1518,7 +1535,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-apiserver + stringValue: coredns - key: k8s.namespace.name value: stringValue: kube-system @@ -1527,10 +1544,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-apiserver-kind-control-plane + stringValue: coredns-7db6d8ff4d-qqbhg - key: k8s.pod.uid value: - stringValue: a99a3190-8680-4b67-ac17-ebc1ae666eb6 + stringValue: 1604e134-8a14-46ce-90e7-7c7f2fd09511 - key: metric_source value: stringValue: kubernetes @@ -1538,9 +1555,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.container.cpu_request - - gauge: - dataPoints: - asInt: "524288000" attributes: - key: cluster_name @@ -1548,7 +1562,7 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 0f5239bc2a7647625edbf1f6609faa94fcf8c5659cdc362729ccbb0f6435b742 + stringValue: 90c953d5b7e4352a3cb9beeb343d28ae1b6b52211705dfad7a1c84a5df9d4033 - key: container.image.name value: stringValue: quay.io/signalfx/splunk-otel-collector @@ -1575,10 +1589,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -1586,14 +1600,14 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "178257920" + - asInt: "73400320" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 6ad0adf04da15ce9624c986151a469755c8a2d80f5682388f79079517de3f7f1 + stringValue: 93a4e8efb131f65ef1c2062fbab23e0bc7387fe86c57b09cecab8bf161115c64 - key: container.image.name value: stringValue: registry.k8s.io/coredns/coredns @@ -1620,10 +1634,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-2k96n + stringValue: coredns-7db6d8ff4d-22snj - key: k8s.pod.uid value: - stringValue: e081fcb4-47ae-4927-a08a-8c96276a2574 + stringValue: 01a383da-9c9b-4692-b0f8-5c5b925efd26 - key: metric_source value: stringValue: kubernetes @@ -1631,20 +1645,23 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "178257920" + name: k8s.container.memory_request + - gauge: + dataPoints: + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 79ccc3e7ec08b3d30eddd27f8e5e9630c1e06b2e6d8f3b2deb62f9e447195820 + stringValue: 151ac5c034845edb158fedd5d87752a23a2905492b3dec2850cf6a117512cf82 - key: container.image.name value: - stringValue: registry.k8s.io/coredns/coredns + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: v1.11.1 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -1656,19 +1673,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: coredns + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-6lfg2 + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 79d91568-77b6-4f75-b4aa-4533eb1a4366 + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -1676,20 +1693,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "52428800" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: b7048875d08174381238d55c712e9990b1831698a69953d23bb37a26cd93dfc6 + stringValue: 60b8888fd9e2e11a6992dc426c7e67a419bec6a61a204f8e821c465cf5fdf9d9 - key: container.image.name value: - stringValue: docker.io/kindest/kindnetd + stringValue: registry.k8s.io/etcd - key: container.image.tag value: - stringValue: v20240202-8f1494ea + stringValue: 3.5.12-0 - key: customfield1 value: stringValue: customvalue1 @@ -1701,7 +1718,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kindnet-cni + stringValue: etcd - key: k8s.namespace.name value: stringValue: kube-system @@ -1710,10 +1727,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-dd8mx + stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 + stringValue: ec288478-6e5e-463e-b900-a9f29557419c - key: metric_source value: stringValue: kubernetes @@ -1721,20 +1738,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "524288000" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: dcdf253b455c8f73ecafcccfc41ff6df35be1c64b64c3336e6c6da3bb0fa58cb + stringValue: 6bfa3ff110cd2e70967983553b969999f6b7e3e5e52b30abddb1288fd3c83407 - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: docker.io/kindest/kindnetd - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -1746,19 +1763,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kindnet-cni - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-r4bfn + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -1766,23 +1783,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.container.memory_limit - - gauge: - dataPoints: - - asInt: "524288000" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 0f5239bc2a7647625edbf1f6609faa94fcf8c5659cdc362729ccbb0f6435b742 + stringValue: 73f0b4c97f9f83b1ec0a961e865b3a49ec4f8cb54d9c3aaf140e36fbf2fecc89 - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v0.105.0 - key: customfield1 value: stringValue: customvalue1 @@ -1794,7 +1808,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: targetallocator - key: k8s.namespace.name value: stringValue: default @@ -1803,10 +1817,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg + stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7-b27r6 - key: k8s.pod.uid value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 + stringValue: 03b714ab-78b4-4dd8-8047-2e647560ecce - key: metric_source value: stringValue: kubernetes @@ -1814,14 +1828,14 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "73400320" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 6ad0adf04da15ce9624c986151a469755c8a2d80f5682388f79079517de3f7f1 + stringValue: 8b1fa3b76748ae76735c10e121d3d438cb13386862121e17d27307a03066abf4 - key: container.image.name value: stringValue: registry.k8s.io/coredns/coredns @@ -1848,10 +1862,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-2k96n + stringValue: coredns-7db6d8ff4d-qqbhg - key: k8s.pod.uid value: - stringValue: e081fcb4-47ae-4927-a08a-8c96276a2574 + stringValue: 1604e134-8a14-46ce-90e7-7c7f2fd09511 - key: metric_source value: stringValue: kubernetes @@ -1859,20 +1873,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "73400320" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 79ccc3e7ec08b3d30eddd27f8e5e9630c1e06b2e6d8f3b2deb62f9e447195820 + stringValue: 90c953d5b7e4352a3cb9beeb343d28ae1b6b52211705dfad7a1c84a5df9d4033 - key: container.image.name value: - stringValue: registry.k8s.io/coredns/coredns + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: v1.11.1 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -1884,19 +1898,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: coredns + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-6lfg2 + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: 79d91568-77b6-4f75-b4aa-4533eb1a4366 + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -1904,20 +1918,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "52428800" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: b7048875d08174381238d55c712e9990b1831698a69953d23bb37a26cd93dfc6 + stringValue: 93a4e8efb131f65ef1c2062fbab23e0bc7387fe86c57b09cecab8bf161115c64 - key: container.image.name value: - stringValue: docker.io/kindest/kindnetd + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: v20240202-8f1494ea + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -1929,7 +1943,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kindnet-cni + stringValue: coredns - key: k8s.namespace.name value: stringValue: kube-system @@ -1938,10 +1952,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-dd8mx + stringValue: coredns-7db6d8ff4d-22snj - key: k8s.pod.uid value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 + stringValue: 01a383da-9c9b-4692-b0f8-5c5b925efd26 - key: metric_source value: stringValue: kubernetes @@ -1949,20 +1963,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "104857600" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: bd4e025b1a90ccbc58d3052af6c882f278bf61589ffe3c47aa4029ddea4a8751 + stringValue: 9f0d8706d9e967186dd8d3a03417736b0db74066c4aafe967c84b4d2cceeafc0 - key: container.image.name value: - stringValue: registry.k8s.io/etcd + stringValue: registry.k8s.io/kube-apiserver-amd64 - key: container.image.tag value: - stringValue: 3.5.12-0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -1974,7 +1988,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: etcd + stringValue: kube-apiserver - key: k8s.namespace.name value: stringValue: kube-system @@ -1983,10 +1997,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: etcd-kind-control-plane + stringValue: kube-apiserver-kind-control-plane - key: k8s.pod.uid value: - stringValue: 46a99fe6-a3ef-4dae-8026-c6b08411edbe + stringValue: ee10b8e3-33cd-453c-85d5-d74942e20ec2 - key: metric_source value: stringValue: kubernetes @@ -1994,20 +2008,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "524288000" + - asInt: "1" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: dcdf253b455c8f73ecafcccfc41ff6df35be1c64b64c3336e6c6da3bb0fa58cb + stringValue: a2d12d071803e8eef114a07062c860116f3e04dc73939e1b9e0a1b162419276c - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: registry.k8s.io/kube-scheduler-amd64 - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2019,19 +2033,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kube-scheduler - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-r4bfn + stringValue: kube-scheduler-kind-control-plane - key: k8s.pod.uid value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 + stringValue: 43149e3a-5678-49c4-951c-9db00c0c96cb - key: metric_source value: stringValue: kubernetes @@ -2039,9 +2053,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.container.memory_request - - gauge: - dataPoints: - asInt: "1" attributes: - key: cluster_name @@ -2049,13 +2060,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 0f5239bc2a7647625edbf1f6609faa94fcf8c5659cdc362729ccbb0f6435b742 + stringValue: a424f9d4bfdc11c4ebed84131eada8343c38e736108977bf6caf592afc55f99d - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: registry.k8s.io/kube-controller-manager-amd64 - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2067,19 +2078,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kube-controller-manager - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg + stringValue: kube-controller-manager-kind-control-plane - key: k8s.pod.uid value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 + stringValue: 64220258-bf38-4891-941b-60d9242ff1e0 - key: metric_source value: stringValue: kubernetes @@ -2094,23 +2105,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: -<<<<<<< HEAD - stringValue: e26453afede340680ddff9cde881a88300ce30b850f21e7f05703c0c341e3726 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-scheduler - - key: container.image.tag - value: - stringValue: v1.29.0 -======= - stringValue: 3b00c3f1d5e92b1cc41079829523316a7aab3519ccaf4c0c4bbb3dbeb7b4c67e + stringValue: b7d1bb6c0494a6c96aff1ab9773855b0c0967e0748ca51f56c65670ce2860aaa - key: container.image.name value: - stringValue: registry.k8s.io/kube-proxy-amd64 + stringValue: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator - key: container.image.tag value: - stringValue: v1.30.0 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: 0.117.0 - key: customfield1 value: stringValue: customvalue1 @@ -2122,30 +2123,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: -<<<<<<< HEAD - stringValue: kube-scheduler -======= - stringValue: kube-proxy ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: manager - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: -<<<<<<< HEAD - stringValue: kube-scheduler-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 966d4695-d046-4416-927d-8162dbaab50b -======= - stringValue: kube-proxy-nmblc + stringValue: sock-operator-7dc9bb794d-mm4xk - key: k8s.pod.uid value: - stringValue: 67814461-979c-4a2a-9e1e-886219ca48b9 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: 027c506b-a62f-4ff9-97e6-9ee317a7b954 - key: metric_source value: stringValue: kubernetes @@ -2160,16 +2150,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: -<<<<<<< HEAD - stringValue: f463a6bb8e665cbe3927a3e0ae395a54955cdf6228c2957da1e925807d9f816f -======= - stringValue: 493ae1c9b912b74181382bbd547760d7891099a8ac67ab726b94e267055c94bf + stringValue: b876752820128b2998ca67f371ee74083b7ca65e80a221a97774e91c8118e5a5 - key: container.image.name value: - stringValue: quay.io/jetstack/cert-manager-cainjector + stringValue: registry.k8s.io/kube-proxy-amd64 - key: container.image.tag value: - stringValue: v1.14.4 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2181,19 +2168,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: cert-manager-cainjector + stringValue: kube-proxy - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-cainjector-85d499d4cc-74qtd + stringValue: kube-proxy-t8rhm - key: k8s.pod.uid value: - stringValue: 87792135-b13b-456b-93f8-49f1f8fe387a + stringValue: f870dffd-b0c8-41b8-aff0-9d78f7d70fd2 - key: metric_source value: stringValue: kubernetes @@ -2208,14 +2195,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 4e353df40498f00219c12516fb733c031c3a4a856642eebd7347f79f2eb82f38 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: ce0c3e7262d2a5b1ce8302f43f9296c0a464ecb4a73dda9a7d0fcf16bf47f3b4 - key: container.image.name value: - stringValue: quay.io/brancz/kube-rbac-proxy + stringValue: docker.io/kindest/local-path-provisioner - key: container.image.tag value: - stringValue: v0.18.1 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -2227,19 +2213,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-rbac-proxy + stringValue: local-path-provisioner - key: k8s.namespace.name value: - stringValue: default + stringValue: local-path-storage - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-operator-7dc9bb794d-prbbv + stringValue: local-path-provisioner-988d74bc-4jktk - key: k8s.pod.uid value: - stringValue: 20520f3f-b20f-4fbf-8599-eff795f71394 + stringValue: 7b0ba1b1-c561-4db0-82ae-83d1d061fc6b - key: metric_source value: stringValue: kubernetes @@ -2254,13 +2240,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 6a57c87a52f0c629d16a297a53653c91f2219ef4439bb5cce74fe317227ffeb2 + stringValue: e464f51fbcd84cd7bb394afb3b4441ae35261c1b5ce96a8feacd1e5a3b890840 - key: container.image.name value: - stringValue: quay.io/jetstack/cert-manager-webhook + stringValue: quay.io/brancz/kube-rbac-proxy - key: container.image.tag value: - stringValue: v1.14.4 + stringValue: v0.18.1 - key: customfield1 value: stringValue: customvalue1 @@ -2272,19 +2258,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: cert-manager-webhook + stringValue: kube-rbac-proxy - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-webhook-d499d9459-qvlwd + stringValue: sock-operator-7dc9bb794d-mm4xk - key: k8s.pod.uid value: - stringValue: c942d73c-5605-4d76-877c-23908fdc7a66 + stringValue: 027c506b-a62f-4ff9-97e6-9ee317a7b954 - key: metric_source value: stringValue: kubernetes @@ -2299,13 +2285,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 6ad0adf04da15ce9624c986151a469755c8a2d80f5682388f79079517de3f7f1 + stringValue: f963c3690233ab622a41f780421a1a2ea6144282fc7de403da2fa141f1d0cd0c - key: container.image.name value: - stringValue: registry.k8s.io/coredns/coredns + stringValue: quay.io/splunko11ytest/httpd - key: container.image.tag value: - stringValue: v1.11.1 + stringValue: latest - key: customfield1 value: stringValue: customvalue1 @@ -2317,19 +2303,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: coredns + stringValue: prometheus-annotation-test - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-2k96n + stringValue: prometheus-annotation-test-85c8b9cd98-kqr6r - key: k8s.pod.uid value: - stringValue: e081fcb4-47ae-4927-a08a-8c96276a2574 + stringValue: 48d30f05-2032-4eba-9bd1-8652c5ff92a4 - key: metric_source value: stringValue: kubernetes @@ -2337,20 +2323,23 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + name: k8s.container.ready + - gauge: + dataPoints: + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 79ccc3e7ec08b3d30eddd27f8e5e9630c1e06b2e6d8f3b2deb62f9e447195820 + stringValue: 151ac5c034845edb158fedd5d87752a23a2905492b3dec2850cf6a117512cf82 - key: container.image.name value: - stringValue: registry.k8s.io/coredns/coredns + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: v1.11.1 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -2362,19 +2351,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: coredns + stringValue: otel-collector - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-7db6d8ff4d-6lfg2 + stringValue: sock-splunk-otel-collector-agent-bf6p8 - key: k8s.pod.uid value: - stringValue: 79d91568-77b6-4f75-b4aa-4533eb1a4366 + stringValue: 5ed558b0-932f-421b-bc45-ac1ceacb9d55 - key: metric_source value: stringValue: kubernetes @@ -2382,20 +2371,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 85f7c6f411e7cfd79c796ba001d00e09760c941f0831bca893ff02f6c0b9ece7 + stringValue: 60b8888fd9e2e11a6992dc426c7e67a419bec6a61a204f8e821c465cf5fdf9d9 - key: container.image.name value: - stringValue: registry.k8s.io/kube-controller-manager-amd64 + stringValue: registry.k8s.io/etcd - key: container.image.tag value: - stringValue: v1.30.0 + stringValue: 3.5.12-0 - key: customfield1 value: stringValue: customvalue1 @@ -2407,7 +2396,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-controller-manager + stringValue: etcd - key: k8s.namespace.name value: stringValue: kube-system @@ -2416,10 +2405,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-controller-manager-kind-control-plane + stringValue: etcd-kind-control-plane - key: k8s.pod.uid value: - stringValue: 1980550f-bbd3-4eeb-8864-737bf3a9570b + stringValue: ec288478-6e5e-463e-b900-a9f29557419c - key: metric_source value: stringValue: kubernetes @@ -2427,20 +2416,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 8c8a156fefa39b6b3a0f16574de845aac7d1eb3fed262aef79b2e6a43b2c853d + stringValue: 6bfa3ff110cd2e70967983553b969999f6b7e3e5e52b30abddb1288fd3c83407 - key: container.image.name value: - stringValue: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator + stringValue: docker.io/kindest/kindnetd - key: container.image.tag value: - stringValue: v0.105.0 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -2452,19 +2441,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: targetallocator + stringValue: kindnet-cni - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7-gf5zl + stringValue: kindnet-2lwdm - key: k8s.pod.uid value: - stringValue: 144662ce-f00f-47b2-adf5-fa6c0d90faaa + stringValue: d2e98583-0f69-48ce-b5c9-d8c2849ebb87 - key: metric_source value: stringValue: kubernetes @@ -2472,20 +2461,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: a4b38d3d2b4ead39063d15d25342621b80d5b68e849afa9947cb6269e1c1c9b5 + stringValue: 73f0b4c97f9f83b1ec0a961e865b3a49ec4f8cb54d9c3aaf140e36fbf2fecc89 - key: container.image.name value: - stringValue: docker.io/kindest/local-path-provisioner + stringValue: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator - key: container.image.tag value: - stringValue: v20240202-8f1494ea + stringValue: v0.105.0 - key: customfield1 value: stringValue: customvalue1 @@ -2497,19 +2486,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: local-path-provisioner + stringValue: targetallocator - key: k8s.namespace.name value: - stringValue: local-path-storage + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: local-path-provisioner-988d74bc-trwfs + stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7-b27r6 - key: k8s.pod.uid value: - stringValue: 3f295075-3465-443e-823f-0335680df445 + stringValue: 03b714ab-78b4-4dd8-8047-2e647560ecce - key: metric_source value: stringValue: kubernetes @@ -2517,20 +2506,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: a929c8132d93ef47b317c71ab579d8bf88db7e9a6504dce556dc85d963067ef7 + stringValue: 8b1fa3b76748ae76735c10e121d3d438cb13386862121e17d27307a03066abf4 - key: container.image.name value: - stringValue: registry.k8s.io/kube-scheduler-amd64 + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: v1.30.0 + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -2542,7 +2531,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-scheduler + stringValue: coredns - key: k8s.namespace.name value: stringValue: kube-system @@ -2551,10 +2540,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-scheduler-kind-control-plane + stringValue: coredns-7db6d8ff4d-qqbhg - key: k8s.pod.uid value: - stringValue: ca1dede1-48a5-43cb-99a9-90a19b071baf + stringValue: 1604e134-8a14-46ce-90e7-7c7f2fd09511 - key: metric_source value: stringValue: kubernetes @@ -2562,20 +2551,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: b66d9590795c3daf51a686861634e15fa3b8092f192a8d3aac6664eb41862350 + stringValue: 90c953d5b7e4352a3cb9beeb343d28ae1b6b52211705dfad7a1c84a5df9d4033 - key: container.image.name value: - stringValue: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator + stringValue: quay.io/signalfx/splunk-otel-collector - key: container.image.tag value: - stringValue: 0.117.0 + stringValue: 0.119.0 - key: customfield1 value: stringValue: customvalue1 @@ -2587,7 +2576,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: manager + stringValue: otel-collector - key: k8s.namespace.name value: stringValue: default @@ -2596,10 +2585,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-operator-7dc9bb794d-prbbv + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f6988792ptxr - key: k8s.pod.uid value: - stringValue: 20520f3f-b20f-4fbf-8599-eff795f71394 + stringValue: 6b6983cc-00a1-4265-abd6-1f3a61e45475 - key: metric_source value: stringValue: kubernetes @@ -2607,20 +2596,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: b7048875d08174381238d55c712e9990b1831698a69953d23bb37a26cd93dfc6 + stringValue: 93a4e8efb131f65ef1c2062fbab23e0bc7387fe86c57b09cecab8bf161115c64 - key: container.image.name value: - stringValue: docker.io/kindest/kindnetd + stringValue: registry.k8s.io/coredns/coredns - key: container.image.tag value: - stringValue: v20240202-8f1494ea + stringValue: v1.11.1 - key: customfield1 value: stringValue: customvalue1 @@ -2632,7 +2621,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kindnet-cni + stringValue: coredns - key: k8s.namespace.name value: stringValue: kube-system @@ -2641,10 +2630,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-dd8mx + stringValue: coredns-7db6d8ff4d-22snj - key: k8s.pod.uid value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 + stringValue: 01a383da-9c9b-4692-b0f8-5c5b925efd26 - key: metric_source value: stringValue: kubernetes @@ -2652,20 +2641,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: bd4e025b1a90ccbc58d3052af6c882f278bf61589ffe3c47aa4029ddea4a8751 + stringValue: 9f0d8706d9e967186dd8d3a03417736b0db74066c4aafe967c84b4d2cceeafc0 - key: container.image.name value: - stringValue: registry.k8s.io/etcd + stringValue: registry.k8s.io/kube-apiserver-amd64 - key: container.image.tag value: - stringValue: 3.5.12-0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2677,7 +2666,7 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: etcd + stringValue: kube-apiserver - key: k8s.namespace.name value: stringValue: kube-system @@ -2686,10 +2675,10 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: etcd-kind-control-plane + stringValue: kube-apiserver-kind-control-plane - key: k8s.pod.uid value: - stringValue: 46a99fe6-a3ef-4dae-8026-c6b08411edbe + stringValue: ee10b8e3-33cd-453c-85d5-d74942e20ec2 - key: metric_source value: stringValue: kubernetes @@ -2697,20 +2686,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: c97dbbb60d36cc359c19e041096a09b7e9f79399805b32e0b7a903e3f5721921 + stringValue: a2d12d071803e8eef114a07062c860116f3e04dc73939e1b9e0a1b162419276c - key: container.image.name value: - stringValue: quay.io/jetstack/cert-manager-controller + stringValue: registry.k8s.io/kube-scheduler-amd64 - key: container.image.tag value: - stringValue: v1.14.4 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2722,19 +2711,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: cert-manager-controller + stringValue: kube-scheduler - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: cert-manager-5d864474d-6fgxj + stringValue: kube-scheduler-kind-control-plane - key: k8s.pod.uid value: - stringValue: 7918d738-3243-4a2e-855c-526270da5014 + stringValue: 43149e3a-5678-49c4-951c-9db00c0c96cb - key: metric_source value: stringValue: kubernetes @@ -2742,20 +2731,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: dcdf253b455c8f73ecafcccfc41ff6df35be1c64b64c3336e6c6da3bb0fa58cb + stringValue: a424f9d4bfdc11c4ebed84131eada8343c38e736108977bf6caf592afc55f99d - key: container.image.name value: - stringValue: quay.io/signalfx/splunk-otel-collector + stringValue: registry.k8s.io/kube-controller-manager-amd64 - key: container.image.tag value: - stringValue: 0.119.0 + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2767,19 +2756,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: otel-collector + stringValue: kube-controller-manager - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-agent-r4bfn + stringValue: kube-controller-manager-kind-control-plane - key: k8s.pod.uid value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 + stringValue: 64220258-bf38-4891-941b-60d9242ff1e0 - key: metric_source value: stringValue: kubernetes @@ -2787,20 +2776,20 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: df7457dbcf77bbaaf7c61601889754797dd446e8333405c4ff6751f0c1e9ef54 + stringValue: b7d1bb6c0494a6c96aff1ab9773855b0c0967e0748ca51f56c65670ce2860aaa - key: container.image.name value: - stringValue: registry.k8s.io/kube-apiserver-amd64 + stringValue: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator - key: container.image.tag value: - stringValue: v1.30.0 + stringValue: 0.117.0 - key: customfield1 value: stringValue: customvalue1 @@ -2812,19 +2801,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kube-apiserver + stringValue: manager - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kube-apiserver-kind-control-plane + stringValue: sock-operator-7dc9bb794d-mm4xk - key: k8s.pod.uid value: - stringValue: a99a3190-8680-4b67-ac17-ebc1ae666eb6 + stringValue: 027c506b-a62f-4ff9-97e6-9ee317a7b954 - key: metric_source value: stringValue: kubernetes @@ -2832,9 +2821,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.container.ready - - gauge: - dataPoints: - asInt: "0" attributes: - key: cluster_name @@ -2842,14 +2828,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: -<<<<<<< HEAD - stringValue: 003d3d03d91f08af36531d2160e85d83b3c497371e47017e42f21c538694b1b7 + stringValue: b876752820128b2998ca67f371ee74083b7ca65e80a221a97774e91c8118e5a5 - key: container.image.name value: - stringValue: quay.io/splunko11ytest/dotnet_test + stringValue: registry.k8s.io/kube-proxy-amd64 - key: container.image.tag value: - stringValue: latest + stringValue: v1.30.0 - key: customfield1 value: stringValue: customvalue1 @@ -2861,19 +2846,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: dotnet-test + stringValue: kube-proxy - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: dotnet-test-5479c475fc-8xpcw + stringValue: kube-proxy-t8rhm - key: k8s.pod.uid value: - stringValue: c28fcde1-8d20-4cfc-a975-8b2c08de526f + stringValue: f870dffd-b0c8-41b8-aff0-9d78f7d70fd2 - key: metric_source value: stringValue: kubernetes @@ -2888,13 +2873,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 004389c5623d8aabe7d71bb7a33cf264f880ed445a250140b686b6faf5976200 + stringValue: ce0c3e7262d2a5b1ce8302f43f9296c0a464ecb4a73dda9a7d0fcf16bf47f3b4 - key: container.image.name value: - stringValue: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator + stringValue: docker.io/kindest/local-path-provisioner - key: container.image.tag value: - stringValue: v0.105.0 + stringValue: v20240202-8f1494ea - key: customfield1 value: stringValue: customvalue1 @@ -2906,19 +2891,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: targetallocator + stringValue: local-path-provisioner - key: k8s.namespace.name value: - stringValue: default + stringValue: local-path-storage - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: sock-splunk-otel-collector-ta-7f6c9fdf4-26wmp + stringValue: local-path-provisioner-988d74bc-4jktk - key: k8s.pod.uid value: - stringValue: f4b8c20e-1dad-4eec-a849-6a15e9a08156 + stringValue: 7b0ba1b1-c561-4db0-82ae-83d1d061fc6b - key: metric_source value: stringValue: kubernetes @@ -2933,13 +2918,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 08712584e737fe9c61d06351d7b205d6344a412e5f8231863cd7b591d2ebe729 + stringValue: e464f51fbcd84cd7bb394afb3b4441ae35261c1b5ce96a8feacd1e5a3b890840 - key: container.image.name value: - stringValue: registry.k8s.io/coredns/coredns + stringValue: quay.io/brancz/kube-rbac-proxy - key: container.image.tag value: - stringValue: v1.11.1 + stringValue: v0.18.1 - key: customfield1 value: stringValue: customvalue1 @@ -2951,19 +2936,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: coredns + stringValue: kube-rbac-proxy - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: coredns-76f75df574-j6vjb + stringValue: sock-operator-7dc9bb794d-mm4xk - key: k8s.pod.uid value: - stringValue: c0dd36df-1e0c-4feb-b1b7-419681595dd2 + stringValue: 027c506b-a62f-4ff9-97e6-9ee317a7b954 - key: metric_source value: stringValue: kubernetes @@ -2978,13 +2963,13 @@ resourceMetrics: stringValue: ci-k8s-cluster - key: container.id value: - stringValue: 15ff7b753a6950674b9e78ec8274e73bd135699d5e2e5744e22287da8d27fadc + stringValue: f963c3690233ab622a41f780421a1a2ea6144282fc7de403da2fa141f1d0cd0c - key: container.image.name value: - stringValue: docker.io/kindest/kindnetd + stringValue: quay.io/splunko11ytest/httpd - key: container.image.tag value: - stringValue: v20230511-dc714da8 + stringValue: latest - key: customfield1 value: stringValue: customvalue1 @@ -2996,19 +2981,19 @@ resourceMetrics: stringValue: dev-operator - key: k8s.container.name value: - stringValue: kindnet-cni + stringValue: prometheus-annotation-test - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: k8s.node.name value: stringValue: kind-control-plane - key: k8s.pod.name value: - stringValue: kindnet-b4pd7 + stringValue: prometheus-annotation-test-85c8b9cd98-kqr6r - key: k8s.pod.uid value: - stringValue: 5c574843-642d-4ba6-bfd8-9aa160827de3 + stringValue: 48d30f05-2032-4eba-9bd1-8652c5ff92a4 - key: metric_source value: stringValue: kubernetes @@ -3016,1281 +3001,9 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 2a5891c6055ebcb2aab796034ab47117e538b784d450d036bcba82caf56c0de2 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-apiserver - - key: container.image.tag - value: - stringValue: v1.29.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-apiserver - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kube-apiserver-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: a7644cdf-3844-439c-bd8f-dc0760623723 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 33ab498497f4b362fd83ec43b1e0c1ad26d37e8dfb524e3ba2a19050a5af59ed - - key: container.image.name - value: - stringValue: quay.io/splunko11ytest/httpd - - key: container.image.tag - value: - stringValue: latest - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: prometheus-annotation-test - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: prometheus-annotation-test-cfc77c7b9-xhlhw - - key: k8s.pod.uid - value: - stringValue: 2a992a4b-e975-4d29-b17c-3288b0043a0e - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 50b808281e95714072a15e744c529bba4c3462043e9bfb45b2bb451ea787dd73 -======= - stringValue: 0f5239bc2a7647625edbf1f6609faa94fcf8c5659cdc362729ccbb0f6435b742 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - key: container.image.name - value: - stringValue: quay.io/signalfx/splunk-otel-collector - - key: container.image.tag - value: - stringValue: 0.119.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: otel-collector - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84bzbfpg - - key: k8s.pod.uid - value: - stringValue: 0498823c-4da8-431a-83c8-8243fd6058e7 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 3b00c3f1d5e92b1cc41079829523316a7aab3519ccaf4c0c4bbb3dbeb7b4c67e - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-proxy-amd64 - - key: container.image.tag - value: - stringValue: v1.30.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-proxy - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kube-proxy-nmblc - - key: k8s.pod.uid - value: - stringValue: 67814461-979c-4a2a-9e1e-886219ca48b9 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: -<<<<<<< HEAD - stringValue: 844cdc39f6c38dfee2410beaf59f434017f01f1600a03601d06acc022b65e7de - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-controller-manager - - key: container.image.tag - value: - stringValue: v1.29.0 -======= - stringValue: 493ae1c9b912b74181382bbd547760d7891099a8ac67ab726b94e267055c94bf - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-cainjector - - key: container.image.tag - value: - stringValue: v1.14.4 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: -<<<<<<< HEAD - stringValue: kube-controller-manager - - key: k8s.namespace.name - value: - stringValue: kube-system -======= - stringValue: cert-manager-cainjector - - key: k8s.namespace.name - value: - stringValue: cert-manager ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: -<<<<<<< HEAD - stringValue: kube-controller-manager-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 80d09637-319b-4208-a062-393533fbf2ac -======= - stringValue: cert-manager-cainjector-85d499d4cc-74qtd - - key: k8s.pod.uid - value: - stringValue: 87792135-b13b-456b-93f8-49f1f8fe387a ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: -<<<<<<< HEAD - stringValue: afc7413fdca060dddc8be931db2d2974c5348f058d7267fd13830251ad78fd69 - - key: container.image.name - value: - stringValue: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator - - key: container.image.tag - value: - stringValue: 0.110.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: manager - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: sock-operator-869bddff5c-q62nw - - key: k8s.pod.uid - value: - stringValue: 60ad83a5-2a3f-4943-91a5-5cf771eb42c9 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: c260d848811ce9c4f324718840ef701569a548e7e769be413d466e1586b6606c - - key: container.image.name - value: - stringValue: registry.k8s.io/etcd - - key: container.image.tag - value: - stringValue: 3.5.10-0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: etcd - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: etcd-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 53f92a39-92e9-4ae4-b3e5-6f32ac6fb705 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: e26453afede340680ddff9cde881a88300ce30b850f21e7f05703c0c341e3726 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-scheduler - - key: container.image.tag - value: - stringValue: v1.29.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-scheduler - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kube-scheduler-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 966d4695-d046-4416-927d-8162dbaab50b - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: f463a6bb8e665cbe3927a3e0ae395a54955cdf6228c2957da1e925807d9f816f -======= - stringValue: 4e353df40498f00219c12516fb733c031c3a4a856642eebd7347f79f2eb82f38 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - key: container.image.name - value: - stringValue: quay.io/brancz/kube-rbac-proxy - - key: container.image.tag - value: - stringValue: v0.18.1 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-rbac-proxy - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: sock-operator-7dc9bb794d-prbbv - - key: k8s.pod.uid - value: - stringValue: 20520f3f-b20f-4fbf-8599-eff795f71394 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 6a57c87a52f0c629d16a297a53653c91f2219ef4439bb5cce74fe317227ffeb2 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-webhook - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-webhook - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-webhook-d499d9459-qvlwd - - key: k8s.pod.uid - value: - stringValue: c942d73c-5605-4d76-877c-23908fdc7a66 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 6ad0adf04da15ce9624c986151a469755c8a2d80f5682388f79079517de3f7f1 - - key: container.image.name - value: - stringValue: registry.k8s.io/coredns/coredns - - key: container.image.tag - value: - stringValue: v1.11.1 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: coredns - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: coredns-7db6d8ff4d-2k96n - - key: k8s.pod.uid - value: - stringValue: e081fcb4-47ae-4927-a08a-8c96276a2574 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 79ccc3e7ec08b3d30eddd27f8e5e9630c1e06b2e6d8f3b2deb62f9e447195820 - - key: container.image.name - value: - stringValue: registry.k8s.io/coredns/coredns - - key: container.image.tag - value: - stringValue: v1.11.1 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: coredns - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: coredns-7db6d8ff4d-6lfg2 - - key: k8s.pod.uid - value: - stringValue: 79d91568-77b6-4f75-b4aa-4533eb1a4366 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 85f7c6f411e7cfd79c796ba001d00e09760c941f0831bca893ff02f6c0b9ece7 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-controller-manager-amd64 - - key: container.image.tag - value: - stringValue: v1.30.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-controller-manager - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kube-controller-manager-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 1980550f-bbd3-4eeb-8864-737bf3a9570b - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: 8c8a156fefa39b6b3a0f16574de845aac7d1eb3fed262aef79b2e6a43b2c853d - - key: container.image.name - value: - stringValue: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator - - key: container.image.tag - value: - stringValue: v0.105.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: targetallocator - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7-gf5zl - - key: k8s.pod.uid - value: - stringValue: 144662ce-f00f-47b2-adf5-fa6c0d90faaa - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: a4b38d3d2b4ead39063d15d25342621b80d5b68e849afa9947cb6269e1c1c9b5 - - key: container.image.name - value: - stringValue: docker.io/kindest/local-path-provisioner - - key: container.image.tag - value: - stringValue: v20240202-8f1494ea - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: local-path-provisioner - - key: k8s.namespace.name - value: - stringValue: local-path-storage - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: local-path-provisioner-988d74bc-trwfs - - key: k8s.pod.uid - value: - stringValue: 3f295075-3465-443e-823f-0335680df445 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: a929c8132d93ef47b317c71ab579d8bf88db7e9a6504dce556dc85d963067ef7 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-scheduler-amd64 - - key: container.image.tag - value: - stringValue: v1.30.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-scheduler - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kube-scheduler-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: ca1dede1-48a5-43cb-99a9-90a19b071baf - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: b66d9590795c3daf51a686861634e15fa3b8092f192a8d3aac6664eb41862350 - - key: container.image.name - value: - stringValue: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator - - key: container.image.tag - value: - stringValue: 0.117.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: manager - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: sock-operator-7dc9bb794d-prbbv - - key: k8s.pod.uid - value: - stringValue: 20520f3f-b20f-4fbf-8599-eff795f71394 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: b7048875d08174381238d55c712e9990b1831698a69953d23bb37a26cd93dfc6 - - key: container.image.name - value: - stringValue: docker.io/kindest/kindnetd - - key: container.image.tag - value: - stringValue: v20240202-8f1494ea - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kindnet-cni - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kindnet-dd8mx - - key: k8s.pod.uid - value: - stringValue: 73c54202-5d6d-436f-87d6-2c6119b2f9e0 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: bd4e025b1a90ccbc58d3052af6c882f278bf61589ffe3c47aa4029ddea4a8751 - - key: container.image.name - value: - stringValue: registry.k8s.io/etcd - - key: container.image.tag - value: - stringValue: 3.5.12-0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: etcd - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: etcd-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: 46a99fe6-a3ef-4dae-8026-c6b08411edbe - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: c97dbbb60d36cc359c19e041096a09b7e9f79399805b32e0b7a903e3f5721921 - - key: container.image.name - value: - stringValue: quay.io/jetstack/cert-manager-controller - - key: container.image.tag - value: - stringValue: v1.14.4 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: cert-manager-controller - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: cert-manager-5d864474d-6fgxj - - key: k8s.pod.uid - value: - stringValue: 7918d738-3243-4a2e-855c-526270da5014 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: dcdf253b455c8f73ecafcccfc41ff6df35be1c64b64c3336e6c6da3bb0fa58cb - - key: container.image.name - value: - stringValue: quay.io/signalfx/splunk-otel-collector - - key: container.image.tag - value: - stringValue: 0.119.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: otel-collector - - key: k8s.namespace.name - value: - stringValue: default - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: sock-splunk-otel-collector-agent-r4bfn - - key: k8s.pod.uid - value: - stringValue: 4d16bfb7-27df-4990-9f55-293c282cde65 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "0" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: container.id - value: - stringValue: df7457dbcf77bbaaf7c61601889754797dd446e8333405c4ff6751f0c1e9ef54 - - key: container.image.name - value: - stringValue: registry.k8s.io/kube-apiserver-amd64 - - key: container.image.tag - value: - stringValue: v1.30.0 - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.container.name - value: - stringValue: kube-apiserver - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.node.name - value: - stringValue: kind-control-plane - - key: k8s.pod.name - value: - stringValue: kube-apiserver-kind-control-plane - - key: k8s.pod.uid - value: - stringValue: a99a3190-8680-4b67-ac17-ebc1ae666eb6 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - name: k8s.container.restarts - - gauge: - dataPoints: - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: -<<<<<<< HEAD -======= - stringValue: cert-manager - - key: k8s.namespace.uid - value: - stringValue: ac79c59b-b73b-415c-a981-315ca3d351cd - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - stringValue: default - - key: k8s.namespace.uid - value: - stringValue: 291c3fb5-4806-4d26-84d8-50a54e2fd156 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: kube-node-lease - - key: k8s.namespace.uid - value: - stringValue: fc40c878-7e52-4cc6-b8f4-1d696718bf35 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: kube-public - - key: k8s.namespace.uid - value: - stringValue: 595a2e47-377a-467c-b4db-73d4b9bed9fb - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: kube-system - - key: k8s.namespace.uid - value: - stringValue: 0e62fdcd-a81c-4648-9acc-3624717f31f8 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: local-path-storage - - key: k8s.namespace.uid - value: - stringValue: c6d8ea53-b00c-48c6-9554-cc2d5c5e131c - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: ns-w-exclude - - key: k8s.namespace.uid - value: - stringValue: 27d96c42-7585-4c83-819e-5d67d532a3a4 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: ns-w-index - - key: k8s.namespace.uid - value: - stringValue: e6baf89e-b6b5-4217-b7f5-17a712a22f77 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: ns-wo-index - - key: k8s.namespace.uid - value: - stringValue: 613478ec-3c82-4e71-9f8b-b16ebe18e925 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - name: k8s.namespace.phase + name: k8s.container.restarts - gauge: dataPoints: -<<<<<<< HEAD -======= - asInt: "1" attributes: - key: cluster_name @@ -4305,45 +3018,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager - - key: k8s.deployment.uid - value: - stringValue: 91cb6788-57ea-45c2-ad32-0bb715214bc8 - key: k8s.namespace.name value: - stringValue: cert-manager - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-cainjector - - key: k8s.deployment.uid - value: - stringValue: 1154addc-117b-45bb-96d7-57f162f5c979 - - key: k8s.namespace.name + stringValue: default + - key: k8s.namespace.uid value: - stringValue: cert-manager + stringValue: aef150f4-f3d1-49b7-ae56-d56051405b0f - key: metric_source value: stringValue: kubernetes @@ -4365,15 +3045,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: cert-manager-webhook - - key: k8s.deployment.uid - value: - stringValue: bbdc1118-0c06-4d1a-8a02-dc9ed338ae7d - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: kube-node-lease + - key: k8s.namespace.uid + value: + stringValue: bf76f7b9-f9f8-496b-a8f0-e0c5292bea34 - key: metric_source value: stringValue: kubernetes @@ -4381,8 +3058,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - asInt: "2" + - asInt: "1" attributes: - key: cluster_name value: @@ -4396,15 +3072,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: coredns - - key: k8s.deployment.uid - value: - stringValue: c865a900-1f74-4a69-85ef-07ffecfe8522 - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: kube-public + - key: k8s.namespace.uid + value: + stringValue: 4f515de2-a78d-42d9-8407-021bfc460283 - key: metric_source value: stringValue: kubernetes @@ -4412,7 +3085,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" + - asInt: "1" attributes: - key: cluster_name value: @@ -4426,15 +3099,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: dotnet-test - - key: k8s.deployment.uid - value: - stringValue: e246c9bf-d399-42bc-97bd-df87f8b36cd1 - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system + - key: k8s.namespace.uid + value: + stringValue: 36954709-f323-4a1b-bc9d-a9a748100fab - key: metric_source value: stringValue: kubernetes @@ -4442,7 +3112,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" + - asInt: "1" attributes: - key: cluster_name value: @@ -4456,15 +3126,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: java-test - - key: k8s.deployment.uid - value: - stringValue: d21015eb-6116-41c0-a7db-8b81a8bff725 - key: k8s.namespace.name value: - stringValue: default + stringValue: local-path-storage + - key: k8s.namespace.uid + value: + stringValue: ecfad0f3-5671-4fdc-ba3c-3a4b8b923b0e - key: metric_source value: stringValue: kubernetes @@ -4486,15 +3153,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: local-path-provisioner - - key: k8s.deployment.uid - value: - stringValue: 602b50f2-a2fc-4bd4-8f37-f264423156e6 - key: k8s.namespace.name value: - stringValue: local-path-storage + stringValue: ns-w-exclude + - key: k8s.namespace.uid + value: + stringValue: cb00b842-503b-4ce0-a01e-881e18209435 - key: metric_source value: stringValue: kubernetes @@ -4502,7 +3166,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" + - asInt: "1" attributes: - key: cluster_name value: @@ -4516,15 +3180,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: nodejs-test - - key: k8s.deployment.uid - value: - stringValue: d58c784b-442b-4b6d-9f4f-23b8dab8c3f3 - key: k8s.namespace.name value: - stringValue: default + stringValue: ns-w-index + - key: k8s.namespace.uid + value: + stringValue: ac95ef44-b201-4c80-bb3c-94f5b421a4d3 - key: metric_source value: stringValue: kubernetes @@ -4532,7 +3193,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" + - asInt: "1" attributes: - key: cluster_name value: @@ -4546,15 +3207,12 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.deployment.name - value: - stringValue: prometheus-annotation-test - - key: k8s.deployment.uid - value: - stringValue: 23dfdd11-cb02-494d-aa8a-0116e5d841f2 - key: k8s.namespace.name value: - stringValue: default + stringValue: ns-wo-index + - key: k8s.namespace.uid + value: + stringValue: 877769fb-b937-4275-960e-6d54792790ae - key: metric_source value: stringValue: kubernetes @@ -4562,7 +3220,10 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" + name: k8s.namespace.phase + - gauge: + dataPoints: + - asInt: "2" attributes: - key: cluster_name value: @@ -4578,13 +3239,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: python-test + stringValue: coredns - key: k8s.deployment.uid value: - stringValue: 61cbac2e-da1b-42a0-b0de-91895ea8390c + stringValue: 6c4107da-d627-4e03-9aa3-8abf8061c503 - key: k8s.namespace.name value: - stringValue: default + stringValue: kube-system - key: metric_source value: stringValue: kubernetes @@ -4592,7 +3253,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: @@ -4608,10 +3269,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: sock-operator + stringValue: dotnet-test - key: k8s.deployment.uid value: - stringValue: c8e6168d-79bb-4f5e-aaca-e73591757bbc + stringValue: b8ba790e-7d52-42bc-8a87-b7be18688f3f - key: k8s.namespace.name value: stringValue: default @@ -4622,7 +3283,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: @@ -4638,10 +3299,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver + stringValue: java-test - key: k8s.deployment.uid value: - stringValue: f0387cdc-86ef-44f1-846c-0654cbb8c953 + stringValue: 25aaf45d-e75e-4c34-acb5-016b23f074de - key: k8s.namespace.name value: stringValue: default @@ -4668,13 +3329,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: sock-splunk-otel-collector-ta + stringValue: local-path-provisioner - key: k8s.deployment.uid value: - stringValue: 83fa70f2-3ad2-421b-b901-d589073a019a + stringValue: ac46f4b3-bce0-4990-8d4d-a0ec8b7badd2 - key: k8s.namespace.name value: - stringValue: default + stringValue: local-path-storage - key: metric_source value: stringValue: kubernetes @@ -4682,12 +3343,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.deployment.available - - gauge: - dataPoints: -<<<<<<< HEAD -======= - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: @@ -4703,13 +3359,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: cert-manager + stringValue: nodejs-test - key: k8s.deployment.uid value: - stringValue: 91cb6788-57ea-45c2-ad32-0bb715214bc8 + stringValue: aef1f64e-c0d4-4c7b-ade2-286b036d8a8a - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -4733,13 +3389,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: cert-manager-cainjector + stringValue: prometheus-annotation-test - key: k8s.deployment.uid value: - stringValue: 1154addc-117b-45bb-96d7-57f162f5c979 + stringValue: 4577417c-5f43-4ea6-b3b5-c1b88ac1e4f0 - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -4747,7 +3403,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + - asInt: "0" attributes: - key: cluster_name value: @@ -4763,13 +3419,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: cert-manager-webhook + stringValue: python-test - key: k8s.deployment.uid value: - stringValue: bbdc1118-0c06-4d1a-8a02-dc9ed338ae7d + stringValue: da1d0276-d05d-4117-af44-0c2e9155145f - key: k8s.namespace.name value: - stringValue: cert-manager + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -4777,8 +3433,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 - - asInt: "2" + - asInt: "1" attributes: - key: cluster_name value: @@ -4794,13 +3449,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: coredns + stringValue: sock-operator - key: k8s.deployment.uid value: - stringValue: c865a900-1f74-4a69-85ef-07ffecfe8522 + stringValue: 169f5d47-6ca3-4313-a9f4-e29635438922 - key: k8s.namespace.name value: - stringValue: kube-system + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -4824,10 +3479,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: dotnet-test + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver - key: k8s.deployment.uid value: - stringValue: e246c9bf-d399-42bc-97bd-df87f8b36cd1 + stringValue: fbd804f0-4d12-421a-a78c-406cfe35fc5b - key: k8s.namespace.name value: stringValue: default @@ -4854,10 +3509,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: java-test + stringValue: sock-splunk-otel-collector-ta - key: k8s.deployment.uid value: - stringValue: d21015eb-6116-41c0-a7db-8b81a8bff725 + stringValue: 4e040e13-c52e-4d59-896b-d68e73202fcd - key: k8s.namespace.name value: stringValue: default @@ -4868,7 +3523,10 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "1" + name: k8s.deployment.available + - gauge: + dataPoints: + - asInt: "2" attributes: - key: cluster_name value: @@ -4884,13 +3542,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: local-path-provisioner + stringValue: coredns - key: k8s.deployment.uid value: - stringValue: 602b50f2-a2fc-4bd4-8f37-f264423156e6 + stringValue: 6c4107da-d627-4e03-9aa3-8abf8061c503 - key: k8s.namespace.name value: - stringValue: local-path-storage + stringValue: kube-system - key: metric_source value: stringValue: kubernetes @@ -4914,10 +3572,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: nodejs-test + stringValue: dotnet-test - key: k8s.deployment.uid value: - stringValue: d58c784b-442b-4b6d-9f4f-23b8dab8c3f3 + stringValue: b8ba790e-7d52-42bc-8a87-b7be18688f3f - key: k8s.namespace.name value: stringValue: default @@ -4944,10 +3602,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: prometheus-annotation-test + stringValue: java-test - key: k8s.deployment.uid value: - stringValue: 23dfdd11-cb02-494d-aa8a-0116e5d841f2 + stringValue: 25aaf45d-e75e-4c34-acb5-016b23f074de - key: k8s.namespace.name value: stringValue: default @@ -4974,13 +3632,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: python-test + stringValue: local-path-provisioner - key: k8s.deployment.uid value: - stringValue: 61cbac2e-da1b-42a0-b0de-91895ea8390c + stringValue: ac46f4b3-bce0-4990-8d4d-a0ec8b7badd2 - key: k8s.namespace.name value: - stringValue: default + stringValue: local-path-storage - key: metric_source value: stringValue: kubernetes @@ -5004,10 +3662,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: sock-operator + stringValue: nodejs-test - key: k8s.deployment.uid value: - stringValue: c8e6168d-79bb-4f5e-aaca-e73591757bbc + stringValue: aef1f64e-c0d4-4c7b-ade2-286b036d8a8a - key: k8s.namespace.name value: stringValue: default @@ -5034,10 +3692,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver + stringValue: prometheus-annotation-test - key: k8s.deployment.uid value: - stringValue: f0387cdc-86ef-44f1-846c-0654cbb8c953 + stringValue: 4577417c-5f43-4ea6-b3b5-c1b88ac1e4f0 - key: k8s.namespace.name value: stringValue: default @@ -5064,10 +3722,10 @@ resourceMetrics: stringValue: dev-operator - key: k8s.deployment.name value: - stringValue: sock-splunk-otel-collector-ta + stringValue: python-test - key: k8s.deployment.uid value: - stringValue: 83fa70f2-3ad2-421b-b901-d589073a019a + stringValue: da1d0276-d05d-4117-af44-0c2e9155145f - key: k8s.namespace.name value: stringValue: default @@ -5078,9 +3736,6 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - name: k8s.deployment.desired - - gauge: - dataPoints: - asInt: "1" attributes: - key: cluster_name @@ -5095,24 +3750,15 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.namespace.name - value: -<<<<<<< HEAD - stringValue: default - - key: k8s.replicaset.name - value: - stringValue: dotnet-test-5479c475fc - - key: k8s.replicaset.uid + - key: k8s.deployment.name value: - stringValue: 4fce340a-8293-41a7-a36e-c81037c9df20 -======= - stringValue: cert-manager - - key: k8s.replicaset.name + stringValue: sock-operator + - key: k8s.deployment.uid value: - stringValue: cert-manager-5d864474d - - key: k8s.replicaset.uid + stringValue: 169f5d47-6ca3-4313-a9f4-e29635438922 + - key: k8s.namespace.name value: - stringValue: 87118ed1-cfa2-4d97-8982-fc3efe6406b4 + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -5134,15 +3780,15 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.namespace.name + - key: k8s.deployment.name value: - stringValue: cert-manager - - key: k8s.replicaset.name + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver + - key: k8s.deployment.uid value: - stringValue: cert-manager-cainjector-85d499d4cc - - key: k8s.replicaset.uid + stringValue: fbd804f0-4d12-421a-a78c-406cfe35fc5b + - key: k8s.namespace.name value: - stringValue: b6a48f05-f0e4-4d46-93b6-36c137387142 + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -5164,16 +3810,15 @@ resourceMetrics: - key: k8s.cluster.name value: stringValue: dev-operator - - key: k8s.namespace.name + - key: k8s.deployment.name value: - stringValue: cert-manager - - key: k8s.replicaset.name + stringValue: sock-splunk-otel-collector-ta + - key: k8s.deployment.uid value: - stringValue: cert-manager-webhook-d499d9459 - - key: k8s.replicaset.uid + stringValue: 4e040e13-c52e-4d59-896b-d68e73202fcd + - key: k8s.namespace.name value: - stringValue: b51367e0-7169-44c9-9a8a-7ad206718960 ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 + stringValue: default - key: metric_source value: stringValue: kubernetes @@ -5181,6 +3826,9 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" + name: k8s.deployment.desired + - gauge: + dataPoints: - asInt: "0" attributes: - key: cluster_name @@ -5203,7 +3851,7 @@ resourceMetrics: stringValue: dotnet-test-7fd7cfb786 - key: k8s.replicaset.uid value: - stringValue: ac8c326a-d7fa-4985-a938-5eb518a6b19b + stringValue: d1438c5e-1925-4545-9dce-4e4f7220fa34 - key: metric_source value: stringValue: kubernetes @@ -5233,7 +3881,7 @@ resourceMetrics: stringValue: java-test-5b5c88f857 - key: k8s.replicaset.uid value: - stringValue: 20ee611a-8802-4653-829b-666a848b9d6b + stringValue: 9299c751-804e-49f7-a8ff-e062e37bdc2b - key: metric_source value: stringValue: kubernetes @@ -5263,7 +3911,7 @@ resourceMetrics: stringValue: nodejs-test-5fbcbff576 - key: k8s.replicaset.uid value: - stringValue: 40b79550-bbf9-46f6-bff3-c5ed1ad47783 + stringValue: 6599ece3-4926-4e26-a21b-45fdaea71afe - key: metric_source value: stringValue: kubernetes @@ -5271,7 +3919,7 @@ resourceMetrics: value: stringValue: k8scluster timeUnixNano: "1000000" - - asInt: "0" + - asInt: "1" attributes: - key: cluster_name value: @@ -5293,7 +3941,7 @@ resourceMetrics: stringValue: prometheus-annotation-test-85c8b9cd98 - key: k8s.replicaset.uid value: - stringValue: 3c8f44cd-348b-416d-85dd-1b346388d249 + stringValue: a4e2ae4a-311d-423a-b3c7-7300e518b7ba - key: metric_source value: stringValue: kubernetes @@ -5323,7 +3971,7 @@ resourceMetrics: stringValue: python-test-57cc48d9bc - key: k8s.replicaset.uid value: - stringValue: 6cf746a8-ef51-4339-85dd-a29d2d405d29 + stringValue: 2a2e8305-6fd7-453f-88ec-4feed12ad4e5 - key: metric_source value: stringValue: kubernetes @@ -5353,7 +4001,7 @@ resourceMetrics: stringValue: sock-operator-7dc9bb794d - key: k8s.replicaset.uid value: - stringValue: 1a31a222-0d5c-4b04-abe5-695e086a4012 + stringValue: b7bbe543-372e-4c07-9b59-d5bda8cbd110 - key: metric_source value: stringValue: kubernetes @@ -5380,10 +4028,10 @@ resourceMetrics: stringValue: default - key: k8s.replicaset.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84b + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f698879 - key: k8s.replicaset.uid value: - stringValue: 16b32119-ce2b-4fad-a374-0e89060cf567 + stringValue: efd22e99-9d0e-4e09-b958-a78c1d7a1c72 - key: metric_source value: stringValue: kubernetes @@ -5413,7 +4061,7 @@ resourceMetrics: stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7 - key: k8s.replicaset.uid value: - stringValue: 666bbf78-fb09-4911-ba81-6800c1bf0a4f + stringValue: 88b827ac-bb3b-4ebc-a093-e643e5db2f8d - key: metric_source value: stringValue: kubernetes @@ -5443,7 +4091,7 @@ resourceMetrics: stringValue: coredns-7db6d8ff4d - key: k8s.replicaset.uid value: - stringValue: 9eb6d1b8-793f-405e-9e09-a490e41bce95 + stringValue: 45b4a21d-c33b-42d8-9eed-82fde3180cb2 - key: metric_source value: stringValue: kubernetes @@ -5473,7 +4121,7 @@ resourceMetrics: stringValue: local-path-provisioner-988d74bc - key: k8s.replicaset.uid value: - stringValue: 9bda9930-a52c-4289-8ea7-1a5fc32a022e + stringValue: 6aac38bb-d617-40db-b076-0e14c3e09cf8 - key: metric_source value: stringValue: kubernetes @@ -5500,106 +4148,13 @@ resourceMetrics: stringValue: dev-operator - key: k8s.namespace.name value: -<<<<<<< HEAD -======= - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-5d864474d - - key: k8s.replicaset.uid - value: - stringValue: 87118ed1-cfa2-4d97-8982-fc3efe6406b4 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-cainjector-85d499d4cc - - key: k8s.replicaset.uid - value: - stringValue: b6a48f05-f0e4-4d46-93b6-36c137387142 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: - stringValue: cert-manager - - key: k8s.replicaset.name - value: - stringValue: cert-manager-webhook-d499d9459 - - key: k8s.replicaset.uid - value: - stringValue: b51367e0-7169-44c9-9a8a-7ad206718960 - - key: metric_source - value: - stringValue: kubernetes - - key: receiver - value: - stringValue: k8scluster - timeUnixNano: "1000000" - - asInt: "1" - attributes: - - key: cluster_name - value: - stringValue: ci-k8s-cluster - - key: customfield1 - value: - stringValue: customvalue1 - - key: customfield2 - value: - stringValue: customvalue2 - - key: k8s.cluster.name - value: - stringValue: dev-operator - - key: k8s.namespace.name - value: ->>>>>>> 16dae9caa107cc9b326e01ec3a3157ac1066a291 stringValue: default - key: k8s.replicaset.name value: stringValue: dotnet-test-7fd7cfb786 - key: k8s.replicaset.uid value: - stringValue: ac8c326a-d7fa-4985-a938-5eb518a6b19b + stringValue: d1438c5e-1925-4545-9dce-4e4f7220fa34 - key: metric_source value: stringValue: kubernetes @@ -5629,7 +4184,7 @@ resourceMetrics: stringValue: java-test-5b5c88f857 - key: k8s.replicaset.uid value: - stringValue: 20ee611a-8802-4653-829b-666a848b9d6b + stringValue: 9299c751-804e-49f7-a8ff-e062e37bdc2b - key: metric_source value: stringValue: kubernetes @@ -5659,7 +4214,7 @@ resourceMetrics: stringValue: nodejs-test-5fbcbff576 - key: k8s.replicaset.uid value: - stringValue: 40b79550-bbf9-46f6-bff3-c5ed1ad47783 + stringValue: 6599ece3-4926-4e26-a21b-45fdaea71afe - key: metric_source value: stringValue: kubernetes @@ -5689,7 +4244,7 @@ resourceMetrics: stringValue: prometheus-annotation-test-85c8b9cd98 - key: k8s.replicaset.uid value: - stringValue: 3c8f44cd-348b-416d-85dd-1b346388d249 + stringValue: a4e2ae4a-311d-423a-b3c7-7300e518b7ba - key: metric_source value: stringValue: kubernetes @@ -5719,7 +4274,7 @@ resourceMetrics: stringValue: python-test-57cc48d9bc - key: k8s.replicaset.uid value: - stringValue: 6cf746a8-ef51-4339-85dd-a29d2d405d29 + stringValue: 2a2e8305-6fd7-453f-88ec-4feed12ad4e5 - key: metric_source value: stringValue: kubernetes @@ -5749,7 +4304,7 @@ resourceMetrics: stringValue: sock-operator-7dc9bb794d - key: k8s.replicaset.uid value: - stringValue: 1a31a222-0d5c-4b04-abe5-695e086a4012 + stringValue: b7bbe543-372e-4c07-9b59-d5bda8cbd110 - key: metric_source value: stringValue: kubernetes @@ -5776,10 +4331,10 @@ resourceMetrics: stringValue: default - key: k8s.replicaset.name value: - stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-6cc968b84b + stringValue: sock-splunk-otel-collector-k8s-cluster-receiver-554f698879 - key: k8s.replicaset.uid value: - stringValue: 16b32119-ce2b-4fad-a374-0e89060cf567 + stringValue: efd22e99-9d0e-4e09-b958-a78c1d7a1c72 - key: metric_source value: stringValue: kubernetes @@ -5809,7 +4364,7 @@ resourceMetrics: stringValue: sock-splunk-otel-collector-ta-5f9dddf7f7 - key: k8s.replicaset.uid value: - stringValue: 666bbf78-fb09-4911-ba81-6800c1bf0a4f + stringValue: 88b827ac-bb3b-4ebc-a093-e643e5db2f8d - key: metric_source value: stringValue: kubernetes @@ -5839,7 +4394,7 @@ resourceMetrics: stringValue: coredns-7db6d8ff4d - key: k8s.replicaset.uid value: - stringValue: 9eb6d1b8-793f-405e-9e09-a490e41bce95 + stringValue: 45b4a21d-c33b-42d8-9eed-82fde3180cb2 - key: metric_source value: stringValue: kubernetes @@ -5869,7 +4424,7 @@ resourceMetrics: stringValue: local-path-provisioner-988d74bc - key: k8s.replicaset.uid value: - stringValue: 9bda9930-a52c-4289-8ea7-1a5fc32a022e + stringValue: 6aac38bb-d617-40db-b076-0e14c3e09cf8 - key: metric_source value: stringValue: kubernetes @@ -5899,7 +4454,7 @@ resourceMetrics: stringValue: kindnet - key: k8s.daemonset.uid value: - stringValue: daa82d4f-b43e-4279-88e7-509f8c3475dc + stringValue: 0219225e-a552-45a4-8375-0f7be06549b8 - key: k8s.namespace.name value: stringValue: kube-system @@ -5929,7 +4484,7 @@ resourceMetrics: stringValue: kube-proxy - key: k8s.daemonset.uid value: - stringValue: 0c6f9bf4-499f-4671-8d94-98e35ed04bbf + stringValue: f918aa54-8562-4f3b-a7fe-f0e16c9e40e0 - key: k8s.namespace.name value: stringValue: kube-system @@ -5959,7 +4514,7 @@ resourceMetrics: stringValue: sock-splunk-otel-collector-agent - key: k8s.daemonset.uid value: - stringValue: ea5115f5-93ff-4c3d-b21f-060cf60a9718 + stringValue: bd6c22d9-625f-4117-a4ff-34dbea2bd15c - key: k8s.namespace.name value: stringValue: default @@ -5992,7 +4547,7 @@ resourceMetrics: stringValue: kindnet - key: k8s.daemonset.uid value: - stringValue: daa82d4f-b43e-4279-88e7-509f8c3475dc + stringValue: 0219225e-a552-45a4-8375-0f7be06549b8 - key: k8s.namespace.name value: stringValue: kube-system @@ -6022,7 +4577,7 @@ resourceMetrics: stringValue: kube-proxy - key: k8s.daemonset.uid value: - stringValue: 0c6f9bf4-499f-4671-8d94-98e35ed04bbf + stringValue: f918aa54-8562-4f3b-a7fe-f0e16c9e40e0 - key: k8s.namespace.name value: stringValue: kube-system @@ -6052,7 +4607,7 @@ resourceMetrics: stringValue: sock-splunk-otel-collector-agent - key: k8s.daemonset.uid value: - stringValue: ea5115f5-93ff-4c3d-b21f-060cf60a9718 + stringValue: bd6c22d9-625f-4117-a4ff-34dbea2bd15c - key: k8s.namespace.name value: stringValue: default @@ -6085,7 +4640,7 @@ resourceMetrics: stringValue: kindnet - key: k8s.daemonset.uid value: - stringValue: daa82d4f-b43e-4279-88e7-509f8c3475dc + stringValue: 0219225e-a552-45a4-8375-0f7be06549b8 - key: k8s.namespace.name value: stringValue: kube-system @@ -6115,7 +4670,7 @@ resourceMetrics: stringValue: kube-proxy - key: k8s.daemonset.uid value: - stringValue: 0c6f9bf4-499f-4671-8d94-98e35ed04bbf + stringValue: f918aa54-8562-4f3b-a7fe-f0e16c9e40e0 - key: k8s.namespace.name value: stringValue: kube-system @@ -6145,7 +4700,7 @@ resourceMetrics: stringValue: sock-splunk-otel-collector-agent - key: k8s.daemonset.uid value: - stringValue: ea5115f5-93ff-4c3d-b21f-060cf60a9718 + stringValue: bd6c22d9-625f-4117-a4ff-34dbea2bd15c - key: k8s.namespace.name value: stringValue: default @@ -6178,7 +4733,7 @@ resourceMetrics: stringValue: kindnet - key: k8s.daemonset.uid value: - stringValue: daa82d4f-b43e-4279-88e7-509f8c3475dc + stringValue: 0219225e-a552-45a4-8375-0f7be06549b8 - key: k8s.namespace.name value: stringValue: kube-system @@ -6208,7 +4763,7 @@ resourceMetrics: stringValue: kube-proxy - key: k8s.daemonset.uid value: - stringValue: 0c6f9bf4-499f-4671-8d94-98e35ed04bbf + stringValue: f918aa54-8562-4f3b-a7fe-f0e16c9e40e0 - key: k8s.namespace.name value: stringValue: kube-system @@ -6238,7 +4793,7 @@ resourceMetrics: stringValue: sock-splunk-otel-collector-agent - key: k8s.daemonset.uid value: - stringValue: ea5115f5-93ff-4c3d-b21f-060cf60a9718 + stringValue: bd6c22d9-625f-4117-a4ff-34dbea2bd15c - key: k8s.namespace.name value: stringValue: default @@ -6271,7 +4826,7 @@ resourceMetrics: stringValue: kind-control-plane - key: k8s.node.uid value: - stringValue: 1098b47c-7df6-495e-a511-2e0473c3bf95 + stringValue: 76e8d927-86b0-40e1-ae0c-9c2f2a7524eb - key: metric_source value: stringValue: kubernetes From d12f6f3fb0d2dbc4e361bac9a902722ad2f8148d Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 12:58:12 -0700 Subject: [PATCH 17/21] dummy commit to get CI/CD run with the "Ignore Tests" PR label --- .../expected_kind_values/expected_cluster_receiver.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml index c4abbca3c..7eca492eb 100644 --- a/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml +++ b/functional_tests/testdata/expected_kind_values/expected_cluster_receiver.yaml @@ -29,7 +29,7 @@ resourceMetrics: stringValue: dotnet-test-7fd7cfb786-7swfw - key: k8s.pod.uid value: - stringValue: 229cc3dc-a251-4559-b0d3-a830ec2440cc + stringValue: 229cc3dc-a251-4559-b0d3-a830ec2440cd - key: metric_source value: stringValue: kubernetes From 6f7aea340c09f6832091dfd93dd6ae510a605ffd Mon Sep 17 00:00:00 2001 From: jvoravong Date: Thu, 27 Feb 2025 13:05:05 -0700 Subject: [PATCH 18/21] restore comment that wasn't ment to be removed --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8beecd5bd..a269c227c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,7 @@ repos: exclude: "^examples|^test" - id: check-yaml # Can't check source yaml since it has go templates in it. + # Can't check operator-webhook.yaml due to redacted TLS certificate information causing yaml format issues. exclude: "^helm-charts|operator-webhook.yaml" args: [ --allow-multiple-documents ] - id: check-added-large-files From 4c8d9e423f483bf71c1433e6e5bd07882fbfd8c7 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Fri, 28 Feb 2025 09:00:35 -0700 Subject: [PATCH 19/21] doc update for autoGenerateCert.enabled --- docs/auto-instrumentation-install.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/docs/auto-instrumentation-install.md b/docs/auto-instrumentation-install.md index 108ebda1d..d6d43e9dd 100644 --- a/docs/auto-instrumentation-install.md +++ b/docs/auto-instrumentation-install.md @@ -466,16 +466,23 @@ In Kubernetes, the API server communicates with operator webhook components over #### 1. **Using a Self-Signed Certificate Generated by the Chart** -This is the default and simplest method for generating a TLS certificate. It automatically creates a self-signed certificate for the webhook. It is suitable for internal environments or testing purposes but may not be trusted by clients outside your cluster. +This is the default and simplest method for generating a TLS certificate. It automatically creates a self-signed certificate for the webhook, making it suitable for internal environments or testing purposes. However, it may not be trusted by clients outside your cluster. -**Configuration:** -- Set `operator.admissionWebhooks.certManager.enabled` to `false` and `operator.admissionWebhooks.autoGenerateCert.enabled` to `true`. -- Helm generates a self-signed certificate, valid for 10 years, and creates a secret for the webhook. The validity of this self-signed certificate can be adjusted with the config `operator.admissionWebhooks.autoGenerateCert.certPeriodDays` -- The certificate is automatically recreated on every Helm upgrade. This behavior can be disabled by setting the config `operator.admissionWebhooks.autoGenerateCert.recreate` to `false` +**Note**: The following settings reflect the default values starting in **v1.20.0** of this chart. You only need to update them if using a **previous chart version** or if additional customization is required. -This is the easiest setup for users and does not require additional configuration. +```yaml +operator: + admissionWebhooks: + autoGenerateCert: + enabled: true + certPeriodDays: 3650 + certManager: + enabled: false +``` -**Note**: Self-signed certificates are not trusted by default by clients, so this option is generally best for internal or testing scenarios. +- Setting `operator.admissionWebhooks.certManager.enabled` to `false` and `operator.admissionWebhooks.autoGenerateCert.enabled` to `true` ensures that Helm generates a self-signed TLS certificate. +- Helm generates a self-signed certificate that is valid for 10 years (3650 days) and stores it in a secret for the Operator webhook. The certificate's validity period can be adjusted using `operator.admissionWebhooks.autoGenerateCert.certPeriodDays`. +- The certificate is **automatically regenerated** on every Helm upgrade. To disable this behavior, set `operator.admissionWebhooks.autoGenerateCert.recreate` to `false`. --- @@ -493,8 +500,6 @@ operator: admissionWebhooks: certManager: enabled: true - autoGenerateCert: - enabled: false ``` ##### Option 2: **Deploy cert-manager and the operator together** From ea8b041e0124a71cbd5d6b4bbb85a1a95ca9d1c2 Mon Sep 17 00:00:00 2001 From: jvoravong Date: Mon, 3 Mar 2025 08:26:07 -0700 Subject: [PATCH 20/21] Remove missed cert-manager references in docs --- .../otel-demo-dotnet.md | 5 ++--- .../otel-demo-nodejs.md | 5 ++--- .../spring-petclinic-java.md | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md b/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md index e6126a1ab..8dd935598 100644 --- a/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md +++ b/examples/enable-operator-and-auto-instrumentation/otel-demo-dotnet.md @@ -23,9 +23,8 @@ curl https://raw.githubusercontent.com/signalfx/splunk-otel-collector-chart/main #### 2.1 Deploy the Helm Chart with the Operator enabled -To install the chart with operator in an existing cluster, make sure you have cert-manager installed and available. -Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true`. -These helm install commands will deploy the chart to the current namespace for this example. +To install the chart with the operator, set the following values with this Helm command. +This Helm install command deploys the chart to the current namespace, assumed to be the `default` namespace for this exercise. ```bash helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,certmanager.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector diff --git a/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md b/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md index 875bb891b..c3721d85a 100644 --- a/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md +++ b/examples/enable-operator-and-auto-instrumentation/otel-demo-nodejs.md @@ -19,9 +19,8 @@ curl https://raw.githubusercontent.com/signalfx/splunk-otel-collector-chart/main #### 2.1 Deploy the Helm Chart with the Operator enabled -To install the chart with operator in an existing cluster, make sure you have cert-manager installed and available. -Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true`. -These helm install commands will deploy the chart to the current namespace for this example. +To install the chart with the operator, set the following values with this Helm command. +This Helm install command deploys the chart to the current namespace, assumed to be the `default` namespace for this exercise. ```bash helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector diff --git a/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md b/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md index 0af950b15..b7e2562eb 100644 --- a/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md +++ b/examples/enable-operator-and-auto-instrumentation/spring-petclinic-java.md @@ -19,9 +19,8 @@ curl https://raw.githubusercontent.com/signalfx/splunk-otel-collector-chart/main #### 2.1 Deploy the Helm Chart with the Operator enabled -To install the chart with operator in an existing cluster, make sure you have cert-manager installed and available. -Both the cert-manager and operator are subcharts of this chart and can be enabled with `--set operatorcrds.install=true,operator.enabled=true`. -These helm install commands will deploy the chart to the current namespace for this example. +To install the chart with the operator, set the following values with this Helm command. +This Helm install command deploys the chart to the current namespace, assumed to be the `default` namespace for this exercise. ```bash helm install splunk-otel-collector -f ./my_values.yaml --set operatorcrds.install=true,operator.enabled=true,environment=dev splunk-otel-collector-chart/splunk-otel-collector From 4dff9582bcc043d4e479a71080c7e98fbb960b24 Mon Sep 17 00:00:00 2001 From: jvoravong <47871238+jvoravong@users.noreply.github.com> Date: Mon, 3 Mar 2025 11:35:16 -0700 Subject: [PATCH 21/21] Update UPGRADING.md Co-authored-by: Jina Jain --- UPGRADING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index cf8f11132..8d555f378 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -95,7 +95,9 @@ Once the secret is no longer present, you can install the chart with the latest ```bash helm install splunk-otel-collector splunk-otel-collector-chart/splunk-otel-collector --values ~/values.yaml --namespace ``` +#### **Step 5 (Optional): Delete cert-manager CRDs** +Helm delete will not remove CRDs objects created as part of the cert-manager installation. You can find the command to delete cert-manager CRDs in their official documentation [here](https://cert-manager.io/docs/installation/helm/#uninstalling-with-helm). ## 0.113.0 to 0.116.0 This guide provides steps for new users, transitioning users, and those maintaining previous operator CRD configurations: