Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Katka92 committed Sep 30, 2024
2 parents 691525c + 35bcf8c commit 1fb60c5
Show file tree
Hide file tree
Showing 11 changed files with 317 additions and 16 deletions.
6 changes: 3 additions & 3 deletions components/integration/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- https://github.com/konflux-ci/integration-service/config/default?ref=d6b9c8be618fa8df7f35e5e0b0e4e861ba39faca
- https://github.com/konflux-ci/integration-service/config/snapshotgc?ref=d6b9c8be618fa8df7f35e5e0b0e4e861ba39faca
- https://github.com/konflux-ci/integration-service/config/default?ref=7e115596eda1d0df2d578338d0e496d44b91e5f0
- https://github.com/konflux-ci/integration-service/config/snapshotgc?ref=7e115596eda1d0df2d578338d0e496d44b91e5f0

images:
- name: quay.io/redhat-appstudio/integration-service
newName: quay.io/redhat-appstudio/integration-service
newTag: d6b9c8be618fa8df7f35e5e0b0e4e861ba39faca
newTag: 7e115596eda1d0df2d578338d0e496d44b91e5f0

configMapGenerator:
- name: integration-config
Expand Down
6 changes: 3 additions & 3 deletions components/integration/staging/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ kind: Kustomization
resources:
- ../../base
- ../../base/external-secrets
- https://github.com/konflux-ci/integration-service/config/default?ref=d6b9c8be618fa8df7f35e5e0b0e4e861ba39faca
- https://github.com/konflux-ci/integration-service/config/snapshotgc?ref=d6b9c8be618fa8df7f35e5e0b0e4e861ba39faca
- https://github.com/konflux-ci/integration-service/config/default?ref=7e115596eda1d0df2d578338d0e496d44b91e5f0
- https://github.com/konflux-ci/integration-service/config/snapshotgc?ref=7e115596eda1d0df2d578338d0e496d44b91e5f0

images:
- name: quay.io/redhat-appstudio/integration-service
newName: quay.io/redhat-appstudio/integration-service
newTag: d6b9c8be618fa8df7f35e5e0b0e4e861ba39faca
newTag: 7e115596eda1d0df2d578338d0e496d44b91e5f0

configMapGenerator:
- name: integration-config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/konflux-ci/release-service/config/grafana/?ref=a9cb25c4896f1671c474766772f6249fdd8ec49f
- https://github.com/konflux-ci/release-service/config/grafana/?ref=cfbbbd458babb9d86ea24c2340db3278b6a06d80
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,80 @@ data:
# AWS GPU Nodes
dynamic.linux-g6xlarge-amd64.type: aws
dynamic.linux-g6xlarge-amd64.region: us-east-1
dynamic.linux-g6xlarge-amd64.ami: ami-026ebd4cfe2c043b2
dynamic.linux-g6xlarge-amd64.ami: ami-0ad6c6b0ac6c36199
dynamic.linux-g6xlarge-amd64.instance-type: g6.xlarge
dynamic.linux-g6xlarge-amd64.key-name: konflux-prod-int-mab01
dynamic.linux-g6xlarge-amd64.aws-secret: aws-account
dynamic.linux-g6xlarge-amd64.ssh-secret: aws-ssh-key
dynamic.linux-g6xlarge-amd64.security-group-id: sg-0903aedd465be979e
dynamic.linux-g6xlarge-amd64.subnet-id: subnet-0aa719a6c5b602b16
dynamic.linux-g6xlarge-amd64.max-instances: "10"
dynamic.linux-g6xlarge-amd64.user-data: |-
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
cloud_final_modules:
- [scripts-user, always]
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"
#!/bin/bash -ex
if lsblk -no FSTYPE /dev/nvme1n1 | grep -qE '\S'; then
echo "File system exists on the disk."
else
echo "No file system found on the disk /dev/nvme1n1"
mkfs -t xfs /dev/nvme1n1
fi
mount /dev/nvme1n1 /home
if [ -d "/home/var-lib-containers" ]; then
echo "Directory '/home/var-lib-containers' exist"
else
echo "Directory '/home/var-lib-containers' doesn't exist"
mkdir -p /home/var-lib-containers /var/lib/containers
fi
mount --bind /home/var-lib-containers /var/lib/containers
if [ -d "/home/var-tmp" ]; then
echo "Directory '/home/var-tmp' exist"
else
echo "Directory '/home/var-tmp' doesn't exist"
mkdir -p /home/var-tmp /var/tmp
fi
mount --bind /home/var-tmp /var/tmp
chmod a+rw /var/tmp
if [ -d "/home/ec2-user" ]; then
echo "ec2-user home exists"
else
echo "ec2-user home doesn't exist"
mkdir -p /home/ec2-user/.ssh
chown -R ec2-user /home/ec2-user
fi
sed -n 's,.*\(ssh-.*\s\),\1,p' /root/.ssh/authorized_keys > /home/ec2-user/.ssh/authorized_keys
chown ec2-user /home/ec2-user/.ssh/authorized_keys
chmod 600 /home/ec2-user/.ssh/authorized_keys
chmod 700 /home/ec2-user/.ssh
restorecon -r /home/ec2-user
mkdir -p /etc/cdi
chmod a+rwx /etc/cdi
su - ec2-user
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
--//--
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,80 @@ data:
# GPU Instances
dynamic.linux-g6xlarge-amd64.type: aws
dynamic.linux-g6xlarge-amd64.region: us-east-1
dynamic.linux-g6xlarge-amd64.ami: ami-026ebd4cfe2c043b2
dynamic.linux-g6xlarge-amd64.ami: ami-0ad6c6b0ac6c36199
dynamic.linux-g6xlarge-amd64.instance-type: g6.xlarge
dynamic.linux-g6xlarge-amd64.key-name: konflux-prod-ext-mab01
dynamic.linux-g6xlarge-amd64.aws-secret: aws-account
dynamic.linux-g6xlarge-amd64.ssh-secret: aws-ssh-key
dynamic.linux-g6xlarge-amd64.security-group-id: sg-0fbf35ced0d59fd4a
dynamic.linux-g6xlarge-amd64.max-instances: "10"
dynamic.linux-g6xlarge-amd64.subnet-id: subnet-0c39ff75f819abfc5

