Skip to content

Conversation

@abhinavdahiya
Copy link
Contributor

  • Azure: one field that is important for operators is the Resource Group for the cluster

  • GCP: 2 fields that are important for operators is the Project where the resources need to be created, and the region
    that should be used.

The GCP fields for ingress and registry operator.
/cc @coreydaley @ironcladlou

The Azure changes are for future work on cloud-crendential-operator . the other operators currently have access to resource group from their resource group as we only support passthrough scope:resourcegroup creds.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 28, 2019
* Azure: one field that is important for operators is the `Resource Group` for the cluster

* GCP: 2 fields that are important for operators is the `Project` where the resources need to be created, and the `region`
  that should be used.
```console
make generate-with-container
```
// AzurePlatformStatus holds the current status of the Azure infrastructure provider.
type AzurePlatformStatus struct {
// resourceGroupName is the Resource Group for new Azure resources created for the cluster.
ResourceGroupName string `json:"resourceGroupName"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not resourceGroup instead of resourceGroupName? That would be congruent to region. Is there a resourceGroupUID or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the region is always the name, but resource group can have the complete id, /subscriptions/<sid>/resourcesgroups/<rresource group name>
with resource group name, you cannot specify the subscription ID, which we do not want.

@deads2k
Copy link
Contributor

deads2k commented Jul 1, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, deads2k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 1, 2019
@openshift-merge-robot openshift-merge-robot merged commit 44f2eba into openshift:master Jul 1, 2019
abhinavdahiya added a commit to abhinavdahiya/installer that referenced this pull request Jul 2, 2019
Based on openshift/api#359 that adds the platform specific status for Azure and GCP. This sets the
* resource group name for the Azure platform
  operators that need the location, should use the location of the resource group.
* add the project ID and region for the GCP platform
  this allows operators to create resources for the cluster correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants