Skip to content

Instantly share code, notes, and snippets.

@hamzy
hamzy / powervs.go
Created March 19, 2024 19:26
20240319 ./pkg/infrastructure/powervs/clusterapi/powervs.go
package clusterapi
import (
"context"
"fmt"
"regexp"
"strings"
"github.com/IBM/vpc-go-sdk/vpcv1"
"github.com/sirupsen/logrus"
@hamzy
hamzy / platform_altinfra.go
Created March 19, 2024 19:26
20240319 ./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 / platform.go
Created March 19, 2024 19:26
20240319 ./pkg/infrastructure/platform/platform.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 / clusterapi.go
Created March 19, 2024 19:26
20240319 ./pkg/infrastructure/clusterapi/clusterapi.go
package clusterapi
import (
"context"
"errors"
"fmt"
"os"
"path/filepath"
"time"
@hamzy
hamzy / system.go
Created March 19, 2024 19:26
20240319 ./pkg/clusterapi/system.go
package clusterapi
import (
"bytes"
"context"
"fmt"
"net/url"
"os"
"path/filepath"
"strings"
@hamzy
hamzy / localcontrolplane.go
Created March 19, 2024 19:26
20240319 ./pkg/clusterapi/localcontrolplane.go
package clusterapi
import (
"context"
"fmt"
"os"
"path/filepath"
"time"
"github.com/sirupsen/logrus"
@hamzy
hamzy / targets.go
Created March 19, 2024 19:26
20240319 ./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 19, 2024 19:26
20240319 ./pkg/asset/manifests/powervs/cluster.go
package powervs
import (
"fmt"
"reflect"
"github.com/sirupsen/logrus"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/ptr"
@hamzy
hamzy / cluster.go
Created March 19, 2024 19:26
20240319 ./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 / powervsmachines.go
Created March 19, 2024 19:26
20240319 ./pkg/asset/machines/powervs/powervsmachines.go
// Package powervs generates Machine objects for powerVS.
package powervs
import (
"fmt"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/ptr"
capibm "sigs.k8s.io/cluster-api-provider-ibmcloud/api/v1beta2"