dynamic.linux-g6xlarge-amd64.user-data: |-
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
cloud_final_modules:
- [scripts-user, always]
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"
#!/bin/bash -ex
if lsblk -no FSTYPE /dev/nvme1n1 | grep -qE '\S'; then
echo "File system exists on the disk."
else
echo "No file system found on the disk /dev/nvme1n1"
mkfs -t xfs /dev/nvme1n1
fi
mount /dev/nvme1n1 /home
if [ -d "/home/var-lib-containers" ]; then
echo "Directory '/home/var-lib-containers' exist"
else
echo "Directory '/home/var-lib-containers' doesn't exist"
mkdir -p /home/var-lib-containers /var/lib/containers
fi
mount --bind /home/var-lib-containers /var/lib/containers
if [ -d "/home/var-tmp" ]; then
echo "Directory '/home/var-tmp' exist"
else
echo "Directory '/home/var-tmp' doesn't exist"
mkdir -p /home/var-tmp /var/tmp
fi
mount --bind /home/var-tmp /var/tmp
chmod a+rw /var/tmp
if [ -d "/home/ec2-user" ]; then
echo "ec2-user home exists"
else
echo "ec2-user home doesn't exist"
mkdir -p /home/ec2-user/.ssh
chown -R ec2-user /home/ec2-user
fi
sed -n 's,.*\(ssh-.*\s\),\1,p' /root/.ssh/authorized_keys > /home/ec2-user/.ssh/authorized_keys
chown ec2-user /home/ec2-user/.ssh/authorized_keys
chmod 600 /home/ec2-user/.ssh/authorized_keys
chmod 700 /home/ec2-user/.ssh
restorecon -r /home/ec2-user
mkdir -p /etc/cdi
chmod a+rwx /etc/cdi
su - ec2-user
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
--//--
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,80 @@ data:
# GPU Instances
dynamic.linux-g6xlarge-amd64.type: aws
dynamic.linux-g6xlarge-amd64.region: us-east-1
dynamic.linux-g6xlarge-amd64.ami: ami-026ebd4cfe2c043b2
dynamic.linux-g6xlarge-amd64.ami: ami-0ad6c6b0ac6c36199
dynamic.linux-g6xlarge-amd64.instance-type: g6.xlarge
dynamic.linux-g6xlarge-amd64.key-name: konflux-stage-int-mab01
dynamic.linux-g6xlarge-amd64.aws-secret: aws-account
dynamic.linux-g6xlarge-amd64.ssh-secret: aws-ssh-key
dynamic.linux-g6xlarge-amd64.security-group-id: sg-0482e8ccae008b240
dynamic.linux-g6xlarge-amd64.max-instances: "10"
dynamic.linux-g6xlarge-amd64.subnet-id: subnet-07597d1edafa2b9d3
dynamic.linux-g6xlarge-amd64.user-data: |-
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
cloud_final_modules:
- [scripts-user, always]
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"
#!/bin/bash -ex
if lsblk -no FSTYPE /dev/nvme1n1 | grep -qE '\S'; then
echo "File system exists on the disk."
else
echo "No file system found on the disk /dev/nvme1n1"
mkfs -t xfs /dev/nvme1n1
fi
mount /dev/nvme1n1 /home
if [ -d "/home/var-lib-containers" ]; then
echo "Directory '/home/var-lib-containers' exist"
else
echo "Directory '/home/var-lib-containers' doesn't exist"
mkdir -p /home/var-lib-containers /var/lib/containers
fi
mount --bind /home/var-lib-containers /var/lib/containers
if [ -d "/home/var-tmp" ]; then
echo "Directory '/home/var-tmp' exist"
else
echo "Directory '/home/var-tmp' doesn't exist"
mkdir -p /home/var-tmp /var/tmp
fi
mount --bind /home/var-tmp /var/tmp
chmod a+rw /var/tmp
if [ -d "/home/ec2-user" ]; then
echo "ec2-user home exists"
else
echo "ec2-user home doesn't exist"
mkdir -p /home/ec2-user/.ssh
chown -R ec2-user /home/ec2-user
fi
sed -n 's,.*\(ssh-.*\s\),\1,p' /root/.ssh/authorized_keys > /home/ec2-user/.ssh/authorized_keys
chown ec2-user /home/ec2-user/.ssh/authorized_keys
chmod 600 /home/ec2-user/.ssh/authorized_keys
chmod 700 /home/ec2-user/.ssh
restorecon -r /home/ec2-user
mkdir -p /etc/cdi
chmod a+rwx /etc/cdi
su - ec2-user
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
--//--
71 changes: 70 additions & 1 deletion components/multi-platform-controller/staging/host-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,80 @@ data:
# GPU Instances
dynamic.linux-g6xlarge-amd64.type: aws
dynamic.linux-g6xlarge-amd64.region: us-east-1
dynamic.linux-g6xlarge-amd64.ami: ami-026ebd4cfe2c043b2
dynamic.linux-g6xlarge-amd64.ami: ami-0ad6c6b0ac6c36199
dynamic.linux-g6xlarge-amd64.instance-type: g6.xlarge
dynamic.linux-g6xlarge-amd64.key-name: konflux-stage-ext-mab01
dynamic.linux-g6xlarge-amd64.aws-secret: aws-account
dynamic.linux-g6xlarge-amd64.ssh-secret: aws-ssh-key
dynamic.linux-g6xlarge-amd64.security-group-id: sg-05bc8dd0b52158567
dynamic.linux-g6xlarge-amd64.max-instances: "10"
dynamic.linux-g6xlarge-amd64.subnet-id: subnet-030738beb81d3863a
dynamic.linux-g6xlarge-amd64.user-data: |-
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0
--//
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
cloud_final_modules:
- [scripts-user, always]
--//
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="userdata.txt"
#!/bin/bash -ex
if lsblk -no FSTYPE /dev/nvme1n1 | grep -qE '\S'; then
echo "File system exists on the disk."
else
echo "No file system found on the disk /dev/nvme1n1"
mkfs -t xfs /dev/nvme1n1
fi
mount /dev/nvme1n1 /home
if [ -d "/home/var-lib-containers" ]; then
echo "Directory '/home/var-lib-containers' exist"
else
echo "Directory '/home/var-lib-containers' doesn't exist"
mkdir -p /home/var-lib-containers /var/lib/containers
fi
mount --bind /home/var-lib-containers /var/lib/containers
if [ -d "/home/var-tmp" ]; then
echo "Directory '/home/var-tmp' exist"
else
echo "Directory '/home/var-tmp' doesn't exist"
mkdir -p /home/var-tmp /var/tmp
fi
mount --bind /home/var-tmp /var/tmp
chmod a+rw /var/tmp
if [ -d "/home/ec2-user" ]; then
echo "ec2-user home exists"
else
echo "ec2-user home doesn't exist"
mkdir -p /home/ec2-user/.ssh
chown -R ec2-user /home/ec2-user
fi
sed -n 's,.*\(ssh-.*\s\),\1,p' /root/.ssh/authorized_keys > /home/ec2-user/.ssh/authorized_keys
chown ec2-user /home/ec2-user/.ssh/authorized_keys
chmod 600 /home/ec2-user/.ssh/authorized_keys
chmod 700 /home/ec2-user/.ssh
restorecon -r /home/ec2-user
mkdir -p /etc/cdi
chmod a+rwx /etc/cdi
su - ec2-user
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
--//--
4 changes: 2 additions & 2 deletions components/release/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ kind: Kustomization
resources:
- ../base
- ../base/monitor/development
- https://github.com/konflux-ci/release-service/config/default?ref=a9cb25c4896f1671c474766772f6249fdd8ec49f
- https://github.com/konflux-ci/release-service/config/default?ref=cfbbbd458babb9d86ea24c2340db3278b6a06d80

images:
- name: quay.io/konflux-ci/release-service
newName: quay.io/konflux-ci/release-service
newTag: a9cb25c4896f1671c474766772f6249fdd8ec49f
newTag: cfbbbd458babb9d86ea24c2340db3278b6a06d80

namespace: release-service
Loading

0 comments on commit 1fb60c5

Please sign in to comment.