1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 16:52:20 +00:00

Rename to rancher/os2

This commit is contained in:
Darren Shepherd
2021-10-20 12:19:44 -07:00
parent 8500d3237f
commit 4085b2977b
30 changed files with 59 additions and 59 deletions

View File

@@ -114,8 +114,8 @@ steps:
from_secret: docker_password
platforms:
- linux/amd64
target: "rancher/os:${DRONE_TAG}"
template: "rancher/os:${DRONE_TAG}-ARCH"
target: "rancher/os2:${DRONE_TAG}"
template: "rancher/os2:${DRONE_TAG}-ARCH"
when:
instance:
- drone-publish.rancher.io

View File

@@ -26,7 +26,7 @@ COPY --from=build /usr/bin/busybox-static /usr/bin/busybox
COPY --from=build /usr/bin/rancherd /usr/bin/rancherd
COPY --from=build /usr/bin/luet /usr/bin/luet
COPY --from=build /usr/bin/helm /usr/bin/helm
COPY --from=build /usr/src/dist/rancheros-operator-chart.tgz /usr/share/rancher/os/
COPY --from=build /usr/src/dist/rancheros-operator-chart.tgz /usr/share/rancher/os2/
COPY framework/files/etc/luet/luet.yaml /etc/luet/luet.yaml
COPY --from=build /etc/ssl/certs /etc/ssl/certs

View File

@@ -13,7 +13,7 @@ RUN if [ "${ARCH}" == "amd64" ]; then \
ENV DOCKER_BUILDKIT 1
ENV DOCKER_CLI_EXPERIMENTAL enabled
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS DOCKER_USERNAME DOCKER_PASSWORD AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION
ENV DAPPER_SOURCE /go/src/github.com/rancher/os/
ENV DAPPER_SOURCE /go/src/github.com/rancher/os2/
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_RUN_ARGS "-v ros-go16-pkg-1:/go/pkg -v ros-go16-cache-1:/root/.cache/go-build"

View File

@@ -1,5 +1,5 @@
.DEFAULT_GOAL := package
REPO?=rancher/os
REPO?=rancher/os2
TAG?=dev
IMAGE=${REPO}:${TAG}

View File

@@ -1,5 +1,5 @@
image:
repository: rancher/os
repository: rancher/os2
tag: dev
imagePullPolicy: IfNotPresent

View File

@@ -4,8 +4,8 @@ import (
"flag"
"os"
"github.com/rancher/os/pkg/config"
"github.com/rancher/os/pkg/install"
"github.com/rancher/os2/pkg/config"
"github.com/rancher/os2/pkg/install"
"github.com/sirupsen/logrus"
"sigs.k8s.io/yaml"
)

View File

@@ -5,7 +5,7 @@ import (
"flag"
"os"
"github.com/rancher/os/pkg/operator"
"github.com/rancher/os2/pkg/operator"
"github.com/rancher/wrangler/pkg/signals"
"github.com/sirupsen/logrus"
)

View File

@@ -1,6 +1,6 @@
[Unit]
Description=RancherOS Automatic Installation
Documentation=https://github.com/rancher/os
Documentation=https://github.com/rancher/os2
Wants=network-online.target
After=network-online.target
Before=getty-pre.target serial-getty@ttyS0.service

View File

@@ -1,6 +1,6 @@
[Unit]
Description=RancherOS Populated Node Labels
Documentation=https://github.com/rancher/os
Documentation=https://github.com/rancher/os2
Before=network-online.target
[Install]

View File

