diff --git a/README.md b/README.md index d98419b..1b892f9 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Datactl tool can be used standalone. Just move oc-datactl to your path and use ` 2. Log in to your cluster. -3. Setup your configuration. When prompted, provide the [pull secret token](https://marketplace.redhat.com/) as the `Upload API Secret`. +3. Setup your configuration. When prompted, provide the [pull secret token](https://swc.saas.ibm.com/) as the `Upload API Secret`. ```sh oc datactl config init @@ -132,12 +132,12 @@ A containerized FIPS enabled version of datactl is provided, built with Red Hat' ``` mkdir -p $HOME/.datactl ``` -2. Setup your configuration, binding the `.datactl` and `.kube` directories, and providing the marketplace api endpoint and [pull secret token](https://marketplace.redhat.com/en-us/account/keys) +2. Setup your configuration, binding the `.datactl` and `.kube` directories, and providing the marketplace api endpoint and [pull secret token](https://swc.saas.ibm.com/) ``` docker run --rm \ --mount type=bind,source=$HOME/.datactl,target=/root/.datactl \ --mount type=bind,source=$HOME/.kube,target=/root/.kube \ - quay.io/rh-marketplace/datactl:latest config init --api marketplace.redhat.com --token ${TOKEN} + quay.io/rh-marketplace/datactl:latest config init --api swc.saas.ibm.com --token ${TOKEN} ``` 3. Add a data source, such as `dataservice` from your current OpenShift cluster context ``` diff --git a/cmd/datactl/app/config/config_init.go b/cmd/datactl/app/config/config_init.go index 3d4e3da..0eecafe 100644 --- a/cmd/datactl/app/config/config_init.go +++ b/cmd/datactl/app/config/config_init.go @@ -40,7 +40,7 @@ var ( {{ .cmd }} config init # Initialize the config and preset upload URL and secret. Will not prompt. - {{ .cmd }} config init --api marketplace.redhat.com --token MY_TOKEN + {{ .cmd }} config init --api swc.saas.ibm.com --token MY_TOKEN `)) ) @@ -110,7 +110,7 @@ func (init *configInitOptions) runAPIEndpointPrompt() error { prompt := promptui.Prompt{ Label: "Upload API Endpoint", Validate: validate, - Default: "marketplace.redhat.com", + Default: "swc.saas.ibm.com", Stdin: io.NopCloser(init.In), Stdout: NopWCloser(init.Out), } diff --git a/docs/datactl_config_init.md b/docs/datactl_config_init.md index 94b25d6..cb332e7 100644 --- a/docs/datactl_config_init.md +++ b/docs/datactl_config_init.md @@ -17,7 +17,7 @@ datactl config init datactl config init # Initialize the config and preset upload URL and secret. Will not prompt. - datactl config init --api marketplace.redhat.com --token MY_TOKEN + datactl config init --api swc.saas.ibm.com --token MY_TOKEN ``` ### Options diff --git a/pkg/datactl/api/types.go b/pkg/datactl/api/types.go index 6653676..d8a082e 100644 --- a/pkg/datactl/api/types.go +++ b/pkg/datactl/api/types.go @@ -90,7 +90,7 @@ type UploadAPI struct { // +k8s:conversion-gen=false LocationOfOrigin string - // Host is the url of the marketplace i.e. marketplace.redhat.com + // Host is the url of the marketplace i.e. swc.saas.ibm.com Host string `json:"host"` // +optional @@ -179,7 +179,7 @@ func NewConfig() *Config { } const ( - marketplaceProductionUrl = "https://marketplace.redhat.come" + marketplaceProductionUrl = "https://swc.saas.ibm.com" ) func NewDefaultConfig(kube *genericclioptions.ConfigFlags) (*Config, error) { diff --git a/pkg/datactl/api/v1/types.go b/pkg/datactl/api/v1/types.go index 9d084db..7892f31 100644 --- a/pkg/datactl/api/v1/types.go +++ b/pkg/datactl/api/v1/types.go @@ -58,7 +58,7 @@ func (s *Source) String() string { } type UploadAPI struct { - // Host is the url of the marketplace i.e. marketplace.redhat.com + // Host is the url of the marketplace i.e. swc.saas.ibm.com Host string `json:"host"` // +optional