ansible / ansible-kubernetes-modules

DEPRECATED Ansible role containing pre-release K8s modules
Apache License 2.0
73 stars 39 forks source link

Unsupported parameters with openshift_v1_build_config #32

Open mclerix opened 6 years ago

mclerix commented 6 years ago

I am using the ansible-kubernetes-module and encountering an issue with the openshift_v1_build_config with the specsource* parameters.

Below the step:

- name: create BC openshift-tasks
  openshift_v1_build_config:
    name: openshift-tasks
    labels:
      build: openshift-tasks
      template: openshift-tasks
    namespace: '{{ build_namespace }}'
    spec_successful_builds_history_limit: 1
    spec_failed_builds_history_limit: 1
    spec_output_to_kind: ImageStreamTag
    spec_output_to_name: openshift-tasks:latest
    spec_run_policy: Serial
    spec_source_git_uri: '{{ git_repo }}'
    spec_source_type: Git
    strategy_type: Source
    strategy_source_strategy_from_kind: ImageStreamTag
    strategy_source_strategy_from_name: jboss-eap70-openshift:latest
    strategy_source_strategy_from_namespace: openshift
    triggers:
    - type: ConfigChange
    - type: ImageChange

I tried to use the following parameters but always end up with the message below.

Parameters from doc: spec_strategy_source_strategy_from_kind,spec_strategy_source_strategy_from_name,spec_strategy_source_strategy_from_namespace

Parameters from error message: spec_strategy_source_strategy_from__kind,spec_strategy_source_strategy_from__name,spec_strategy_source_strategy_from__namespace

Aliases: strategy_source_strategy_from_kind,strategy_source_strategy_from_name,strategy_source_strategy_from_namespace

Error message: fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Unsupported parameters for (openshift_v1_build_config) module: strategy_source_strategy_from_kind,strategy_source_strategy_from_name,strategy_source_strategy_from_namespace Supported parameters include: annotations,api_key,cert_file,context,debug,dry_run,force,host,key_file,kubeconfig,labels,name,namespace,password,resource_definition,spec_completion_deadline_seconds,spec_failed_builds_history_limit,spec_node_selector,spec_output_image_labels,spec_output_push_secret_name,spec_output_to_api_version,spec_output_to_field_path,spec_output_to_kind,spec_output_to_name,spec_output_to_namespace,spec_output_to_resource_version,spec_output_to_uid,spec_post_commit_args,spec_post_commit_command,spec_post_commit_script,spec_resources_limits,spec_resources_requests,spec_revision_git_author_email,spec_revision_git_author_name,spec_revision_git_commit,spec_revision_git_committer_email,spec_revision_git_committer_name,spec_revision_git_message,spec_revision_type,spec_run_policy,spec_service_account,spec_source_binary_as_file,spec_source_context_dir,spec_source_dockerfile,spec_source_git_http_proxy,spec_source_git_https_proxy,spec_source_git_no_proxy,spec_source_git_ref,spec_source_git_uri,spec_source_images,spec_source_secrets,spec_source_source_secret_name,spec_source_type,spec_strategy_custom_strategy__from_api_version,spec_strategy_custom_strategy__from_field_path,spec_strategy_custom_strategy__from_kind,spec_strategy_custom_strategy__from_name,spec_strategy_custom_strategy__from_namespace,spec_strategy_custom_strategy__from_resource_version,spec_strategy_custom_strategy__from_uid,spec_strategy_custom_strategy_build_api_version,spec_strategy_custom_strategy_env,spec_strategy_custom_strategy_expose_docker_socket,spec_strategy_custom_strategy_force_pull,spec_strategy_custom_strategy_pull_secret_name,spec_strategy_custom_strategy_secrets,spec_strategy_docker_strategy__from_api_version,spec_strategy_docker_strategy__from_field_path,spec_strategy_docker_strategy__from_kind,spec_strategy_docker_strategy__from_name,spec_strategy_docker_strategy__from_namespace,spec_strategy_docker_strategy__from_resource_version,spec_strategy_docker_strategy__from_uid,spec_strategy_docker_strategy_build_args,spec_strategy_docker_strategy_dockerfile_path,spec_strategy_docker_strategy_env,spec_strategy_docker_strategy_force_pull,spec_strategy_docker_strategy_image_optimization_policy,spec_strategy_docker_strategy_no_cache,spec_strategy_docker_strategy_pull_secret_name,spec_strategy_jenkins_pipeline_strategy_env,spec_strategy_jenkins_pipeline_strategy_jenkinsfile,spec_strategy_jenkins_pipeline_strategy_jenkinsfile_path,spec_strategy_source_strategy__from_api_version,spec_strategy_source_strategy__from_field_path,spec_strategy_source_strategy__from_kind,spec_strategy_source_strategy__from_name,spec_strategy_source_strategy__from_namespace,spec_strategy_source_strategy__from_resource_version,spec_strategy_source_strategy__from_uid,spec_strategy_source_strategy_env,spec_strategy_source_strategy_force_pull,spec_strategy_source_strategy_incremental,spec_strategy_source_strategy_pull_secret_name,spec_strategy_source_strategy_runtime_artifacts,spec_strategy_source_strategy_runtime_image_api_version,spec_strategy_source_strategy_runtime_image_field_path,spec_strategy_source_strategy_runtime_image_kind,spec_strategy_source_strategy_runtime_image_name,spec_strategy_source_strategy_runtime_image_namespace,spec_strategy_source_strategy_runtime_image_resource_version,spec_strategy_source_strategy_runtime_image_uid,spec_strategy_source_strategy_scripts,spec_strategy_type,spec_successful_builds_history_limit,spec_triggers,src,ssl_ca_cert,state,username,verify_ssl"}

Thanks a lot for your feedback