Skip to content

Commit

Permalink
Merge pull request #186 from projectsyn/indentation
Browse files Browse the repository at this point in the history
Update gen-golden indentation
  • Loading branch information
megian authored Dec 7, 2022
2 parents b6d8bdd + 8985a48 commit b64d757
Show file tree
Hide file tree
Showing 12 changed files with 949 additions and 947 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,179 +30,179 @@ spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: NotIn
values:
- test
matchLabels:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/name: keycloakx
topologyKey: topology.kubernetes.io/zone
weight: 100
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: NotIn
values:
- test
- key: app.kubernetes.io/component
operator: NotIn
values:
- test
matchLabels:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/name: keycloakx
topologyKey: topology.kubernetes.io/zone
weight: 100
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: NotIn
values:
- test
matchLabels:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/name: keycloakx
topologyKey: kubernetes.io/hostname
topologyKey: kubernetes.io/hostname
containers:
- args:
- start
- --auto-build
- --http-enabled=true
env:
- name: FOO
value: bar
- name: JAVA_OPTS
value: -XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true -Djgroups.dns.query=keycloakx-headless
- name: KC_CACHE
value: ispn
- name: KC_CACHE_STACK
value: kubernetes
- name: KC_DB
value: postgres
- name: KC_DB_URL_DATABASE
value: keycloak
- name: KC_DB_URL_HOST
value: keycloak-postgresql
- name: KC_DB_URL_PORT
value: patched
- name: KC_DB_USERNAME
value: keycloak
- name: KC_HEALTH_ENABLED
value: 'true'
- name: KC_HOSTNAME
value: keycloak.example.com
- name: KC_HOSTNAME_STRICT
value: 'false'
- name: KC_HTTPS_CERTIFICATE_FILE
value: /etc/x509/https/tls.crt
- name: KC_HTTPS_CERTIFICATE_KEY_FILE
value: /etc/x509/https/tls.key
- name: KC_HTTP_RELATIVE_PATH
value: /auth
- name: KC_METRICS_ENABLED
value: 'true'
- name: KC_PROXY
value: reencrypt
envFrom:
- secretRef:
name: keycloak-admin-user
- secretRef:
name: keycloak-postgresql
image: quay.io/keycloak/keycloak:18.0.2
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /auth/health/live
port: http
initialDelaySeconds: 0
timeoutSeconds: 5
name: keycloak
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8443
name: https
protocol: TCP
readinessProbe:
httpGet:
path: /auth/health/ready
port: http
initialDelaySeconds: 10
timeoutSeconds: 1
resources:
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
securityContext:
runAsNonRoot: true
runAsUser: 1000
startupProbe:
failureThreshold: 60
httpGet:
path: /auth/health
port: http
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 1
volumeMounts:
- mountPath: /opt/keycloak/db-certs
name: db-certs
readOnly: true
- mountPath: /etc/x509/https
name: keycloak-tls
readOnly: true
- mountPath: /opt/test
name: theme
readOnly: true
- args:
- start
- --auto-build
- --http-enabled=true
env:
- name: FOO
value: bar
- name: JAVA_OPTS
value: -XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true -Djgroups.dns.query=keycloakx-headless
- name: KC_CACHE
value: ispn
- name: KC_CACHE_STACK
value: kubernetes
- name: KC_DB
value: postgres
- name: KC_DB_URL_DATABASE
value: keycloak
- name: KC_DB_URL_HOST
value: keycloak-postgresql
- name: KC_DB_URL_PORT
value: patched
- name: KC_DB_USERNAME
value: keycloak
- name: KC_HEALTH_ENABLED
value: 'true'
- name: KC_HOSTNAME
value: keycloak.example.com
- name: KC_HOSTNAME_STRICT
value: 'false'
- name: KC_HTTPS_CERTIFICATE_FILE
value: /etc/x509/https/tls.crt
- name: KC_HTTPS_CERTIFICATE_KEY_FILE
value: /etc/x509/https/tls.key
- name: KC_HTTP_RELATIVE_PATH
value: /auth
- name: KC_METRICS_ENABLED
value: 'true'
- name: KC_PROXY
value: reencrypt
envFrom:
- secretRef:
name: keycloak-admin-user
- secretRef:
name: keycloak-postgresql
image: quay.io/keycloak/keycloak:18.0.2
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /auth/health/live
port: http
initialDelaySeconds: 0
timeoutSeconds: 5
name: keycloak
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8443
name: https
protocol: TCP
readinessProbe:
httpGet:
path: /auth/health/ready
port: http
initialDelaySeconds: 10
timeoutSeconds: 1
resources:
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
securityContext:
runAsNonRoot: true
runAsUser: 1000
startupProbe:
failureThreshold: 60
httpGet:
path: /auth/health
port: http
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 1
volumeMounts:
- mountPath: /opt/keycloak/db-certs
name: db-certs
readOnly: true
- mountPath: /etc/x509/https
name: keycloak-tls
readOnly: true
- mountPath: /opt/test
name: theme
readOnly: true
enableServiceLinks: true
initContainers:
- command:
- sh
- -c
- "echo 'Waiting for Database to become ready...'\n\nuntil printf \".\" &&\
\ nc -z -w 2 keycloak-postgresql 5432; do\n sleep 2;\ndone;\n\necho 'Database\
\ OK \u2713'\n"
image: docker.io/busybox:1.32
imagePullPolicy: IfNotPresent
name: dbchecker
resources:
limits:
cpu: 20m
memory: 32Mi
requests:
cpu: 20m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
- args:
- -c
- |
echo "Copying theme..."
cp -R /theme/* /company-theme
command:
- sh
image: company/keycloak-theme:v1.0.0
imagePullPolicy: IfNotPresent
name: theme-provider
volumeMounts:
- mountPath: /company-theme
name: theme
- command:
- sh
- -c
- "echo 'Waiting for Database to become ready...'\n\nuntil printf \".\"\
\ && nc -z -w 2 keycloak-postgresql 5432; do\n sleep 2;\ndone;\n\n\
echo 'Database OK \u2713'\n"
image: docker.io/busybox:1.32
imagePullPolicy: IfNotPresent
name: dbchecker
resources:
limits:
cpu: 20m
memory: 32Mi
requests:
cpu: 20m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
- args:
- -c
- |
echo "Copying theme..."
cp -R /theme/* /company-theme
command:
- sh
image: company/keycloak-theme:v1.0.0
imagePullPolicy: IfNotPresent
name: theme-provider
volumeMounts:
- mountPath: /company-theme
name: theme
restartPolicy: Always
securityContext:
fsGroup: 1000
serviceAccountName: keycloakx
terminationGracePeriodSeconds: 60
volumes:
- name: db-certs
secret:
defaultMode: 256
items:
- key: tls.crt
path: tls.crt
secretName: keycloak-postgresql-tls
- name: keycloak-tls
secret:
defaultMode: 420
secretName: keycloak-tls
- emptyDir: {}
name: theme
- name: db-certs
secret:
defaultMode: 256
items:
- key: tls.crt
path: tls.crt
secretName: keycloak-postgresql-tls
- name: keycloak-tls
secret:
defaultMode: 420
secretName: keycloak-tls
- emptyDir: {}
name: theme
updateStrategy:
type: RollingUpdate
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ metadata:
namespace: syn-builtin
spec:
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/name: keycloakx
ports:
- port: 5432
- from:
- podSelector:
matchLabels:
app.kubernetes.io/instance: keycloakx
app.kubernetes.io/name: keycloakx
ports:
- port: 5432
podSelector:
matchLabels:
app.kubernetes.io/component: primary
Expand Down
Loading

0 comments on commit b64d757

Please sign in to comment.