Skip to content

Commit

Permalink
Merge pull request #738 from elezar/rename-master-to-main
Browse files Browse the repository at this point in the history
Rename master to main
  • Loading branch information
elezar authored Jun 7, 2024
2 parents cd6555b + 4ab0888 commit fcefb85
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ workflow:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH =~ /^release-.*$/
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG != ""

.main-or-manual:
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH =~ /^release-.*$/
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG != ""
- if: $CI_PIPELINE_SOURCE == "schedule"
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Hello!

Thanks for making this contribution! When contributing to this repository please keep in mind the following:
- [You should sign your work](https://github.com/NVIDIA/gpu-operator/blob/master/CONTRIBUTING.md).
- [You should sign your work](https://github.com/NVIDIA/gpu-operator/blob/main/CONTRIBUTING.md).
- You should be making your contribution against the [gitlab.com repository](https://gitlab.com/nvidia/kubernetes/gpu-operator) as github.com is just a mirror.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ on:
- opened
- synchronize
branches:
- master
- main
- release-*
push:
branches:
- master
- main
- release-*

jobs:
Expand Down Expand Up @@ -236,12 +236,12 @@ jobs:
echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')
echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV
echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV
echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV
echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV
echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV
echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV
echo "private_key=${{ github.workspace }}/key.pem" >> $GITHUB_ENV
- name: Run e2e tests
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')
echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV
echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV
echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV
echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}-ubi8" >> $GITHUB_ENV
echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV
Expand Down
8 changes: 4 additions & 4 deletions .nvidia-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ include:
ref: "2023.10.09"

variables:
# Release "devel"-tagged images off the master branch
RELEASE_DEVEL_BRANCH: "master"
# Release "devel"-tagged images off the main branch
RELEASE_DEVEL_BRANCH: "main"
DEVEL_RELEASE_IMAGE_VERSION: "devel"
# On the multi-arch builder we don't need the qemu setup.
SKIP_QEMU_SETUP: "1"
Expand Down Expand Up @@ -284,7 +284,7 @@ e2e_tests_containerd_k8s1_27:
- .e2e_defaults
- .infra_setup_defaults
- .schedule_defaults

.clean_infra:
extends:
- .cnt_kube_clean
Expand All @@ -308,7 +308,7 @@ cnt_kube_setup_containerd_k8s1_25:
variables:
TF_VAR_kubernetes_version: "1.25.11"
TF_VAR_gpu_device_name: "NVIDIA-A100-PCIE-40GB"

cnt_kube_clean_containerd_k8s1_25:
extends:
- .clean_infra
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This repository follows Semantic Versioning 2.0.0
The artifacts will be versioned as follows:
- **nightly**: 1.0.0-nightly-shortSHA
- The version names contain "nightly".
- Leading number of pre-release version tracked in master.
- Leading number of pre-release version tracked in main.
- build meta data of SHA hash is appended to version string.
- May be buggy
- Features may be removed at any time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ spec:
- name: init-container-image
image: nvcr.io/nvidia/cuda@sha256:ae0623ec8634b6c88f815b88037763def160cbbac15013b77ddef257fc276c9a
- name: gpu-operator-validator-image
image: registry.gitlab.com/nvidia/kubernetes/gpu-operator/staging/gpu-operator-validator:master-latest-ubi8
image: registry.gitlab.com/nvidia/kubernetes/gpu-operator/staging/gpu-operator-validator:main-latest-ubi8
- name: k8s-driver-manager-image
image: nvcr.io/nvidia/cloud-native/k8s-driver-manager@sha256:0c77725de8c42d248ed825453efd2e005f4900f4be384fd23084f6b721ddd0e0
- name: vfio-manager-image
Expand Down Expand Up @@ -853,7 +853,7 @@ spec:
- --leader-elect
- --leader-lease-renew-deadline
- "60s"
image: registry.gitlab.com/nvidia/kubernetes/gpu-operator/staging/gpu-operator:master-latest-ubi8
image: registry.gitlab.com/nvidia/kubernetes/gpu-operator/staging/gpu-operator:main-latest-ubi8
command:
- gpu-operator
livenessProbe:
Expand Down Expand Up @@ -891,7 +891,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: "VALIDATOR_IMAGE"
value: "registry.gitlab.com/nvidia/kubernetes/gpu-operator/staging/gpu-operator-validator:master-latest-ubi8"
value: "registry.gitlab.com/nvidia/kubernetes/gpu-operator/staging/gpu-operator-validator:main-latest-ubi8"
- name: "GFD_IMAGE"
value: "nvcr.io/nvidia/k8s-device-plugin@sha256:80674b19898ecf9ed6949e39674da769d6feeeb01bea54b914ef9ff502834f49"
- name: "CONTAINER_TOOLKIT_IMAGE"
Expand Down

0 comments on commit fcefb85

Please sign in to comment.