You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings,
I am trying to come up with a showcase that demonstrates the difference between terraform and crossplane approaches using spotify provider. There are several issues I encountered with so if you can provide me with some information and guidance I would be grateful.
I could not find a definitive guide for creating and improving crossplane providers like Kubernetes Operator Framework books and guides. Therefore, if you can provide me some documentation it would be great to understand the core controller mechanism and edit.
Secondly, The app values present in the controller and main.go files could not be gathered from the deployment part like the main crossplane deployment.
`func main() {
var (
app = kingpin.New(filepath.Base(os.Args[0]), "Terraform based Crossplane provider for Spotify").DefaultEnvars()
debug = app.Flag("debug", "Run with debug logging.").Short('d').Bool()
syncPeriod = app.Flag("sync", "Controller manager sync period such as 300ms, 1.5h, or 2h45m").Short('s').Default("1h").Duration()
pollInterval = app.Flag("poll", "Poll interval controls how often an individual resource should be checked for drift.").Default("10m").Duration()
leaderElection = app.Flag("leader-election", "Use leader election for the controller manager.").Short('l').Default("false").OverrideDefaultFromEnvar("LEADER_ELECTION").Bool()
maxReconcileRate = app.Flag("max-reconcile-rate", "The global maximum rate per second at which resources may be checked for drift from the desired state.").Default("10").Int()
terraformVersion = app.Flag("terraform-version", "Terraform version.").Required().Envar("TERRAFORM_VERSION").String()
providerSource = app.Flag("terraform-provider-source", "Terraform provider source.").Required().Envar("TERRAFORM_PROVIDER_SOURCE").String()
providerVersion = app.Flag("terraform-provider-version", "Terraform provider version.").Required().Envar("TERRAFORM_PROVIDER_VERSION").String()
namespace = app.Flag("namespace", "Namespace used to set as default scope in default secret store config.").Default("crossplane-system").Envar("POD_NAMESPACE").String()
enableExternalSecretStores = app.Flag("enable-external-secret-stores", "Enable support for ExternalSecretStores.").Default("false").Envar("ENABLE_EXTERNAL_SECRET_STORES").Bool()
enableManagementPolicies = app.Flag("enable-management-policies", "Enable support for Management Policies.").Default("true").Envar("ENABLE_MANAGEMENT_POLICIES").Bool()
)`
You have the above options to be gathered but deployment cannot be edited to insert above values. How can I set different values to syncPeriod and pollInterval to demonstrate the reconcilation in a paced manner.
Thanks,
Regards,
The text was updated successfully, but these errors were encountered:
Greetings,
I am trying to come up with a showcase that demonstrates the difference between terraform and crossplane approaches using spotify provider. There are several issues I encountered with so if you can provide me with some information and guidance I would be grateful.
I could not find a definitive guide for creating and improving crossplane providers like Kubernetes Operator Framework books and guides. Therefore, if you can provide me some documentation it would be great to understand the core controller mechanism and edit.
Secondly, The app values present in the controller and main.go files could not be gathered from the deployment part like the main crossplane deployment.
`func main() {
var (
app = kingpin.New(filepath.Base(os.Args[0]), "Terraform based Crossplane provider for Spotify").DefaultEnvars()
debug = app.Flag("debug", "Run with debug logging.").Short('d').Bool()
syncPeriod = app.Flag("sync", "Controller manager sync period such as 300ms, 1.5h, or 2h45m").Short('s').Default("1h").Duration()
pollInterval = app.Flag("poll", "Poll interval controls how often an individual resource should be checked for drift.").Default("10m").Duration()
leaderElection = app.Flag("leader-election", "Use leader election for the controller manager.").Short('l').Default("false").OverrideDefaultFromEnvar("LEADER_ELECTION").Bool()
maxReconcileRate = app.Flag("max-reconcile-rate", "The global maximum rate per second at which resources may be checked for drift from the desired state.").Default("10").Int()
You have the above options to be gathered but deployment cannot be edited to insert above values. How can I set different values to syncPeriod and pollInterval to demonstrate the reconcilation in a paced manner.
Thanks,
Regards,
The text was updated successfully, but these errors were encountered: