-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 2023 08 01.1.1a211ce (#1184)
## Description <!-- Please include a summary of the change and a link to the JIRA ticket. Please add any additional motivation and context as needed. Screenshots are also welcome --> Release 2023 08 01.1.1a211ce
- Loading branch information
Showing
44 changed files
with
2,071 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
dp-terraform/helm/rhacs-terraform/charts/audit-logs/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
24 changes: 24 additions & 0 deletions
24
dp-terraform/helm/rhacs-terraform/charts/audit-logs/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: v2 | ||
name: audit-logs | ||
description: "Chart to terraform audit-logs stack for dataplane OSD clusters" | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: "0.1.0" | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "0.1.0" |
31 changes: 31 additions & 0 deletions
31
dp-terraform/helm/rhacs-terraform/charts/audit-logs/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Data plane terraform audit-logs Helm chart | ||
|
||
This chart installs resource into `rhacs-audit-logs` namespace. | ||
|
||
## Usage | ||
|
||
Create a file `~/dp-terraform-audit-logs-values.yaml` with the values for the parameters in [values.yaml](./values.yaml) that are missing or that you want to override. | ||
|
||
**Render the chart to see the generated templates during development** | ||
|
||
```bash | ||
helm template rhacs-terraform-audit-logs \ | ||
--debug \ | ||
--namespace rhacs \ | ||
--values ~/dp-terraform-audit-logs-values.yaml . | ||
``` | ||
|
||
**Install or update the chart** | ||
|
||
```bash | ||
helm upgrade --install rhacs-terraform-audit-logs \ | ||
--namespace rhacs \ | ||
--create-namespace \ | ||
--values ~/dp-terraform-audit-logs-values.yaml . | ||
``` | ||
|
||
**Uninstall the chart and cleanup all created resources** | ||
|
||
```bash | ||
helm uninstall rhacs-terraform-audit-logs --namespace rhacs | ||
``` |
8 changes: 8 additions & 0 deletions
8
dp-terraform/helm/rhacs-terraform/charts/audit-logs/templates/01-namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: {{ include "aggregator.namespace" . }} | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} |
16 changes: 16 additions & 0 deletions
16
dp-terraform/helm/rhacs-terraform/charts/audit-logs/templates/02-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "aggregator.fullname" . }} | ||
namespace: {{ include "aggregator.namespace" . }} | ||
labels: | ||
{{- include "aggregator.selectorLabels" . | nindent 4 }} | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
data: | ||
{{- if .Values.customConfig }} | ||
vector.yaml: | | ||
{{ tpl (toYaml .Values.customConfig) . | indent 4 }} | ||
{{- end }} |
16 changes: 16 additions & 0 deletions
16
dp-terraform/helm/rhacs-terraform/charts/audit-logs/templates/03-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "aggregator.fullname" . }} | ||
namespace: {{ include "aggregator.namespace" . }} | ||
labels: | ||
{{- include "aggregator.selectorLabels" . | nindent 4 }} | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
type: Opaque | ||
data: | ||
{{- range $key, $value := .Values.secrets }} | ||
{{ $key }}: {{ $value | b64enc | quote }} | ||
{{- end }} |
12 changes: 12 additions & 0 deletions
12
dp-terraform/helm/rhacs-terraform/charts/audit-logs/templates/04-serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "aggregator.fullname" . }} | ||
namespace: {{ include "aggregator.namespace" . }} | ||
labels: | ||
{{- include "aggregator.selectorLabels" . | nindent 4 }} | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
automountServiceAccountToken: true |
26 changes: 26 additions & 0 deletions
26
dp-terraform/helm/rhacs-terraform/charts/audit-logs/templates/05-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "aggregator.fullname" . }} | ||
namespace: {{ include "aggregator.namespace" . }} | ||
labels: | ||
{{- include "aggregator.selectorLabels" . | nindent 4 }} | ||
annotations: | ||
service.beta.openshift.io/serving-cert-secret-name: {{ include "aggregator.fullname" . }}-tls-secret | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ipFamilies: | ||
- IPv4 | ||
ports: | ||
- name: http-server | ||
protocol: TCP | ||
port: 8888 | ||
targetPort: 8888 | ||
internalTrafficPolicy: Cluster | ||
type: ClusterIP | ||
ipFamilyPolicy: SingleStack | ||
sessionAffinity: None | ||
selector: | ||
{{- include "aggregator.selectorLabels" . | nindent 4 }} |
127 changes: 127 additions & 0 deletions
127
dp-terraform/helm/rhacs-terraform/charts/audit-logs/templates/06-statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
kind: StatefulSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: {{ include "aggregator.fullname" . }} | ||
namespace: {{ include "aggregator.namespace" . }} | ||
labels: | ||
{{- include "aggregator.selectorLabels" . | nindent 4 }} | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
replicas: {{ .Values.replicas }} | ||
podManagementPolicy: OrderedReady | ||
selector: | ||
matchLabels: | ||
{{- include "aggregator.selectorLabels" . | nindent 6 }} | ||
serviceName: {{ include "aggregator.fullname" . }} | ||
updateStrategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
partition: 0 | ||
template: | ||
metadata: | ||
annotations: | ||
checksum/config: {{ include (print .Template.BasePath "/02-configmap.yaml") . | sha256sum }} | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
app: {{ include "aggregator.fullname" . }} | ||
{{- include "aggregator.selectorLabels" . | nindent 8 }} | ||
spec: | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
serviceAccountName: {{ include "aggregator.fullname" . }} | ||
schedulerName: default-scheduler | ||
affinity: | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- {{ include "aggregator.fullname" . }} | ||
topologyKey: topology.kubernetes.io/zone | ||
terminationGracePeriodSeconds: 60 | ||
securityContext: {} | ||
containers: | ||
- resources: {} | ||
terminationMessagePath: /tmp/vector-termination-log | ||
name: vector | ||
command: | ||
- /usr/bin/vector | ||
env: | ||
- name: AWS_WEB_IDENTITY_TOKEN_FILE | ||
value: /var/run/secrets/aws-token/aws-token | ||
- name: AWS_REGION | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "aggregator.fullname" . }} | ||
key: aws_region | ||
- name: AWS_ROLE_ARN | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "aggregator.fullname" . }} | ||
key: aws_role_arn | ||
ports: | ||
- name: http-server | ||
containerPort: 8888 | ||
protocol: TCP | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
- name: config | ||
readOnly: true | ||
mountPath: /etc/aggregator/ | ||
- name: service-tls-secret | ||
readOnly: true | ||
mountPath: /etc/aggregator/tls | ||
- name: aws-token | ||
mountPath: /var/run/secrets/aws-token | ||
{{- if .Values.persistence.enabled }} | ||
- name: data | ||
mountPath: /aggregator-data-dir | ||
{{- end }} | ||
terminationMessagePolicy: File | ||
image: {{ .Values.image | quote }} | ||
args: | ||
- '--config-dir' | ||
- /etc/aggregator/ | ||
serviceAccount: audit-logs-aggregator | ||
volumes: | ||
- name: config | ||
projected: | ||
sources: | ||
- configMap: | ||
name: {{ include "aggregator.fullname" . }} | ||
defaultMode: 420 | ||
- name: service-tls-secret | ||
projected: | ||
sources: | ||
- secret: | ||
name: {{ include "aggregator.fullname" . }}-tls-secret | ||
defaultMode: 420 | ||
- name: aws-token | ||
projected: | ||
sources: | ||
- serviceAccountToken: | ||
audience: 'sts.amazonaws.com' | ||
expirationSeconds: 3600 | ||
path: aws-token | ||
defaultMode: 420 | ||
{{- if .Values.persistence.enabled }} | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
{{- if .Values.persistence.storageClassName }} | ||
storageClassName: {{ .Values.persistence.storageClassName }} | ||
{{- end }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.size }} | ||
{{- end }} |
Oops, something went wrong.