@@ -29,7 +29,7 @@ helm upgrade \
--set image.repository=${IMAGE_REPO} \
--set image.tag=${IMAGE_TAG} \
--set image.imagePullPolicy=${PULL_POLICY} \
rancheros-operator /usr/share/rancher/os/rancheros-operator-chart.tgz
rancheros-operator /usr/share/rancher/os2/rancheros-operator-chart.tgz
while ! manifest | kubectl apply -f -; do
sleep 15

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/rancher/os
module github.com/rancher/os2
go 1.16

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v1
import (
rancheros "github.com/rancher/os/pkg/apis/rancheros.cattle.io"
rancheros "github.com/rancher/os2/pkg/apis/rancheros.cattle.io"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@@ -3,14 +3,14 @@ package clients
import (
"context"
"github.com/rancher/os/pkg/generated/controllers/fleet.cattle.io"
fleetcontrollers "github.com/rancher/os/pkg/generated/controllers/fleet.cattle.io/v1alpha1"
"github.com/rancher/os/pkg/generated/controllers/management.cattle.io"
ranchercontrollers "github.com/rancher/os/pkg/generated/controllers/management.cattle.io/v3"
"github.com/rancher/os/pkg/generated/controllers/provisioning.cattle.io"
provcontrollers "github.com/rancher/os/pkg/generated/controllers/provisioning.cattle.io/v1"
"github.com/rancher/os/pkg/generated/controllers/rancheros.cattle.io"
oscontrollers "github.com/rancher/os/pkg/generated/controllers/rancheros.cattle.io/v1"
"github.com/rancher/os2/pkg/generated/controllers/fleet.cattle.io"
fleetcontrollers "github.com/rancher/os2/pkg/generated/controllers/fleet.cattle.io/v1alpha1"
"github.com/rancher/os2/pkg/generated/controllers/management.cattle.io"
ranchercontrollers "github.com/rancher/os2/pkg/generated/controllers/management.cattle.io/v3"
"github.com/rancher/os2/pkg/generated/controllers/provisioning.cattle.io"
provcontrollers "github.com/rancher/os2/pkg/generated/controllers/provisioning.cattle.io/v1"
"github.com/rancher/os2/pkg/generated/controllers/rancheros.cattle.io"
oscontrollers "github.com/rancher/os2/pkg/generated/controllers/rancheros.cattle.io/v1"
"github.com/rancher/wrangler/pkg/clients"
"github.com/rancher/wrangler/pkg/generic"
"k8s.io/client-go/rest"

View File

@@ -13,7 +13,7 @@ import (
func main() {
os.Unsetenv("GOPATH")
controllergen.Run(args.Options{
OutputPackage: "github.com/rancher/os/pkg/generated",
OutputPackage: "github.com/rancher/os2/pkg/generated",
Boilerplate: "scripts/boilerplate.go.txt",
Groups: map[string]args.Group{
"provisioning.cattle.io": {

View File

@@ -4,11 +4,11 @@ import (
"context"
"fmt"
v1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os/pkg/clients"
ranchercontrollers "github.com/rancher/os/pkg/generated/controllers/management.cattle.io/v3"
provcontrollers "github.com/rancher/os/pkg/generated/controllers/provisioning.cattle.io/v1"
v12 "github.com/rancher/os/pkg/generated/controllers/rancheros.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os2/pkg/clients"
ranchercontrollers "github.com/rancher/os2/pkg/generated/controllers/management.cattle.io/v3"
provcontrollers "github.com/rancher/os2/pkg/generated/controllers/provisioning.cattle.io/v1"
v12 "github.com/rancher/os2/pkg/generated/controllers/rancheros.cattle.io/v1"
v3 "github.com/rancher/rancher/pkg/apis/management.cattle.io/v3"
"github.com/rancher/wrangler/pkg/name"
apierrors "k8s.io/apimachinery/pkg/api/errors"

View File

@@ -4,11 +4,11 @@ import (
"context"
"github.com/rancher/fleet/pkg/apis/fleet.cattle.io/v1alpha1"
provv1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os/pkg/clients"
fleetcontrollers "github.com/rancher/os/pkg/generated/controllers/fleet.cattle.io/v1alpha1"
ranchercontrollers "github.com/rancher/os/pkg/generated/controllers/management.cattle.io/v3"
oscontrollers "github.com/rancher/os/pkg/generated/controllers/rancheros.cattle.io/v1"
provv1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os2/pkg/clients"
fleetcontrollers "github.com/rancher/os2/pkg/generated/controllers/fleet.cattle.io/v1alpha1"
ranchercontrollers "github.com/rancher/os2/pkg/generated/controllers/management.cattle.io/v3"
oscontrollers "github.com/rancher/os2/pkg/generated/controllers/rancheros.cattle.io/v1"
"github.com/rancher/wrangler/pkg/name"
"github.com/rancher/wrangler/pkg/relatedresource"
apierrors "k8s.io/apimachinery/pkg/api/errors"

View File

@@ -3,8 +3,8 @@ package managedos
import (
"strings"
osv1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os/pkg/clients"
osv1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os2/pkg/clients"
upgradev1 "github.com/rancher/system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1"
corev1 "k8s.io/api/core/v1"
rbacv1 "k8s.io/api/rbac/v1"

View File

@@ -20,7 +20,7 @@ package fleet
import (
"github.com/rancher/lasso/pkg/controller"
v1alpha1 "github.com/rancher/os/pkg/generated/controllers/fleet.cattle.io/v1alpha1"
v1alpha1 "github.com/rancher/os2/pkg/generated/controllers/fleet.cattle.io/v1alpha1"
)
type Interface interface {

View File

@@ -20,7 +20,7 @@ package management
import (
"github.com/rancher/lasso/pkg/controller"
v3 "github.com/rancher/os/pkg/generated/controllers/management.cattle.io/v3"
v3 "github.com/rancher/os2/pkg/generated/controllers/management.cattle.io/v3"
)
type Interface interface {

View File

@@ -20,7 +20,7 @@ package provisioning
import (
"github.com/rancher/lasso/pkg/controller"
v1 "github.com/rancher/os/pkg/generated/controllers/provisioning.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/generated/controllers/provisioning.cattle.io/v1"
)
type Interface interface {

View File

@@ -20,7 +20,7 @@ package rancheros
import (
"github.com/rancher/lasso/pkg/controller"
v1 "github.com/rancher/os/pkg/generated/controllers/rancheros.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/generated/controllers/rancheros.cattle.io/v1"
)
type Interface interface {

View File

@@ -20,7 +20,7 @@ package v1
import (
"github.com/rancher/lasso/pkg/controller"
v1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/wrangler/pkg/schemes"
"k8s.io/apimachinery/pkg/runtime/schema"
)

View File

@@ -24,7 +24,7 @@ import (
"github.com/rancher/lasso/pkg/client"
"github.com/rancher/lasso/pkg/controller"
v1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/wrangler/pkg/apply"
"github.com/rancher/wrangler/pkg/condition"
"github.com/rancher/wrangler/pkg/generic"

View File

@@ -24,7 +24,7 @@ import (
"github.com/rancher/lasso/pkg/client"
"github.com/rancher/lasso/pkg/controller"
v1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/wrangler/pkg/apply"
"github.com/rancher/wrangler/pkg/condition"
"github.com/rancher/wrangler/pkg/generic"

View File

@@ -4,9 +4,9 @@ import (
"os/exec"
"strings"
"github.com/rancher/os/pkg/config"
"github.com/rancher/os/pkg/questions"
"github.com/rancher/os/pkg/util"
"github.com/rancher/os2/pkg/config"
"github.com/rancher/os2/pkg/questions"
"github.com/rancher/os2/pkg/util"
)
func Ask(cfg *config.Config) error {

View File

@@ -6,8 +6,8 @@ import (
"os"
"os/exec"
"github.com/rancher/os/pkg/config"
"github.com/rancher/os/pkg/questions"
"github.com/rancher/os2/pkg/config"
"github.com/rancher/os2/pkg/questions"
"sigs.k8s.io/yaml"
)

View File

@@ -3,11 +3,11 @@ package operator
import (
"context"
v1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os/pkg/clients"
"github.com/rancher/os/pkg/controllers/inventory"
"github.com/rancher/os/pkg/controllers/managedos"
"github.com/rancher/os/pkg/server"
v1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os2/pkg/clients"
"github.com/rancher/os2/pkg/controllers/inventory"
"github.com/rancher/os2/pkg/controllers/managedos"
"github.com/rancher/os2/pkg/server"
"github.com/rancher/steve/pkg/aggregation"
"github.com/rancher/wrangler/pkg/crd"
"github.com/sirupsen/logrus"

View File

@@ -8,10 +8,10 @@ import (
"net/http"
"strings"
v1 "github.com/rancher/os/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os/pkg/clients"
ranchercontrollers "github.com/rancher/os/pkg/generated/controllers/management.cattle.io/v3"
roscontrollers "github.com/rancher/os/pkg/generated/controllers/rancheros.cattle.io/v1"
v1 "github.com/rancher/os2/pkg/apis/rancheros.cattle.io/v1"
"github.com/rancher/os2/pkg/clients"
ranchercontrollers "github.com/rancher/os2/pkg/generated/controllers/management.cattle.io/v3"
roscontrollers "github.com/rancher/os2/pkg/generated/controllers/rancheros.cattle.io/v1"
v3 "github.com/rancher/rancher/pkg/apis/management.cattle.io/v3"
corecontrollers "github.com/rancher/wrangler/pkg/generated/controllers/core/v1"
"github.com/sirupsen/logrus"

View File

@@ -9,7 +9,7 @@ build()
dockerfile()
{
cat << "EOF"
ARG IMAGE=rancher/os:dev
ARG IMAGE=rancher/os2:dev
FROM ${IMAGE} AS os
@@ -148,7 +148,7 @@ FROM tools AS ami
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
ARG AWS_DEFAULT_REGION
ARG IMAGE=rancher/os:dev
ARG IMAGE=rancher/os2:dev
ARG NAME=RancherOS-Image-dev
ARG VERSION=1
ARG GIT_COMMIT=HEAD

View File

@@ -33,7 +33,7 @@ isoinfo -x /boot/kernel.xz -R -i build/output.iso > build/output-kernel
isoinfo -x /boot/rootfs.xz -R -i build/output.iso > build/output-initrd
RELEASE_URL=${RELEASE_URL:-https://github.com/rancher/os/releases/download}
RELEASE_URL=${RELEASE_URL:-https://github.com/rancher/os2/releases/download}
INSTALL_CFG=${RELEASE_URL}/${VERSION}/example-cloud-init
PXE_ASSET_VERSION="\${version}-\${arch}"
if [ "${TAG}" = "dev" ]; then