Skip to content

Instantly share code, notes, and snippets.

@hamzy
hamzy / cluster.go
Created February 25, 2024 13:46
./pkg/asset/manifests/clusterapi/cluster.go
package clusterapi
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
@hamzy
hamzy / cluster.go
Created February 25, 2024 13:46
./pkg/asset/manifests/powervs/cluster.go
package powervs
import (
"fmt"
"reflect"
"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/asset/installconfig"
"github.com/openshift/installer/pkg/asset/manifests/capiutils"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@hamzy
hamzy / targets.go
Created February 25, 2024 13:46
./pkg/asset/targets/targets.go
package targets
import (
"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/asset/cluster"
"github.com/openshift/installer/pkg/asset/cluster/tfvars"
"github.com/openshift/installer/pkg/asset/ignition/bootstrap"
"github.com/openshift/installer/pkg/asset/ignition/machine"
"github.com/openshift/installer/pkg/asset/installconfig"
"github.com/openshift/installer/pkg/asset/kubeconfig"
@hamzy
hamzy / localcontrolplane.go
Created February 25, 2024 13:46
./pkg/clusterapi/localcontrolplane.go
package clusterapi
import (
"context"
"fmt"
"os"
"path/filepath"
"time"
"github.com/sirupsen/logrus"
@hamzy
hamzy / platform_altinfra.go
Created February 25, 2024 13:46
./pkg/infrastructure/platform/platform_altinfra.go
//go:build altinfra
// +build altinfra
package platform
import (
"fmt"
configv1 "github.com/openshift/api/config/v1"
"github.com/openshift/installer/pkg/infrastructure"
@hamzy
hamzy / cluster.go
Created March 2, 2024 00:16
./pkg/asset/manifests/clusterapi/cluster.go
package clusterapi
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
@hamzy
hamzy / targets.go
Created March 2, 2024 00:16
./pkg/asset/targets/targets.go
package targets
import (
"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/asset/cluster"
"github.com/openshift/installer/pkg/asset/cluster/tfvars"
"github.com/openshift/installer/pkg/asset/ignition/bootstrap"
"github.com/openshift/installer/pkg/asset/ignition/machine"
"github.com/openshift/installer/pkg/asset/installconfig"
"github.com/openshift/installer/pkg/asset/kubeconfig"
@hamzy
hamzy / cluster.go
Created March 6, 2024 14:31
pkg/asset/manifests/clusterapi/cluster.go
package clusterapi
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
@hamzy
hamzy / targets.go
Created March 6, 2024 14:31
pkg/asset/targets/targets.go
package targets
import (
"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/asset/cluster"
"github.com/openshift/installer/pkg/asset/cluster/tfvars"
"github.com/openshift/installer/pkg/asset/ignition/bootstrap"
"github.com/openshift/installer/pkg/asset/ignition/machine"
"github.com/openshift/installer/pkg/asset/installconfig"
"github.com/openshift/installer/pkg/asset/kubeconfig"
@hamzy
hamzy / system.go
Created March 6, 2024 14:31
pkg/clusterapi/system.go
package clusterapi
import (
"bytes"
"context"
"fmt"
"net/url"
"os"
"path/filepath"
"strings"