Skip to content

Commit

Permalink
Merge branch 'master' into nwcl-delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Jan 19, 2023
2 parents 707f553 + d94f3db commit 155cead
Show file tree
Hide file tree
Showing 76 changed files with 2,126 additions and 673 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "ibm_cd_toolchain_tool_hostedgit" "pipeline_repo" {
name = "pipeline-repo"
initialization {
type = "clone_if_not_exists"
repo_url = var.pipeline_repo
source_repo_url = var.pipeline_repo
private_repo = true
repo_name = join("-", [ var.repositories_prefix, "pipeline-repo" ])
}
Expand All @@ -33,7 +33,7 @@ resource "ibm_cd_toolchain_tool_hostedgit" "tekton_tasks_catalog_repo" {
name = "tasks-repo"
initialization {
type = "clone_if_not_exists"
repo_url = var.tekton_tasks_catalog_repo
source_repo_url = var.tekton_tasks_catalog_repo
private_repo = true
repo_name = join("-", [ var.repositories_prefix, "tasks-repo" ])
}
Expand Down
10 changes: 10 additions & 0 deletions examples/ibm-is-ng/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,16 @@ resource "ibm_is_vpn_server_route" "is_vpn_server_route" {
name = "example-vpn-server-route"
}

data "ibm_is_backup_policy_job" "is_backup_policy_job" {
backup_policy_id = ibm_is_backup_policy.is_backup_policy.id
identifier = ""
}

data "ibm_is_backup_policy_jobs" "is_backup_policy_jobs" {
backup_policy_plan_id = ibm_is_backup_policy.is_backup_policy.backup_policy_plan_id
backup_policy_id = ibm_is_backup_policy.is_backup_policy.id
}

data "ibm_is_vpn_server" "is_vpn_server" {
identifier = ibm_is_vpn_server.is_vpn_server.vpn_server
}
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/IBM/cloud-databases-go-sdk v0.3.0
github.com/IBM/cloudant-go-sdk v0.0.43
github.com/IBM/container-registry-go-sdk v0.0.15
github.com/IBM/continuous-delivery-go-sdk v0.1.9
github.com/IBM/continuous-delivery-go-sdk v1.0.3
github.com/IBM/event-notifications-go-admin-sdk v0.1.2
github.com/IBM/eventstreams-go-sdk v1.2.0
github.com/IBM/go-sdk-core/v5 v5.10.2
Expand All @@ -28,7 +28,7 @@ require (
github.com/IBM/scc-go-sdk/v4 v4.0.2
github.com/IBM/schematics-go-sdk v0.2.1
github.com/IBM/secrets-manager-go-sdk v0.1.19
github.com/IBM/vpc-go-sdk v0.28.0
github.com/IBM/vpc-go-sdk v0.29.0
github.com/ScaleFT/sshkeys v0.0.0-20200327173127-6142f742bca5
github.com/Shopify/sarama v1.29.1
github.com/apache/openwhisk-client-go v0.0.0-20200201143223-a804fb82d105
Expand Down Expand Up @@ -171,4 +171,4 @@ require (

replace github.com/softlayer/softlayer-go v1.0.3 => github.com/IBM-Cloud/softlayer-go v1.0.5-tf

replace github.com/dgrijalva/jwt-go v3.2.0+incompatible => github.com/golang-jwt/jwt v3.2.1+incompatible
replace github.com/dgrijalva/jwt-go v3.2.0+incompatible => github.com/golang-jwt/jwt v3.2.1+incompatible
7 changes: 5 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ github.com/IBM/cloudant-go-sdk v0.0.43 h1:YxTy4RpAEezX32YIWnds76hrBREmO4u6IkBz1W
github.com/IBM/cloudant-go-sdk v0.0.43/go.mod h1:WeYrJPaHTw19943ndWnVfwMIlZ5z0XUM2uEXNBrwZ1M=
github.com/IBM/container-registry-go-sdk v0.0.15 h1:sfEXm4qNj9ZCwTlFOsdjF5P/lvajU/Sc22yNlzg0F9I=
github.com/IBM/container-registry-go-sdk v0.0.15/go.mod h1:KqSZFO4VIK9QAyF8O1JW6jkyzkfE/BNKUIo+OdzIDk4=
github.com/IBM/continuous-delivery-go-sdk v0.1.9 h1:KzKJmLzQ6NQcGqlLKDoiLRqoPVlx+Qwtkksh0hLsIrI=
github.com/IBM/continuous-delivery-go-sdk v0.1.9/go.mod h1:/pSji7d4POPVd1tQA9CLrNT1XMsCJMGLqOtTwXbWAdE=
github.com/IBM/continuous-delivery-go-sdk v1.0.3 h1:4NrO2raR/hShPO6+Dth0oasG+8hR8Igzado/q2Ltgfk=
github.com/IBM/continuous-delivery-go-sdk v1.0.3/go.mod h1:/pSji7d4POPVd1tQA9CLrNT1XMsCJMGLqOtTwXbWAdE=
github.com/IBM/event-notifications-go-admin-sdk v0.1.2 h1:LLA12WFqSD0+Uf16SNdErcu2MVK4EnyXHJmDIkKkudE=
github.com/IBM/event-notifications-go-admin-sdk v0.1.2/go.mod h1:VCtV/cAN8qSPeWEjIWeXOQGTq6LCWP9yZEk7wt3g0HM=
github.com/IBM/eventstreams-go-sdk v1.2.0 h1:eP0afHArMGjwhGqvZAhhu/3EDKRch2JehpveqF1TUjs=
Expand All @@ -70,6 +70,7 @@ github.com/IBM/go-sdk-core/v5 v5.5.1/go.mod h1:Sn+z+qTDREQvCr+UFa22TqqfXNxx3o723
github.com/IBM/go-sdk-core/v5 v5.6.3/go.mod h1:tt/B9rxLkRtglE7pvqLuYikgCXaZFL3btdruJaoUeek=
github.com/IBM/go-sdk-core/v5 v5.6.5/go.mod h1:tt/B9rxLkRtglE7pvqLuYikgCXaZFL3btdruJaoUeek=
github.com/IBM/go-sdk-core/v5 v5.7.0/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc0XQUqRO9Jc=
github.com/IBM/go-sdk-core/v5 v5.7.2/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc0XQUqRO9Jc=
github.com/IBM/go-sdk-core/v5 v5.8.0/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc0XQUqRO9Jc=
github.com/IBM/go-sdk-core/v5 v5.9.2/go.mod h1:YlOwV9LeuclmT/qi/LAK2AsobbAP42veV0j68/rlZsE=
github.com/IBM/go-sdk-core/v5 v5.9.5/go.mod h1:YlOwV9LeuclmT/qi/LAK2AsobbAP42veV0j68/rlZsE=
Expand Down Expand Up @@ -102,6 +103,8 @@ github.com/IBM/secrets-manager-go-sdk v0.1.19 h1:0GPs5EoTaWNsjo4QPj64GNxlWfN8VHJ
github.com/IBM/secrets-manager-go-sdk v0.1.19/go.mod h1:eO3dBhzPrHkkt+yPex/jB2xD6qHZxBko+Aw+0tfqHeA=
github.com/IBM/vpc-go-sdk v0.28.0 h1:cOxzyxqjSZZqdSY0EiQEAzAGAVtYh2JBcvbve6OZguc=
github.com/IBM/vpc-go-sdk v0.28.0/go.mod h1:jYjS3EySPkC7DuOg33gMHtm8DcIf75Tc+Gxo3zmMBTQ=
github.com/IBM/vpc-go-sdk v0.29.0 h1:62S41gpqETkrSWKIbjOlxuY4FQGqQTlxkM1TidOrE1M=
github.com/IBM/vpc-go-sdk v0.29.0/go.mod h1:jYjS3EySPkC7DuOg33gMHtm8DcIf75Tc+Gxo3zmMBTQ=
github.com/Logicalis/asn1 v0.0.0-20190312173541-d60463189a56 h1:vuquMR410psHNax14XKNWa0Ae/kYgWJcXi0IFuX60N0=
github.com/Logicalis/asn1 v0.0.0-20190312173541-d60463189a56/go.mod h1:Zb3OT4l0mf7P/GOs2w2Ilj5sdm5Whoq3pa24dAEBHFc=
github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
Expand Down
19 changes: 19 additions & 0 deletions ibm/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (

var AppIDTenantID string
var AppIDTestUserEmail string
var BackupPolicyJobID string
var BackupPolicyID string
var CfOrganization string
var CfSpace string
var CisDomainStatic string
Expand All @@ -23,6 +25,7 @@ var CisInstance string
var CisResourceGroup string
var CloudShellAccountID string
var CosCRN string
var CosName string
var Ibmid1 string
var Ibmid2 string
var IAMUser string
Expand Down Expand Up @@ -319,6 +322,12 @@ func init() {
fmt.Println("[WARN] Set the environment variable IBM_COS_CRN with a VALID COS instance CRN for testing ibm_cos_* resources")
}

CosName = os.Getenv("IBM_COS_NAME")
if CosName == "" {
CosName = ""
fmt.Println("[WARN] Set the environment variable IBM_COS_NAME with a VALID COS instance name for testing resources with cos deps")
}

trustedMachineType = os.Getenv("IBM_TRUSTED_MACHINE_TYPE")
if trustedMachineType == "" {
trustedMachineType = "mb1c.16x64"
Expand Down Expand Up @@ -518,6 +527,16 @@ func init() {
fmt.Println("[INFO] Set the environment variable IS_INSTANCE_NAME for testing ibm_is_instance resource else it is set to default value 'instance-01'")
}

BackupPolicyJobID = os.Getenv("IS_BACKUP_POLICY_JOB_ID")
if BackupPolicyJobID == "" {
fmt.Println("[INFO] Set the environment variable IS_BACKUP_POLICY_JOB_ID for testing ibm_is_backup_policy_job datasource")
}

BackupPolicyID = os.Getenv("IS_BACKUP_POLICY_ID")
if BackupPolicyID == "" {
fmt.Println("[INFO] Set the environment variable IS_BACKUP_POLICY_ID for testing ibm_is_backup_policy_jobs datasource")
}

InstanceProfileName = os.Getenv("SL_INSTANCE_PROFILE")
if InstanceProfileName == "" {
//InstanceProfileName = "bc1-2x8" // for classic infrastructure
Expand Down
2 changes: 2 additions & 0 deletions ibm/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ func Provider() *schema.Provider {
"ibm_is_backup_policies": vpc.DataSourceIBMIsBackupPolicies(),
"ibm_is_backup_policy_plan": vpc.DataSourceIBMIsBackupPolicyPlan(),
"ibm_is_backup_policy_plans": vpc.DataSourceIBMIsBackupPolicyPlans(),
"ibm_is_backup_policy_job": vpc.DataSourceIBMIsBackupPolicyJob(),
"ibm_is_backup_policy_jobs": vpc.DataSourceIBMIsBackupPolicyJobs(),

// bare_metal_server
"ibm_is_bare_metal_server_disk": vpc.DataSourceIBMIsBareMetalServerDisk(),
Expand Down
Loading

0 comments on commit 155cead

Please sign in to comment.