Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update dev deploy to use inline values and snippets-dev-secrets #9

Merged
merged 1 commit into from Jun 10, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Update dev deploy to use inline values and snippets-dev-secrets

Delete unneeded values and add K8S_NAMESPACE & K8S_POD_NAME in prep for
middleware update

For mozmeao/infra#986
  • Loading branch information...
jgmize committed Jun 10, 2019
commit 19102f84c51ca4f7dda1e2dc38a148b04bda5e15
@@ -26,7 +26,6 @@ spec:
labels:
app: snippets-dev
type: test
version: v157
name: snippets-dev-web
namespace: snippets-dev
spec:
@@ -37,217 +36,123 @@ spec:
- /bin/bash
- -c
env:
- name: ALLOWED_HOSTS
valueFrom:
secretKeyRef:
key: allowed-hosts
name: snippets-dev-v157-env
- name: ALLOWED_HOSTS
value: "*"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: aws-access-key-id
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: AWS_S3_HOST
valueFrom:
secretKeyRef:
key: aws-s3-host
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: aws-secret-access-key
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: AWS_STORAGE_BUCKET_NAME
valueFrom:
secretKeyRef:
key: aws-storage-bucket-name
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: BUNDLE_BROTLI_COMPRESS
valueFrom:
secretKeyRef:
key: bundle-brotli-compress
name: snippets-dev-v157-env
value: "True"
- name: CACHALOT_ENABLED
valueFrom:
secretKeyRef:
key: cachalot-enabled
name: snippets-dev-v157-env
value: "False"
- name: CACHE_URL
valueFrom:
secretKeyRef:
key: cache-url
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: CSP_REPORT_ONLY
valueFrom:
secretKeyRef:
key: csp-report-only
name: snippets-dev-v157-env
value: "True"
- name: CSV_EXPORT_ROOT
valueFrom:
secretKeyRef:
key: csv-export-root
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: DATABASE_URL
valueFrom:
secretKeyRef:
key: database-url
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: DEAD_MANS_SNITCH_DISABLE_SNIPPETS
valueFrom:
secretKeyRef:
key: dead-mans-snitch-disable-snippets
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: DEAD_MANS_SNITCH_PRODUCT_DETAILS
valueFrom:
secretKeyRef:
key: dead-mans-snitch-product-details
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: DEBUG
valueFrom:
secretKeyRef:
key: debug
name: snippets-dev-v157-env
- name: DEIS_APP
valueFrom:
secretKeyRef:
key: deis-app
name: snippets-dev-v157-env
- name: DEIS_DOMAIN
valueFrom:
secretKeyRef:
key: deis-domain
name: snippets-dev-v157-env
value: "False"
- name: ENABLE_ADMIN
valueFrom:
secretKeyRef:
key: enable-admin
name: snippets-dev-v157-env
value: "True"
- name: FILE_STORAGE
valueFrom:
secretKeyRef:
key: file-storage
name: snippets-dev-v157-env
value: snippets.base.storage.S3Storage
- name: K8S_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: K8S_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METRICS_SAMPLE_RATE
valueFrom:
secretKeyRef:
key: metrics-sample-rate
name: snippets-dev-v157-env
value: "1"
- name: NEW_RELIC_APP_NAME
valueFrom:
secretKeyRef:
key: new-relic-app-name
name: snippets-dev-v157-env
value: snippets-dev-oregon-b
- name: NEW_RELIC_LICENSE_KEY
valueFrom:
secretKeyRef:
key: new-relic-license-key
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: OIDC_ENABLE
valueFrom:
secretKeyRef:
key: oidc-enable
name: snippets-dev-v157-env
- name: PORT
valueFrom:
secretKeyRef:
key: port
name: snippets-dev-v157-env
value: "False"
- name: PROD_DETAILS_STORAGE
valueFrom:
secretKeyRef:
key: prod-details-storage
name: snippets-dev-v157-env
value: product_details.storage.PDDatabaseStorage
- name: SECRET_KEY
valueFrom:
secretKeyRef:
key: secret-key
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: SECURE_BROWSER_XSS_FILTER
valueFrom:
secretKeyRef:
key: secure-browser-xss-filter
name: snippets-dev-v157-env
value: "True"
- name: SECURE_CONTENT_TYPE_NOSNIFF
valueFrom:
secretKeyRef:
key: secure-content-type-nosniff
name: snippets-dev-v157-env
value: "True"
- name: SECURE_HSTS_SECONDS
valueFrom:
secretKeyRef:
key: secure-hsts-seconds
name: snippets-dev-v157-env
value: "3600"
- name: SECURE_SSL_REDIRECT
valueFrom:
secretKeyRef:
key: secure-ssl-redirect
name: snippets-dev-v157-env
value: "True"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
key: sentry-dsn
name: snippets-dev-v157-env
name: snippets-dev-secrets
- name: SENTRY_ENVIRONMENT
valueFrom:
secretKeyRef:
key: sentry-environment
name: snippets-dev-v157-env
value: dev
- name: SITE_HEADER
valueFrom:
secretKeyRef:
key: site-header
name: snippets-dev-v157-env
value: Snippets Administration Development
- name: SITE_TITLE
valueFrom:
secretKeyRef:
key: site-title
name: snippets-dev-v157-env
value: Mozilla Snippets Development Admin
- name: SITE_URL
valueFrom:
secretKeyRef:
key: site-url
name: snippets-dev-v157-env
value: https://snippets-dev.oregon.moz.works
- name: SNIPPET_BUNDLE_TIMEOUT
valueFrom:
secretKeyRef:
key: snippet-bundle-timeout
name: snippets-dev-v157-env
value: "1800"
- name: SNIPPET_HTTP_MAX_AGE
valueFrom:
secretKeyRef:
key: snippet-http-max-age
name: snippets-dev-v157-env
value: "600"
- name: STATSD_CLIENT
valueFrom:
secretKeyRef:
key: statsd-client
name: snippets-dev-v157-env
value: django_statsd.clients.normal
- name: STATSD_HOST
valueFrom:
secretKeyRef:
key: statsd-host
name: snippets-dev-v157-env
value: datadog-statsd.datadog.svc.cluster.local
- name: STATSD_PREFIX
valueFrom:
secretKeyRef:
key: statsd-prefix
name: snippets-dev-v157-env
- name: WORKFLOW_RELEASE
valueFrom:
secretKeyRef:
key: workflow-release
name: snippets-dev-v157-env
- name: WORKFLOW_RELEASE_CREATED_AT
valueFrom:
secretKeyRef:
key: workflow-release-created-at
name: snippets-dev-v157-env
- name: WORKFLOW_RELEASE_SUMMARY
valueFrom:
secretKeyRef:
key: workflow-release-summary
name: snippets-dev-v157-env
image: mozorg/snippets:d681541
value: snippets-dev-oregon-b
image: mozorg/snippets:d8fd14c
imagePullPolicy: IfNotPresent
name: snippets-dev-web
readinessProbe:
@@ -265,4 +170,4 @@ spec:
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
terminationGracePeriodSeconds: 30
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.