From 265f7f2a91995f5cde889980867c537107279391 Mon Sep 17 00:00:00 2001 From: saumil Macwan Date: Tue, 25 Jun 2024 07:38:59 -0400 Subject: [PATCH] fix: update test --- .../broker_deployment_test.yaml.snap | 142 +----------------- 1 file changed, 1 insertion(+), 141 deletions(-) diff --git a/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap b/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap index beb2317..9701db7 100644 --- a/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap +++ b/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap @@ -432,146 +432,6 @@ HTTPS enabled: helm.sh/chart: snyk-broker-0.0.0 name: snyk-broker-RELEASE-NAME namespace: NAMESPACE -add deployment labels: - 1: | - apiVersion: apps/v1 - kind: Deployment - metadata: - labels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: snyk-broker-RELEASE-NAME - helm.sh/chart: snyk-broker-0.0.0 - test: node1 - name: github-com-broker-RELEASE-NAME - namespace: NAMESPACE - spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/name: snyk-broker-RELEASE-NAME - template: - metadata: - labels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/name: snyk-broker-RELEASE-NAME - spec: - containers: - - env: - - name: BROKER_SERVER_URL - value: https://broker.test.snyk.io - - name: BROKER_HEALTHCHECK_PATH - value: /healthcheck - - name: BROKER_SYSTEMCHECK_PATH - value: /systemcheck - - name: BROKER_TOKEN - valueFrom: - secretKeyRef: - key: github-com-broker-token-key - name: github-com-broker-token-RELEASE-NAME - - name: GITHUB_TOKEN - valueFrom: - secretKeyRef: - key: github-com-token-key - name: github-com-token-RELEASE-NAME - - name: PORT - value: "8000" - - name: BROKER_CLIENT_URL - value: http://brokerclient - - name: LOG_LEVEL - value: info - - name: LOG_ENABLE_BODY - value: "false" - - name: ACCEPT_CODE - value: "true" - - name: ACCEPT_IAC - value: tf,yaml,yml,json,tpl - - name: BROKER_DISPATCHER_BASE_URL - value: https://api.test.snyk.io - image: snyk/broker:github-com - imagePullPolicy: Always - livenessProbe: - failureThreshold: 3 - httpGet: - path: /healthcheck - port: 8000 - scheme: HTTP - initialDelaySeconds: 3 - periodSeconds: 10 - timeoutSeconds: 1 - name: github-com-broker-RELEASE-NAME - ports: - - containerPort: 8000 - name: http - readinessProbe: - failureThreshold: 3 - httpGet: - path: /healthcheck - port: 8000 - scheme: HTTP - initialDelaySeconds: 3 - periodSeconds: 10 - timeoutSeconds: 1 - resources: - limits: - cpu: 1 - memory: 256Mi - requests: - cpu: 1 - memory: 256Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - volumeMounts: null - securityContext: {} - serviceAccountName: snyk-broker-RELEASE-NAME - volumes: null - 2: | - apiVersion: v1 - kind: Service - metadata: - labels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: snyk-broker-RELEASE-NAME - helm.sh/chart: snyk-broker-0.0.0 - test: node1 - name: github-com-broker-service-RELEASE-NAME - namespace: NAMESPACE - spec: - ports: - - port: 8000 - targetPort: 8000 - selector: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/name: snyk-broker-RELEASE-NAME - type: ClusterIP - 3: | - apiVersion: v1 - data: - github-com-broker-token-key: MTIz - kind: Secret - metadata: - name: github-com-broker-token-RELEASE-NAME - type: Opaque - 4: | - apiVersion: v1 - kind: ServiceAccount - metadata: - labels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: snyk-broker-RELEASE-NAME - helm.sh/chart: snyk-broker-0.0.0 - test: node1 - name: snyk-broker-RELEASE-NAME - namespace: NAMESPACE default values: 1: | apiVersion: apps/v1 @@ -709,7 +569,7 @@ default values: helm.sh/chart: snyk-broker-0.0.0 name: snyk-broker-RELEASE-NAME namespace: NAMESPACE -handles duplicative labels: +handles duplicative labels and adds new labels: 1: | apiVersion: apps/v1 kind: Deployment